summaryrefslogtreecommitdiff
path: root/lib/event.c
Commit message (Collapse)AuthorAgeFilesLines
* WIP commit moving towards working server support.Linus Nordberg2013-05-151-59/+119
|
* Revamping for listeners.Linus Nordberg2013-03-011-34/+42
| | | | | | | | | | | | | | 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.
* WIP commit for listener support.Linus Nordberg2013-02-191-26/+30
|
* Do the test for PSK properly.Linus Nordberg2013-02-181-3/+1
| | | | | | | Fixes 823ea9ba. Conflicts: lib/event.c
* Add support for configuring client connections too.Linus Nordberg2013-02-111-1/+2
| | | | | | | | We're moving x509 and psk config from rs_realm to rs_peer while allowing these to be configured on the realm level and overriden at peer level. Also, add support for printing the read configuration, for debugging.
* Don't verify server certificate if we're using PSK.Linus Nordberg2013-01-241-2/+3
|
* Rename most 'package' to 'message'.Linus Nordberg2013-01-241-4/+4
| | | | | | | | | | | | | 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.
* Rename COPYING -> LICENSE.Linus Nordberg2012-12-191-1/+1
| | | | And distribute LICENSE and HACKING.
* Merge libradsec-new-client.Linus Nordberg2012-04-271-0/+3
|\
| * port to new RADIUS client libraryLuke Howard2011-11-141-0/+3
| |
* | Verify certificate CN against configured hostname.Linus Nordberg2012-04-261-1/+15
| | | | | | | | NOTE: The subjectAltName check is not well tested.
* | Postpone resolving of DNS names of server.Linus Nordberg2012-04-251-8/+19
|/ | | | | | | | | | We used to resolve DNS names when reading configuration. We now do it in event_init_socket() and cache the result in the connection object. The imminent need for changing this is to keep host names around for X509 certificate verification (CNAME and subjectAltName). This will also help later when we implement server failover (and later, when people want to do more dynamic configuration, f.ex. NAPTR).
* event_enable_debug_mode() must be called at most once.Linus Nordberg2011-09-221-1/+6
|
* Add retransmission timer support (UDP).Linus Nordberg2011-03-091-3/+40
|
* Move event_set_timeout --> tcp_set_connect_timeout.Linus Nordberg2011-03-061-37/+3
|
* Restructure code, moving most code out of packet.cLinus Nordberg2011-03-061-0/+252
Also, move copyright notice out of COPYING and into every file.