Linus Nordberg [Fri, 4 Feb 2011 12:59:58 +0000 (13:59 +0100)]
Do build examples with -Wall -g.
Linus Nordberg [Fri, 4 Feb 2011 12:59:40 +0000 (13:59 +0100)]
Add comments on some error codes.
Linus Nordberg [Fri, 4 Feb 2011 12:59:19 +0000 (13:59 +0100)]
Initialize pointer in example program before trusting it.
Linus Nordberg [Fri, 4 Feb 2011 12:54:15 +0000 (13:54 +0100)]
Handle more read, write and packet verification errors.
Still some aborts left.
Linus Nordberg [Fri, 4 Feb 2011 12:44:19 +0000 (13:44 +0100)]
Add and use rs_debug() instead of fprintf to stderr.
Linus Nordberg [Fri, 4 Feb 2011 12:29:12 +0000 (13:29 +0100)]
Don't consume sent packets.
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.
Linus Nordberg [Wed, 2 Feb 2011 14:19:40 +0000 (15:19 +0100)]
Pick usage of struct request in example code at run time.
Linus Nordberg [Wed, 2 Feb 2011 09:55:27 +0000 (10:55 +0100)]
Reorder function prototypes.
Linus Nordberg [Wed, 2 Feb 2011 09:54:54 +0000 (10:54 +0100)]
Disable some debug printout in tests.
Linus Nordberg [Wed, 2 Feb 2011 09:54:11 +0000 (10:54 +0100)]
Replace some code for debug printouts.
Linus Nordberg [Tue, 1 Feb 2011 14:50:25 +0000 (15:50 +0100)]
Update release info to avoid confusion.
linus [Fri, 21 Jan 2011 15:35:54 +0000 (16:35 +0100)]
Remove unused Makefile.
linus [Fri, 21 Jan 2011 15:35:07 +0000 (16:35 +0100)]
New versions of config.guess and config.sub.
linus [Fri, 21 Jan 2011 15:33:43 +0000 (16:33 +0100)]
Generate tests/Makefile.
linus [Fri, 21 Jan 2011 15:33:26 +0000 (16:33 +0100)]
Compile with -Wall and -g.
linus [Fri, 21 Jan 2011 15:32:28 +0000 (16:32 +0100)]
Some more UDP tests.
linus [Fri, 21 Jan 2011 15:31:13 +0000 (16:31 +0100)]
Follow API changes.
linus [Fri, 21 Jan 2011 15:30:17 +0000 (16:30 +0100)]
API breakage -- rename rs_packet_create_acc_request().
linus [Fri, 21 Jan 2011 12:09:00 +0000 (13:09 +0100)]
Fix bug where one or two stanzas in a config file would be but not more.
Also restructure error handling in rs_context_create().
linus [Thu, 20 Jan 2011 16:29:42 +0000 (17:29 +0100)]
Cosmetic changes to conf.c.
linus [Thu, 20 Jan 2011 16:28:12 +0000 (17:28 +0100)]
Improve error message.
Differentiate between an invalid connection type string in config file
when parsing and unknown connection type (number) when connecting.
linus [Thu, 20 Jan 2011 09:02:52 +0000 (10:02 +0100)]
Rename external functions in UDP test files.
linus [Wed, 19 Jan 2011 15:47:37 +0000 (16:47 +0100)]
Add basic testing code.
linus [Mon, 17 Jan 2011 15:27:57 +0000 (16:27 +0100)]
Cosmetic changes.
linus [Mon, 17 Jan 2011 15:25:29 +0000 (16:25 +0100)]
Update copyright years.
Linus Nordberg [Thu, 11 Nov 2010 14:12:15 +0000 (15:12 +0100)]
Use standard RadSec port in example config.
Linus Nordberg [Thu, 11 Nov 2010 13:57:05 +0000 (14:57 +0100)]
Add extern "C" guards to all header files.
Linus Nordberg [Thu, 11 Nov 2010 11:33:58 +0000 (12:33 +0100)]
Do print generic error strings.
Linus Nordberg [Thu, 11 Nov 2010 10:06:23 +0000 (11:06 +0100)]
Remove spurious comment.
Linus Nordberg [Thu, 11 Nov 2010 10:03:52 +0000 (11:03 +0100)]
Disable debugging.
Linus Nordberg [Thu, 11 Nov 2010 10:02:14 +0000 (11:02 +0100)]
Build even when not configured with `--enable-tls'.
Linus Nordberg [Thu, 11 Nov 2010 09:30:35 +0000 (10:30 +0100)]
Bringing up TLS connections working.
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.
Linus Nordberg [Mon, 8 Nov 2010 10:18:38 +0000 (11:18 +0100)]
Don't ignore connection type configuration.
Linus Nordberg [Thu, 28 Oct 2010 11:00:31 +0000 (13:00 +0200)]
Use the request object in example programs.
Linus Nordberg [Thu, 28 Oct 2010 10:49:34 +0000 (12:49 +0200)]
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end."
Linus Nordberg [Tue, 19 Oct 2010 17:17:42 +0000 (19:17 +0200)]
Move connection related functions to conn.c.
Linus Nordberg [Sat, 16 Oct 2010 10:11:06 +0000 (12:11 +0200)]
Revert "Require Autoconf 2.68 since 2.65 doesn't work on OSX."
That was wrong -- 2.65 is _not_ known to not work on OSX. (2.61 is
known to not work on OSX but we don't care.)
This reverts commit
d726d4a61e0516b18df5903088e58d015c7cd1b8.
Linus Nordberg [Sat, 16 Oct 2010 09:29:14 +0000 (11:29 +0200)]
Require Autoconf 2.68 since 2.65 doesn't work on OSX.
With 2.65 on OSX, libradsec isn't linked correctly with
libfreeradius-radius and libevent-core. The effect is that a program
linking with -lradsec need to add the other two libraries on the link
line as well.
Whether 2.66 or 2.67 works on OSX is unknown.
Linus Nordberg [Fri, 15 Oct 2010 12:48:27 +0000 (14:48 +0200)]
Add stub.
Linus Nordberg [Mon, 11 Oct 2010 17:06:06 +0000 (19:06 +0200)]
Merge branch 'merge-luke' into libradsec
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.
Luke Howard [Sat, 9 Oct 2010 09:54:37 +0000 (11:54 +0200)]
Have rad_decode() verify responses.
Linus Nordberg [Mon, 11 Oct 2010 08:41:58 +0000 (10:41 +0200)]
Request object implementation and bug fixes by Luke Howard.
Linus Nordberg [Sun, 10 Oct 2010 14:00:11 +0000 (16:00 +0200)]
Compile again after bad fixes.
Linus Nordberg [Sun, 10 Oct 2010 13:56:01 +0000 (15:56 +0200)]
Cosmetics.
Linus Nordberg [Sun, 10 Oct 2010 13:53:37 +0000 (15:53 +0200)]
Robustness fixes (and some callback invocation) by Luke Howard.
* 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.
Linus Nordberg [Sun, 10 Oct 2010 09:47:43 +0000 (11:47 +0200)]
Rename rs_req_* --> rs_request_.
Contributed by Luke Howard.
Linus Nordberg [Sun, 10 Oct 2010 08:10:28 +0000 (10:10 +0200)]
Add stuff to .gitignore.
Linus Nordberg [Sun, 10 Oct 2010 08:10:11 +0000 (10:10 +0200)]
Don't require username & pw in rs_packet_create_acc_request().
Linus Nordberg [Sat, 9 Oct 2010 12:52:13 +0000 (14:52 +0200)]
Fail at configure time rather than build time when missing a library.
Linus Nordberg [Tue, 5 Oct 2010 20:12:05 +0000 (22:12 +0200)]
#include assert.h.
Linus Nordberg [Tue, 5 Oct 2010 20:09:15 +0000 (22:09 +0200)]
Add rs_conn_fd().
Linus Nordberg [Tue, 5 Oct 2010 20:07:21 +0000 (22:07 +0200)]
More info to README and HACKING.
Linus Nordberg [Tue, 5 Oct 2010 20:06:01 +0000 (22:06 +0200)]
Rename struct rs_handle --> rs_context.
Linus Nordberg [Tue, 5 Oct 2010 15:49:49 +0000 (17:49 +0200)]
Merge branch 'libradsec' of /tmp/radsecproxy into libradsec
Linus Nordberg [Tue, 5 Oct 2010 07:09:31 +0000 (09:09 +0200)]
Disable debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)]
Parameterize and disable libevent debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 06:36:38 +0000 (08:36 +0200)]
Autotoolize.
Linus Nordberg [Tue, 5 Oct 2010 07:09:31 +0000 (09:09 +0200)]
Disable debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)]
Parameterize and disable libevent debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 06:54:09 +0000 (08:54 +0200)]
More autotools.
Linus Nordberg [Tue, 5 Oct 2010 06:50:54 +0000 (08:50 +0200)]
Add missing file.
Linus Nordberg [Tue, 5 Oct 2010 06:36:38 +0000 (08:36 +0200)]
Autotoolize.
Linus Nordberg [Mon, 4 Oct 2010 16:00:29 +0000 (18:00 +0200)]
Remove unused.
Linus Nordberg [Mon, 4 Oct 2010 15:42:00 +0000 (17:42 +0200)]
Formatting (indent -kr).
Linus Nordberg [Mon, 4 Oct 2010 00:53:18 +0000 (02:53 +0200)]
Rename top level token "realm" --> "config".
Linus Nordberg [Mon, 4 Oct 2010 00:43:54 +0000 (02:43 +0200)]
WIP
Linus Nordberg [Sun, 3 Oct 2010 23:31:01 +0000 (01:31 +0200)]
WIP -- reading configuration.
Linus Nordberg [Sun, 3 Oct 2010 21:27:46 +0000 (23:27 +0200)]
WIP
Linus Nordberg [Sun, 3 Oct 2010 20:51:29 +0000 (22:51 +0200)]
WIP
Linus Nordberg [Sun, 3 Oct 2010 17:23:43 +0000 (19:23 +0200)]
Rename the error functions.
Linus Nordberg [Sun, 3 Oct 2010 14:24:57 +0000 (16:24 +0200)]
WIP -- prepare for request objects.
Linus Nordberg [Sun, 3 Oct 2010 13:39:08 +0000 (15:39 +0200)]
WIP
Linus Nordberg [Sun, 3 Oct 2010 12:15:09 +0000 (14:15 +0200)]
WIP
Linus Nordberg [Sat, 2 Oct 2010 19:43:41 +0000 (21:43 +0200)]
WIP.
Linus Nordberg [Sat, 2 Oct 2010 19:31:50 +0000 (21:31 +0200)]
WIP
Linus Nordberg [Fri, 1 Oct 2010 09:29:12 +0000 (11:29 +0200)]
WIP
Linus Nordberg [Thu, 30 Sep 2010 22:14:05 +0000 (00:14 +0200)]
WIP -- example client sending and receiving Access-Request/Accept.
Linus Nordberg [Wed, 29 Sep 2010 19:53:43 +0000 (21:53 +0200)]
Refactoring in preparation for handling more cases than client sending one packet.
Linus Nordberg [Wed, 29 Sep 2010 14:05:40 +0000 (16:05 +0200)]
* lib/examples/client.c: Use UDP.
Linus Nordberg [Wed, 29 Sep 2010 14:04:25 +0000 (16:04 +0200)]
* lib/Makefile: Clean more.
Linus Nordberg [Wed, 29 Sep 2010 14:04:07 +0000 (16:04 +0200)]
Remove unused files.
Linus Nordberg [Wed, 29 Sep 2010 13:52:39 +0000 (15:52 +0200)]
WIP -- connecting and sending a packet using libevent.
Linus Nordberg [Wed, 29 Sep 2010 08:53:01 +0000 (10:53 +0200)]
WIP -- resolving, crafting packet.
Linus Nordberg [Tue, 28 Sep 2010 21:20:17 +0000 (23:20 +0200)]
WIP
Linus Nordberg [Tue, 28 Sep 2010 20:27:04 +0000 (22:27 +0200)]
WIP.
Linus Nordberg [Mon, 27 Sep 2010 21:35:08 +0000 (23:35 +0200)]
WIP
Linus Nordberg [Mon, 27 Sep 2010 19:44:18 +0000 (21:44 +0200)]
WIP
Linus Nordberg [Mon, 27 Sep 2010 16:47:07 +0000 (18:47 +0200)]
WIP on libradsec: 94e3f46 Example client crafting simple packet using freeradius-libradius.
Linus Nordberg [Sat, 25 Sep 2010 22:37:40 +0000 (00:37 +0200)]
Example client crafting simple packet using freeradius-libradius.
Linus Nordberg [Wed, 22 Sep 2010 13:59:55 +0000 (15:59 +0200)]
Add licencing info.
Linus Nordberg [Wed, 15 Sep 2010 13:55:34 +0000 (15:55 +0200)]
Documentation changes.
Linus Nordberg [Wed, 15 Sep 2010 12:09:26 +0000 (14:09 +0200)]
Formatting changes.
Linus Nordberg [Tue, 14 Sep 2010 22:49:54 +0000 (00:49 +0200)]
Rename rs_config to rs_handle.
A configuration will be something else.
Linus Nordberg [Tue, 14 Sep 2010 22:35:56 +0000 (00:35 +0200)]
Add typedefs to use instead of enum to avoid ABI issues.
The size of an enum isn't well defined.
Linus Nordberg [Mon, 13 Sep 2010 16:19:02 +0000 (18:19 +0200)]
Add a lost comment.
Linus Nordberg [Mon, 13 Sep 2010 16:17:01 +0000 (18:17 +0200)]
Improve API docu in libradsec-base.h slightly.
Still needs work!
Linus Nordberg [Mon, 13 Sep 2010 16:16:26 +0000 (18:16 +0200)]
Make git ignore gcc precompiled headers.
Linus Nordberg [Mon, 13 Sep 2010 15:27:40 +0000 (17:27 +0200)]
First stab at a working blocking example.
Linus Nordberg [Thu, 2 Sep 2010 22:58:55 +0000 (00:58 +0200)]
Low level connect and read working, kind of. At least TCP.
Next: serializing.
Linus Nordberg [Wed, 1 Sep 2010 23:20:58 +0000 (01:20 +0200)]
Rename libradsec-libevent.h --> libradsec-levent.h.