Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | _init_evb: Don't crash on socket errors. | Linus Nordberg | 2011-03-03 | 1 | -2/+4 |
| | |||||
* | Correct an error code. | Linus Nordberg | 2011-03-03 | 1 | -1/+3 |
| | |||||
* | Correct an error string. | Linus Nordberg | 2011-03-03 | 1 | -1/+1 |
| | |||||
* | Error handling cleanup 3. | Linus Nordberg | 2011-03-01 | 1 | -2/+2 |
| | | | | Split timeout errors in connecting and I/O. | ||||
* | Error handling cleanup 2. | Linus Nordberg | 2011-03-01 | 1 | -2/+1 |
| | | | | RSE_NOSYS doesn't need a string. | ||||
* | Error handling cleanup | Linus Nordberg | 2011-03-01 | 1 | -2/+2 |
| | | | | | Remove RSE_SOME_ERROR. rs_tls_init: Push SSL error stack on libradsec error stack. | ||||
* | Rename relevant functions to reflect authn as opposed to authz. | Linus Nordberg | 2011-02-28 | 1 | -3/+3 |
| | | | | Also add a "bare" create request function. | ||||
* | Time out on connect and break event loop on errors. | Linus Nordberg | 2011-02-25 | 1 | -0/+48 |
| | |||||
* | Get rid of loopbreak as a mean for signalling successful packet handling. | Linus Nordberg | 2011-02-25 | 1 | -29/+14 |
| | | | | | | | | | | | | | 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 Nordberg | 2011-02-24 | 1 | -61/+105 |
| | | | | | | | | '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!). | ||||
* | Report SSL errors with error string rather than an integer. | Linus Nordberg | 2011-02-20 | 1 | -1/+1 |
| | |||||
* | Improve protocol robustness and invoke user callbacks. | Linus Nordberg | 2011-02-19 | 1 | -142/+270 |
| | | | | | | | | | | | | 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. | ||||
* | Merge branch 'libradsec' of /tmp/radsecproxy into libradsec | Linus Nordberg | 2011-02-15 | 1 | -1/+1 |
|\ | |||||
| * | Include debug.h regardless if DEBUG -- rs_debug needs to be declared. | Linus Nordberg | 2011-02-15 | 1 | -1/+1 |
| | | |||||
* | | Add comments. | Linus Nordberg | 2011-02-15 | 1 | -1/+3 |
|/ | |||||
* | Handle more read, write and packet verification errors. | Linus Nordberg | 2011-02-04 | 1 | -42/+75 |
| | | | | Still some aborts left. | ||||
* | Add and use rs_debug() instead of fprintf to stderr. | Linus Nordberg | 2011-02-04 | 1 | -9/+8 |
| | |||||
* | Don't consume sent packets. | Linus Nordberg | 2011-02-04 | 1 | -2/+0 |
| | | | | | | | A sent packet is a fine thing to have when you're verifying the Response Authenticator. We could solve this by having an upper layer saving only the Request Authenticator somewhere instead the whole packet and we might just do that at some point which is not now. | ||||
* | API breakage -- rename rs_packet_create_acc_request(). | linus | 2011-01-21 | 1 | -33/+33 |
| | |||||
* | Improve error message. | linus | 2011-01-20 | 1 | -1/+1 |
| | | | | | Differentiate between an invalid connection type string in config file when parsing and unknown connection type (number) when connecting. | ||||
* | Cosmetic changes. | linus | 2011-01-17 | 1 | -1/+1 |
| | |||||
* | Remove spurious comment. | Linus Nordberg | 2010-11-11 | 1 | -1/+0 |
| | |||||
* | Build even when not configured with `--enable-tls'. | Linus Nordberg | 2010-11-11 | 1 | -1/+5 |
| | |||||
* | Bringing up TLS connections working. | Linus Nordberg | 2010-11-11 | 1 | -4/+58 |
| | | | | | | | 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 libradsec | Linus Nordberg | 2010-10-11 | 1 | -35/+94 |
|\ | | | | | | | | | | | 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 Howard | 2010-10-11 | 1 | -5/+36 |
| | | |||||
| * | Request object implementation and bug fixes by Luke Howard. | Linus Nordberg | 2010-10-11 | 1 | -26/+38 |
| | | |||||
| * | Compile again after bad fixes. | Linus Nordberg | 2010-10-10 | 1 | -5/+4 |
| | | |||||
| * | Robustness fixes (and some callback invocation) by Luke Howard. | Linus Nordberg | 2010-10-10 | 1 | -8/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | * 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. | ||||
* | | Don't require username & pw in rs_packet_create_acc_request(). | Linus Nordberg | 2010-10-10 | 1 | -7/+14 |
|/ | |||||
* | Disable debug printouts. | Linus Nordberg | 2010-10-05 | 1 | -3/+1 |
| | |||||
* | Parameterize and disable libevent debug printouts. | Linus Nordberg | 2010-10-05 | 1 | -0/+3 |
| | |||||
* | Rename the error functions. | Linus Nordberg | 2010-10-03 | 1 | -11/+11 |
| | |||||
* | WIP -- prepare for request objects. | Linus Nordberg | 2010-10-03 | 1 | -2/+5 |
| | |||||
* | WIP | Linus Nordberg | 2010-10-03 | 1 | -10/+16 |
| | |||||
* | WIP | Linus Nordberg | 2010-10-03 | 1 | -49/+121 |
| | |||||
* | WIP. | Linus Nordberg | 2010-10-02 | 1 | -2/+2 |
| | |||||
* | WIP | Linus Nordberg | 2010-10-02 | 1 | -32/+44 |
| | |||||
* | WIP | Linus Nordberg | 2010-10-01 | 1 | -8/+12 |
| | |||||
* | WIP -- example client sending and receiving Access-Request/Accept. | Linus Nordberg | 2010-10-01 | 1 | -16/+98 |
| | |||||
* | Refactoring in preparation for handling more cases than client sending one ↵ | Linus Nordberg | 2010-09-29 | 1 | -21/+109 |
| | | | | packet. | ||||
* | WIP -- connecting and sending a packet using libevent. | Linus Nordberg | 2010-09-29 | 1 | -12/+76 |
| | |||||
* | WIP -- resolving, crafting packet. | Linus Nordberg | 2010-09-29 | 1 | -6/+7 |
| | |||||
* | WIP | Linus Nordberg | 2010-09-28 | 1 | -2/+4 |
| | |||||
* | WIP. | Linus Nordberg | 2010-09-28 | 1 | -12/+27 |
| | |||||
* | WIP | Linus Nordberg | 2010-09-27 | 1 | -0/+77 |