summaryrefslogtreecommitdiff
path: root/lib/examples/client-blocking.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'libradsec' into libradsec-server-supportLinus Nordberg2013-05-151-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/HACKING lib/Makefile.am lib/README lib/compat.h lib/conf.c lib/configure.ac lib/conn.c lib/conn.h lib/err.c lib/err.h lib/event.c lib/event.h lib/examples/Makefile.am lib/examples/client-blocking.c lib/examples/client.conf lib/include/radsec/radsec-impl.h lib/include/radsec/radsec.h lib/include/radsec/request-impl.h lib/include/radsec/request.h lib/packet.c lib/packet.h lib/peer.c lib/peer.h lib/request.c lib/send.c lib/tcp.c lib/tests/Makefile.am lib/tls.c lib/udp.c lib/util.c
| * Revert "Add formal argument 'secret' to two public functions."Linus Nordberg2013-05-081-2/+2
| | | | | | | | | | | | | | This reverts commit 09d1cff2418a900b587b2113f508984f2417cc11. Conflicts: lib/include/radsec/request.h
* | WIP commit moving towards working server support.Linus Nordberg2013-05-151-2/+2
| |
* | Revamping for listeners.Linus Nordberg2013-03-011-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Split rs_connection into rs_baseconn plus rs_connection and rs_listener. Connections now has a state variable. Connect buffer event and fd of _source_ connection, not that of conn->active_peer. The connection object referred to by a peer is not meant for using as a connection, only for reporting errors on. Make sure things are sane even when not using a config file. Bump library interface version to 1.0.0 since it's changed.
* | Rename most 'package' to 'message'.Linus Nordberg2013-01-241-9/+9
|/ | | | | | | | | | | | | RADIUS (RFC2865) is defined to be transported over UDP so the term "radius packet" makes a lot of sense. RADIUS/TCP (RFC6613) and RADIUS/TLS (RFC6614), a.k.a. RadSec, use stream transport protocols though. The term "message" doesn't imply any kind of transport -- a message can be sent using datagrams as well as in a stream. This (large) commit changes 'package' to 'message' where it makes sense. It does not touch the 'radius' subdirectory. It includes preprocessor directives (#define) to make the public interface compatible with previous releases of the library.
* Add some info on usage modes.Linus Nordberg2013-01-231-1/+1
|
* Remove unnecessary #includes.Linus Nordberg2013-01-221-5/+1
|
* Add formal argument 'secret' to two public functions.Linus Nordberg2012-12-171-2/+2
| | | | | | | | | | The functions are rs_packet_create_authn_request() and rs_request_create_authn(). Attributes of type PW_USER_PASSWORD are supposed to be MD5 obfuscated (see vp2data_any()). NOTE: This is a non-backward compatible API change.
* Example code: Print a little bit more helpful information on failure.Linus Nordberg2012-12-171-1/+1
|
* Example code: Don't create rs_error on failing context creation.Linus Nordberg2012-12-171-4/+5
| | | | We don't export err_create() and the error is ENOMEM nowadays.
* Merge libradsec-new-client.Linus Nordberg2012-04-271-7/+3
|\
| * remove rs_packet_frpktLuke Howard2011-11-141-3/+2
| |
| * remove rs_context_init_freeradius_dictLuke Howard2011-11-141-4/+0
| |
| * port to new RADIUS client libraryLuke Howard2011-11-141-1/+2
| |
* | Handle failing rs_context_create().Linus Nordberg2012-04-261-1/+7
| |
* | Be user friendly in example program.Linus Nordberg2012-01-241-0/+9
| |
* | Cosmetic changes.Linus Nordberg2012-01-191-3/+4
|/ | | | Better names of formal arguments in test program.
* API AND CONFIG CHANGE: rs_context_create() doesn't take DICT any more.Linus Nordberg2011-03-211-4/+10
| | | | | | | Use rs_context_create() to read FreeRADIUS dictionary, possibly by taking dict file from configuration file. CONFIG CHANGE: s/config/realm/g.
* Verify result in example program. Also, don't leak a package.Linus Nordberg2011-03-141-1/+9
|
* Don't double free in example code.Linus Nordberg2011-03-131-6/+2
|
* Change user name in example code.Linus Nordberg2011-03-131-1/+1
|
* examples/client-blocking: pull out the error before freeing conn.Linus Nordberg2011-03-081-1/+3
|
* Clean up struct rs_error somewhat.Linus Nordberg2011-03-081-1/+1
| | | | More to be done here!
* examples/client-blocking.c: Clean up and improve error handling.Linus Nordberg2011-03-071-37/+31
|
* Rename relevant functions to reflect authn as opposed to authz.Linus Nordberg2011-02-281-2/+2
| | | | Also add a "bare" create request function.
* API changes: rs_client* --> rs_peer.Linus Nordberg2011-02-281-5/+5
| | | | | Move peer (former server) things to new file peer.c. Update examples.
* API change. Have the request object create its own request message.Linus Nordberg2011-02-251-5/+5
|
* Initialize pointer in example program before trusting it.Linus Nordberg2011-02-041-5/+6
|
* Pick usage of struct request in example code at run time.Linus Nordberg2011-02-021-22/+28
|
* Follow API changes.linus2011-01-211-3/+3
|
* "Thou shalt not follow the NULL pointer, for chaos and madness awaitLinus Nordberg2010-10-281-6/+10
| | | | thee at its end."
* Have rad_decode() verify responses.Luke Howard2010-10-111-4/+10
|
* Rename rs_req_* --> rs_request_.Linus Nordberg2010-10-101-2/+2
| | | | Contributed by Luke Howard.
* Rename struct rs_handle --> rs_context.Linus Nordberg2010-10-051-1/+1
|
* WIP -- reading configuration.Linus Nordberg2010-10-041-13/+16
|
* WIPLinus Nordberg2010-10-031-4/+5
|
* WIPLinus Nordberg2010-10-031-9/+15
|
* Rename the error functions.Linus Nordberg2010-10-031-9/+9
|
* WIP -- prepare for request objects.Linus Nordberg2010-10-031-2/+17
|
* WIPLinus Nordberg2010-10-031-9/+0
|
* WIP.Linus Nordberg2010-10-021-1/+1
|
* WIPLinus Nordberg2010-10-021-0/+80