summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Verify result in example program. Also, don't leak a package.Linus Nordberg2011-03-141-1/+9
|
* [TLS] Do free SSL and SSL_CTX objects.Linus Nordberg2011-03-141-3/+6
|
* (rs_packet_destroy): Free unconditionally.Linus Nordberg2011-03-141-7/+6
|
* Remove struct rs_attr and all use of it.Linus Nordberg2011-03-147-50/+18
| | | | | | | 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.
* Add short blurb about bug hunting in HACKING.Linus Nordberg2011-03-141-0/+10
|
* Avoid potential double free.Linus Nordberg2011-03-141-1/+4
| | | | (udp_init): Set conn.rev = NULL in fault case.
* [UDP] Free the event base _after_ freeing the read and write events.Linus Nordberg2011-03-141-2/+2
| | | | Duh!
* Remove unused resp_msg from struct request.Linus Nordberg2011-03-142-3/+5
|
* Add rs_request_get_reqmsg() and update documentation.Linus Nordberg2011-03-142-10/+24
|
* Don't free connection on error, just close it.Linus Nordberg2011-03-141-3/+4
|
* [UDP] Free read/write events when destroying connection.Linus Nordberg2011-03-131-0/+4
|
* 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
|
* Formatting changes.Linus Nordberg2011-03-131-20/+8
|
* Add Doxygen documentation for public API.Linus Nordberg2011-03-134-49/+283
|
* Update README and HACKING.Linus Nordberg2011-03-122-20/+24
|
* Merge branch 'udp' into libradsec.Linus Nordberg2011-03-1233-925/+1464
|\
| * Fix crash bug in _rs_peer_destroy().udpLinus Nordberg2011-03-121-18/+3
| | | | | | | | Don't expect a peer to always have a connection.
| * Free the realm name which is strdup'd when config is read.Linus Nordberg2011-03-111-0/+1
| |
| * Do free the connection object.Linus Nordberg2011-03-111-0/+2
| |
| * Handle an ENOMEM case in conf.c.Linus Nordberg2011-03-111-0/+2
| |
| * Remove -Werror since we still have some warnings in radsecproxy.Linus Nordberg2011-03-101-1/+1
| |
| * [UDP] Don't crash on second packet.Linus Nordberg2011-03-102-1/+4
| | | | | | | | | | | | [UDP] Set the user_data member for the write callback in rs_packet_send() -- the one from udp_init() doesn't do much good at this point.
| * Don't miscompile without --enable-tls.Linus Nordberg2011-03-101-4/+3
| | | | | | | | Include err.h and debug.h even w/o RS_ENABLE_TLS.
| * Disable DEBUG.Linus Nordberg2011-03-101-1/+1
| |
| * Change default configuration to do RadSec rather than UDP.Linus Nordberg2011-03-091-4/+4
| |
| * Get UDP working.Linus Nordberg2011-03-095-37/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For UDP, activate retransmit timer before receiving rather than sending makes the event loop break nicely after sending a message (which is important for blocking mode). Not quite sure that this is really accurate wrt to retransmission timing though but it should do for now. For UDP, set the user_data member for the read callback in rs_conn_receive_packet -- the one from udp_init() doesn't do much good now. For UDP, implement receiving message. Add compat_recv().
| * Don't add Message-Authenticator more than once.Linus Nordberg2011-03-091-2/+8
| | | | | | | | | | Retransmiting the packet showed that we added another Message-Authenticator attribute every time we sent it.
| * Formatting changes.Linus Nordberg2011-03-092-1/+5
| |
| * Remove superfluous assignment.Linus Nordberg2011-03-091-1/+0
| | | | | | | | This is done in rs_packet_create().
| * Add missing header files.Linus Nordberg2011-03-092-0/+15
| |
| * Use retransmisison timer in request object.Linus Nordberg2011-03-091-7/+10
| |
| * Add retransmission timer support (UDP).Linus Nordberg2011-03-0911-42/+129
| |
| * Add RSE_DISCO.Linus Nordberg2011-03-093-0/+3
| |
| * Rename and move around a few helper functions.Linus Nordberg2011-03-095-81/+88
| |
| * Don't make UDP write event persistant.Linus Nordberg2011-03-091-22/+46
| | | | | | | | | | rs_packet_send() adds the event again when there's a packet to send and the write callback does the same if it doesn't drain the queue.
| * Add (disabled) linkage to libefence.Linus Nordberg2011-03-081-1/+1
| |
| * Zap a double free.Linus Nordberg2011-03-081-3/+3
| |
| * 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.
| * examples/client-blocking: pull out the error before freeing conn.Linus Nordberg2011-03-081-1/+3
| |
| * Timeout implemented in request objects, supported by TCP.Linus Nordberg2011-03-087-26/+80
| | | | | | | | TODO: UDP.
| * Clean up struct rs_error somewhat.Linus Nordberg2011-03-083-16/+6
| | | | | | | | More to be done here!
| * Don't return -1 to user but rather an error code.Linus Nordberg2011-03-082-2/+5
| | | | | | | | NOTE: Changes rs_conn_receive_packet() and rs_packet_send() only.
| * examples/client-blocking.c: Clean up and improve error handling.Linus Nordberg2011-03-071-37/+31
| |
| * Requests are now high level, i.e. not for user doing the dispatching.Linus Nordberg2011-03-071-60/+7
| |
| * Move verification of response packets up to a level where it makes sense.Linus Nordberg2011-03-076-90/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
| * Formatting changes.Linus Nordberg2011-03-073-6/+8
| |
| * Remove lib/radsec.h.Linus Nordberg2011-03-071-9/+0
| | | | | | | | | | 1. Two radsec.h is icky. 2. Its contents fit nicely in send.c.
| * Move event_set_timeout --> tcp_set_connect_timeout.Linus Nordberg2011-03-064-38/+38
| |
| * request: Save callers user_data and do invoke callers callbacks.Linus Nordberg2011-03-062-9/+31
| |