summaryrefslogtreecommitdiff
path: root/lib/include/radsec
Commit message (Collapse)AuthorAgeFilesLines
* remove rs_packet_frpktLuke Howard2011-11-141-3/+0
|
* port new RADIUS library to WindowsLuke Howard2011-11-141-3/+13
| | | | | | | | Conflicts: lib/configure.ac lib/include/radsec/radsec.h lib/radius/client.h
* remove rs_context_init_freeradius_dictLuke Howard2011-11-141-14/+0
|
* port to new RADIUS client libraryLuke Howard2011-11-145-15/+257
|
* Define RS_FREERADIUS_DICT and use it when missing "dictionary" in config.Linus Nordberg2011-03-211-0/+6
|
* API AND CONFIG CHANGE: rs_context_create() doesn't take DICT any more.Linus Nordberg2011-03-212-10/+30
| | | | | | | Use rs_context_create() to read FreeRADIUS dictionary, possibly by taking dict file from configuration file. CONFIG CHANGE: s/config/realm/g.
* Remove struct rs_attr and all use of it.Linus Nordberg2011-03-142-23/+1
| | | | | | | A new API for attributes will be added once we've decided how to deal with RADIUS packets internally. For now, removing the half baked wrapping seems more sensible than trying to free rs_attr objects and their VALUE_PAIR's.
* Remove unused resp_msg from struct request.Linus Nordberg2011-03-141-1/+0
|
* Add rs_request_get_reqmsg() and update documentation.Linus Nordberg2011-03-141-8/+13
|
* Add Doxygen documentation for public API.Linus Nordberg2011-03-132-7/+162
|
* Add RSE_DISCO.Linus Nordberg2011-03-091-0/+1
|
* Rename and move around a few helper functions.Linus Nordberg2011-03-091-11/+4
|
* Update rs_err_msg() prototype.Linus Nordberg2011-03-081-2/+2
| | | | | Also, rename enum rs_err_code to not collide with the function named the same.
* Timeout implemented in request objects, supported by TCP.Linus Nordberg2011-03-082-3/+7
| | | | TODO: UDP.
* Clean up struct rs_error somewhat.Linus Nordberg2011-03-081-1/+0
| | | | More to be done here!
* Move verification of response packets up to a level where it makes sense.Linus Nordberg2011-03-071-6/+8
| | | | | | | | | | | | | | | | | | | | | Replace the user_dispatch_flag on connections with conn_user_dispatch_p(). Remove the 'original' member from packet and instead have an upper layer verify. Rename packet valid_flag --> received_flag to reflect that we don't verify. Move _close_conn() --> conn_close(). Move packet flags into a single unsigned int, for portability. (_read_packet): Don't verify packet. (rs_conn_receive_packet): Don't touch PKT_OUT if there isn't a packet. (rs_conn_receive_packet): Verify packet using packet_verify_response().
* request: Save callers user_data and do invoke callers callbacks.Linus Nordberg2011-03-061-0/+1
|
* UDP w/o bufferevents, part 1.Linus Nordberg2011-03-061-3/+10
| | | | Sending, no retransmitting and no receiving.
* Don't free config object until we destroy the context.Linus Nordberg2011-03-061-0/+2
|
* Be consistent with naming of formal arguments.Linus Nordberg2011-03-021-1/+1
|
* Error handling cleanup 3.Linus Nordberg2011-03-011-1/+2
| | | | Split timeout errors in connecting and I/O.
* Error handling cleanupLinus Nordberg2011-03-011-1/+0
| | | | | Remove RSE_SOME_ERROR. rs_tls_init: Push SSL error stack on libradsec error stack.
* Add RSE_INVAL.Linus Nordberg2011-03-011-0/+1
|
* Remove last trace of server and client in API.Linus Nordberg2011-02-281-5/+5
|
* Rename relevant functions to reflect authn as opposed to authz.Linus Nordberg2011-02-282-8/+11
| | | | Also add a "bare" create request function.
* API changes: rs_client* --> rs_peer.Linus Nordberg2011-02-281-7/+7
| | | | | Move peer (former server) things to new file peer.c. Update examples.
* Cosmetic header file changes.Linus Nordberg2011-02-282-29/+43
|
* API change. Have the request object create its own request message.Linus Nordberg2011-02-252-4/+4
|
* Get rid of loopbreak as a mean for signalling successful packet handling.Linus Nordberg2011-02-251-0/+2
| | | | | | | | | | | | | In blocking mode, breaking the event loop with loopbreak will probably be needed for exceptions like timeout so we shouldn't use it for breaking the loop and signalling success. In the user callbaks used in blocking mode (_rcb and _wcb), disable read and write events on the event buffer. This will stop the loop. Also, set a flag in the packet struct to signal success. In the "low level callbacks" (_read_cb and _write_cb), enable read or write, accordingly.
* Config file changes and small API changes.Linus Nordberg2011-02-242-13/+17
| | | | | | | | 'timeout' and 'tries' move from 'server' stanza to top. 'tries' is now 'retries'. Moving around in internal data structs, making struct peer strictly config. Bug fixes in configuration code. Adding some more cleanup code, freeing allocated memory (still not done!).
* Improve protocol robustness and invoke user callbacks.Linus Nordberg2011-02-191-8/+10
| | | | | | | | | | | | All aborts are removed, as well as all asserts which aren't programming errors. When an invalid packet is received, the connection is closed, as per draft-ietf-radext-tcp-transport-08 (2.6.4). Use new rs_debug() macro rather than fprintf() for debug printouts. Coding style overhaul.
* Add comments on some error codes.Linus Nordberg2011-02-041-4/+4
|
* Reorder function prototypes.Linus Nordberg2011-02-021-1/+1
|
* API breakage -- rename rs_packet_create_acc_request().linus2011-01-211-5/+6
|
* Add extern "C" guards to all header files.Linus Nordberg2010-11-114-0/+32
|
* Bringing up TLS connections working.Linus Nordberg2010-11-112-0/+14
| | | | | | | NOTE: Clean up of resources not yet sane. Expect resource leakages. NOTE: Most failure cases are not handled properly. With the wind at your back and the sun shining, it might work.
* Merge branch 'merge-luke' into libradsecLinus Nordberg2010-10-113-3/+10
|\ | | | | | | | | | | 8a676ab Robustness fixes (and some callback invocation) by Luke Howard. ff55882 Request object implementation and bug fixes by Luke Howard. 06936d1 Have rad_decode() verify responses.
| * Have rad_decode() verify responses.Luke Howard2010-10-113-6/+2
| |
| * Request object implementation and bug fixes by Luke Howard.Linus Nordberg2010-10-113-0/+9
| |
| * Robustness fixes (and some callback invocation) by Luke Howard.Linus Nordberg2010-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lib/packet.c (_packet_create): Set packet identity properly. (_do_send): Return an int. (_do_send): Don't ignore rad_encode() errors. (_do_send): Do invoke rad_sign(). (_event_cb): Invoke callbacks. (_event_cb): Honour _do_send() return code. (_read_cb): Check packet (by invoking rad_packet_ok()). (_read_cb): Don't ignore rad_decode() errors. (_read_cb): Invoke callbacks.
| * Rename rs_req_* --> rs_request_.Linus Nordberg2010-10-101-3/+3
| | | | | | | | Contributed by Luke Howard.
* | Don't require username & pw in rs_packet_create_acc_request().Linus Nordberg2010-10-101-2/+2
|/
* Add rs_conn_fd().Linus Nordberg2010-10-051-0/+1
|
* Rename struct rs_handle --> rs_context.Linus Nordberg2010-10-052-19/+26
|
* Remove unused.Linus Nordberg2010-10-041-3/+0
|
* Formatting (indent -kr).Linus Nordberg2010-10-041-26/+44
|
* WIP -- reading configuration.Linus Nordberg2010-10-042-1/+10
|
* WIPLinus Nordberg2010-10-032-8/+13
|
* WIPLinus Nordberg2010-10-032-12/+18
|
* Rename the error functions.Linus Nordberg2010-10-031-6/+6
|