summaryrefslogtreecommitdiff
path: root/lib/radsec.c
Commit message (Collapse)AuthorAgeFilesLines
* Revive radsecproxy.h and hostport_types.h and move rsp_* into radsecproxy/.Linus Nordberg2013-01-221-3/+3
|
* Rename COPYING -> LICENSE.Linus Nordberg2012-12-191-1/+1
| | | | And distribute LICENSE and HACKING.
* Merge libradsec-new-client.Linus Nordberg2012-04-271-50/+2
|\
| * remove rs_context_init_freeradius_dictLuke Howard2011-11-141-32/+0
| |
| * port to new RADIUS client libraryLuke Howard2011-11-141-18/+2
| |
* | Postpone resolving of DNS names of server.Linus Nordberg2012-04-251-6/+9
| | | | | | | | | | | | | | | | | | | | 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).
* | Free the transport credentials struct.Linus Nordberg2012-01-261-0/+1
|/
* Handle configuration errors better.Linus Nordberg2011-07-031-2/+3
|
* Remove spurious comment.Linus Nordberg2011-07-021-1/+1
| | | | | rs_resolv() doesn't have a connection to push an error on and should indeed return a struct rs_error.
* Resolve IPv6 addresses too.Linus Nordberg2011-07-021-1/+1
|
* Define RS_FREERADIUS_DICT and use it when missing "dictionary" in config.Linus Nordberg2011-03-211-2/+1
|
* Memory alloc/free cleanup for contexts.Linus Nordberg2011-03-211-8/+5
| | | | | | | | | (rs_context_create): Don't touch *ctx on failure. Keep allocation and zeroing of allocated memory together. (rs_context_destroy): Fix typo. (rs_context_destroy): Don't rs_free the context since it's allocated with calloc.
* (rs_context_destroy): Use free() rather than rs_free() for realm->name.Linus Nordberg2011-03-211-1/+1
|
* API AND CONFIG CHANGE: rs_context_create() doesn't take DICT any more.Linus Nordberg2011-03-211-47/+64
| | | | | | | Use rs_context_create() to read FreeRADIUS dictionary, possibly by taking dict file from configuration file. CONFIG CHANGE: s/config/realm/g.
* 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
|
* Don't miscompile without --enable-tls.Linus Nordberg2011-03-101-4/+3
| | | | Include err.h and debug.h even w/o RS_ENABLE_TLS.
* Add retransmission timer support (UDP).Linus Nordberg2011-03-091-14/+35
|
* Zap a double free.Linus Nordberg2011-03-081-3/+3
|
* Formatting changes.Linus Nordberg2011-03-071-3/+5
|
* Restructure code, moving most code out of packet.cLinus Nordberg2011-03-061-1/+4
| | | | Also, move copyright notice out of COPYING and into every file.
* UDP w/o bufferevents, part 1.Linus Nordberg2011-03-061-1/+2
| | | | Sending, no retransmitting and no receiving.
* Don't free config object until we destroy the context.Linus Nordberg2011-03-061-0/+5
|
* Revert 578e3551 -- double free in second invocation of dict_free().Linus Nordberg2011-03-061-1/+0
|
* Error handling cleanup 2.Linus Nordberg2011-03-011-2/+1
| | | | RSE_NOSYS doesn't need a string.
* Error handling cleanupLinus Nordberg2011-03-011-1/+1
| | | | | Remove RSE_SOME_ERROR. rs_tls_init: Push SSL error stack on libradsec error stack.
* rs_context_destroy: Free freeradius dictionary.Linus Nordberg2011-03-011-0/+1
|
* Don't have the connection freeing peers -- it's the contexts responsibility.Linus Nordberg2011-03-011-0/+2
| | | | Also, let _rs_peer_destroy() free secret.
* API changes: rs_client* --> rs_peer.Linus Nordberg2011-02-281-62/+0
| | | | | Move peer (former server) things to new file peer.c. Update examples.
* Config file changes and small API changes.Linus Nordberg2011-02-241-29/+60
| | | | | | | | '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-2/+2
| | | | | | | | | | | | 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.
* Fix bug where one or two stanzas in a config file would be but not more.linus2011-01-211-37/+55
| | | | Also restructure error handling in rs_context_create().
* Bringing up TLS connections working.Linus Nordberg2010-11-111-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.
* Move connection related functions to conn.c.Linus Nordberg2010-10-191-135/+0
|
* Add stub.Linus Nordberg2010-10-151-0/+8
|
* #include assert.h.Linus Nordberg2010-10-051-0/+1
|
* Add rs_conn_fd().Linus Nordberg2010-10-051-0/+7
|
* Rename struct rs_handle --> rs_context.Linus Nordberg2010-10-051-12/+16
|
* WIP -- reading configuration.Linus Nordberg2010-10-041-34/+36
|
* WIPLinus Nordberg2010-10-031-5/+19
|
* WIPLinus Nordberg2010-10-031-34/+29
|
* Rename the error functions.Linus Nordberg2010-10-031-13/+13
|
* WIPLinus Nordberg2010-10-031-1/+1
|
* WIP.Linus Nordberg2010-10-021-6/+7
|
* WIPLinus Nordberg2010-10-021-2/+2
|
* WIPLinus Nordberg2010-10-011-0/+2
|
* Refactoring in preparation for handling more cases than client sending one ↵Linus Nordberg2010-09-291-61/+32
| | | | packet.
* WIP -- connecting and sending a packet using libevent.Linus Nordberg2010-09-291-0/+22
|
* WIP -- resolving, crafting packet.Linus Nordberg2010-09-291-14/+88
|
* WIPLinus Nordberg2010-09-281-9/+17
|