radsecproxy.git
13 years agoUse AM_CFLAGS when setting CFLAGS.
Linus Nordberg [Sat, 19 Feb 2011 17:22:39 +0000 (18:22 +0100)]
Use AM_CFLAGS when setting CFLAGS.

13 years agoMerge branch 'libradsec' of /tmp/radsecproxy into libradsec
Linus Nordberg [Tue, 15 Feb 2011 14:02:46 +0000 (15:02 +0100)]
Merge branch 'libradsec' of /tmp/radsecproxy into libradsec

13 years agoAdd comments.
Linus Nordberg [Tue, 15 Feb 2011 14:02:41 +0000 (15:02 +0100)]
Add comments.

13 years agoInclude debug.h regardless if DEBUG -- rs_debug needs to be declared.
Linus Nordberg [Tue, 15 Feb 2011 14:01:15 +0000 (15:01 +0100)]
Include debug.h regardless if DEBUG -- rs_debug needs to be declared.

13 years agoMake autogen.sh actually work -- were missing ltmain.sh.
Linus Nordberg [Tue, 15 Feb 2011 13:49:47 +0000 (14:49 +0100)]
Make autogen.sh actually work -- were missing ltmain.sh.

Add Automake/Libtool files to biuld-aux and set AC_CONFIG_AUX_DIR.

Use LT_INIT rather than deprecated AC_PROG_LIBTOOL.

13 years agoDo build examples with -Wall -g.
Linus Nordberg [Fri, 4 Feb 2011 12:59:58 +0000 (13:59 +0100)]
Do build examples with -Wall -g.

13 years agoAdd comments on some error codes.
Linus Nordberg [Fri, 4 Feb 2011 12:59:40 +0000 (13:59 +0100)]
Add comments on some error codes.

13 years agoInitialize pointer in example program before trusting it.
Linus Nordberg [Fri, 4 Feb 2011 12:59:19 +0000 (13:59 +0100)]
Initialize pointer in example program before trusting it.

13 years agoHandle more read, write and packet verification errors.
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.

13 years agoAdd and use rs_debug() instead of fprintf to stderr.
Linus Nordberg [Fri, 4 Feb 2011 12:44:19 +0000 (13:44 +0100)]
Add and use rs_debug() instead of fprintf to stderr.

13 years agoDon't consume sent packets.
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.

13 years agoPick usage of struct request in example code at run time.
Linus Nordberg [Wed, 2 Feb 2011 14:19:40 +0000 (15:19 +0100)]
Pick usage of struct request in example code at run time.

13 years agoReorder function prototypes.
Linus Nordberg [Wed, 2 Feb 2011 09:55:27 +0000 (10:55 +0100)]
Reorder function prototypes.

13 years agoDisable some debug printout in tests.
Linus Nordberg [Wed, 2 Feb 2011 09:54:54 +0000 (10:54 +0100)]
Disable some debug printout in tests.

13 years agoReplace some code for debug printouts.
Linus Nordberg [Wed, 2 Feb 2011 09:54:11 +0000 (10:54 +0100)]
Replace some code for debug printouts.

13 years agoUpdate release info to avoid confusion.
Linus Nordberg [Tue, 1 Feb 2011 14:50:25 +0000 (15:50 +0100)]
Update release info to avoid confusion.

13 years agoRemove unused Makefile.
linus [Fri, 21 Jan 2011 15:35:54 +0000 (16:35 +0100)]
Remove unused Makefile.

13 years agoNew versions of config.guess and config.sub.
linus [Fri, 21 Jan 2011 15:35:07 +0000 (16:35 +0100)]
New versions of config.guess and config.sub.

13 years agoGenerate tests/Makefile.
linus [Fri, 21 Jan 2011 15:33:43 +0000 (16:33 +0100)]
Generate tests/Makefile.

13 years agoCompile with -Wall and -g.
linus [Fri, 21 Jan 2011 15:33:26 +0000 (16:33 +0100)]
Compile with -Wall and -g.

13 years agoSome more UDP tests.
linus [Fri, 21 Jan 2011 15:32:28 +0000 (16:32 +0100)]
Some more UDP tests.

13 years agoFollow API changes.
linus [Fri, 21 Jan 2011 15:31:13 +0000 (16:31 +0100)]
Follow API changes.

13 years agoAPI breakage -- rename rs_packet_create_acc_request().
linus [Fri, 21 Jan 2011 15:30:17 +0000 (16:30 +0100)]
API breakage -- rename rs_packet_create_acc_request().

13 years agoFix bug where one or two stanzas in a config file would be but not more.
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().

13 years agoCosmetic changes to conf.c.
linus [Thu, 20 Jan 2011 16:29:42 +0000 (17:29 +0100)]
Cosmetic changes to conf.c.

13 years agoImprove error message.
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.

13 years agoRename external functions in UDP test files.
linus [Thu, 20 Jan 2011 09:02:52 +0000 (10:02 +0100)]
Rename external functions in UDP test files.

13 years agoAdd basic testing code.
linus [Wed, 19 Jan 2011 15:47:37 +0000 (16:47 +0100)]
Add basic testing code.

13 years agoCosmetic changes.
linus [Mon, 17 Jan 2011 15:27:57 +0000 (16:27 +0100)]
Cosmetic changes.

13 years agoUpdate copyright years.
linus [Mon, 17 Jan 2011 15:25:29 +0000 (16:25 +0100)]
Update copyright years.

13 years agoUse standard RadSec port in example config.
Linus Nordberg [Thu, 11 Nov 2010 14:12:15 +0000 (15:12 +0100)]
Use standard RadSec port in example config.

13 years agoAdd extern "C" guards to all header files.
Linus Nordberg [Thu, 11 Nov 2010 13:57:05 +0000 (14:57 +0100)]
Add extern "C" guards to all header files.

13 years agoDo print generic error strings.
Linus Nordberg [Thu, 11 Nov 2010 11:33:58 +0000 (12:33 +0100)]
Do print generic error strings.

13 years agoRemove spurious comment.
Linus Nordberg [Thu, 11 Nov 2010 10:06:23 +0000 (11:06 +0100)]
Remove spurious comment.

13 years agoDisable debugging.
Linus Nordberg [Thu, 11 Nov 2010 10:03:52 +0000 (11:03 +0100)]
Disable debugging.

13 years agoBuild even when not configured with `--enable-tls'.
Linus Nordberg [Thu, 11 Nov 2010 10:02:14 +0000 (11:02 +0100)]
Build even when not configured with `--enable-tls'.

13 years agoBringing up TLS connections working.
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.

13 years agoDon't ignore connection type configuration.
Linus Nordberg [Mon, 8 Nov 2010 10:18:38 +0000 (11:18 +0100)]
Don't ignore connection type configuration.

13 years agoUse the request object in example programs.
Linus Nordberg [Thu, 28 Oct 2010 11:00:31 +0000 (13:00 +0200)]
Use the request object in example programs.

13 years ago"Thou shalt not follow the NULL pointer, for chaos and madness await
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."

13 years agoMove connection related functions to conn.c.
Linus Nordberg [Tue, 19 Oct 2010 17:17:42 +0000 (19:17 +0200)]
Move connection related functions to conn.c.

13 years agoRevert "Require Autoconf 2.68 since 2.65 doesn't work on OSX."
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.

13 years agoRequire Autoconf 2.68 since 2.65 doesn't work on OSX.
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.

13 years agoAdd stub.
Linus Nordberg [Fri, 15 Oct 2010 12:48:27 +0000 (14:48 +0200)]
Add stub.

13 years agoMerge branch 'merge-luke' into libradsec
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.

13 years agoHave rad_decode() verify responses.
Luke Howard [Sat, 9 Oct 2010 09:54:37 +0000 (11:54 +0200)]
Have rad_decode() verify responses.

13 years agoRequest object implementation and bug fixes by Luke Howard.
Linus Nordberg [Mon, 11 Oct 2010 08:41:58 +0000 (10:41 +0200)]
Request object implementation and bug fixes by Luke Howard.

13 years agoCompile again after bad fixes.
Linus Nordberg [Sun, 10 Oct 2010 14:00:11 +0000 (16:00 +0200)]
Compile again after bad fixes.

13 years agoCosmetics.
Linus Nordberg [Sun, 10 Oct 2010 13:56:01 +0000 (15:56 +0200)]
Cosmetics.

13 years agoRobustness fixes (and some callback invocation) by Luke Howard.
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.

13 years agoRename rs_req_* --> rs_request_.
Linus Nordberg [Sun, 10 Oct 2010 09:47:43 +0000 (11:47 +0200)]
Rename rs_req_* --> rs_request_.

Contributed by Luke Howard.

13 years agoAdd stuff to .gitignore.
Linus Nordberg [Sun, 10 Oct 2010 08:10:28 +0000 (10:10 +0200)]
Add stuff to .gitignore.

13 years agoDon't require username & pw in rs_packet_create_acc_request().
Linus Nordberg [Sun, 10 Oct 2010 08:10:11 +0000 (10:10 +0200)]
Don't require username & pw in rs_packet_create_acc_request().

13 years agoFail at configure time rather than build time when missing a library.
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.

13 years ago#include assert.h.
Linus Nordberg [Tue, 5 Oct 2010 20:12:05 +0000 (22:12 +0200)]
#include assert.h.

13 years agoAdd rs_conn_fd().
Linus Nordberg [Tue, 5 Oct 2010 20:09:15 +0000 (22:09 +0200)]
Add rs_conn_fd().

13 years agoMore info to README and HACKING.
Linus Nordberg [Tue, 5 Oct 2010 20:07:21 +0000 (22:07 +0200)]
More info to README and HACKING.

13 years agoRename struct rs_handle --> rs_context.
Linus Nordberg [Tue, 5 Oct 2010 20:06:01 +0000 (22:06 +0200)]
Rename struct rs_handle --> rs_context.

13 years agoMerge branch 'libradsec' of /tmp/radsecproxy into libradsec
Linus Nordberg [Tue, 5 Oct 2010 15:49:49 +0000 (17:49 +0200)]
Merge branch 'libradsec' of /tmp/radsecproxy into libradsec

13 years agoDisable debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:09:31 +0000 (09:09 +0200)]
Disable debug printouts.

13 years agoParameterize and disable libevent debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)]
Parameterize and disable libevent debug printouts.

13 years agoAutotoolize.
Linus Nordberg [Tue, 5 Oct 2010 06:36:38 +0000 (08:36 +0200)]
Autotoolize.

13 years agoDisable debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:09:31 +0000 (09:09 +0200)]
Disable debug printouts.

13 years agoParameterize and disable libevent debug printouts.
Linus Nordberg [Tue, 5 Oct 2010 07:02:22 +0000 (09:02 +0200)]
Parameterize and disable libevent debug printouts.

13 years agoMore autotools.
Linus Nordberg [Tue, 5 Oct 2010 06:54:09 +0000 (08:54 +0200)]
More autotools.

13 years agoAdd missing file.
Linus Nordberg [Tue, 5 Oct 2010 06:50:54 +0000 (08:50 +0200)]
Add missing file.

13 years agoAutotoolize.
Linus Nordberg [Tue, 5 Oct 2010 06:36:38 +0000 (08:36 +0200)]
Autotoolize.

13 years agoRemove unused.
Linus Nordberg [Mon, 4 Oct 2010 16:00:29 +0000 (18:00 +0200)]
Remove unused.

13 years agoFormatting (indent -kr).
Linus Nordberg [Mon, 4 Oct 2010 15:42:00 +0000 (17:42 +0200)]
Formatting (indent -kr).

13 years agoRename top level token "realm" --> "config".
Linus Nordberg [Mon, 4 Oct 2010 00:53:18 +0000 (02:53 +0200)]
Rename top level token "realm" --> "config".

13 years agoWIP
Linus Nordberg [Mon, 4 Oct 2010 00:43:54 +0000 (02:43 +0200)]
WIP

13 years agoWIP -- reading configuration.
Linus Nordberg [Sun, 3 Oct 2010 23:31:01 +0000 (01:31 +0200)]
WIP -- reading configuration.

13 years agoWIP
Linus Nordberg [Sun, 3 Oct 2010 21:27:46 +0000 (23:27 +0200)]
WIP

13 years agoWIP
Linus Nordberg [Sun, 3 Oct 2010 20:51:29 +0000 (22:51 +0200)]
WIP

13 years agoRename the error functions.
Linus Nordberg [Sun, 3 Oct 2010 17:23:43 +0000 (19:23 +0200)]
Rename the error functions.

13 years agoWIP -- prepare for request objects.
Linus Nordberg [Sun, 3 Oct 2010 14:24:57 +0000 (16:24 +0200)]
WIP -- prepare for request objects.

13 years agoWIP
Linus Nordberg [Sun, 3 Oct 2010 13:39:08 +0000 (15:39 +0200)]
WIP

13 years agoWIP
Linus Nordberg [Sun, 3 Oct 2010 12:15:09 +0000 (14:15 +0200)]
WIP

13 years agoWIP.
Linus Nordberg [Sat, 2 Oct 2010 19:43:41 +0000 (21:43 +0200)]
WIP.

13 years agoWIP
Linus Nordberg [Sat, 2 Oct 2010 19:31:50 +0000 (21:31 +0200)]
WIP

13 years agoWIP
Linus Nordberg [Fri, 1 Oct 2010 09:29:12 +0000 (11:29 +0200)]
WIP

13 years agoWIP -- example client sending and receiving Access-Request/Accept.
Linus Nordberg [Thu, 30 Sep 2010 22:14:05 +0000 (00:14 +0200)]
WIP -- example client sending and receiving Access-Request/Accept.

13 years agoRefactoring in preparation for handling more cases than client sending one packet.
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.

13 years ago* lib/examples/client.c: Use UDP.
Linus Nordberg [Wed, 29 Sep 2010 14:05:40 +0000 (16:05 +0200)]
* lib/examples/client.c: Use UDP.

13 years ago* lib/Makefile: Clean more.
Linus Nordberg [Wed, 29 Sep 2010 14:04:25 +0000 (16:04 +0200)]
* lib/Makefile: Clean more.

13 years agoRemove unused files.
Linus Nordberg [Wed, 29 Sep 2010 14:04:07 +0000 (16:04 +0200)]
Remove unused files.

13 years agoWIP -- connecting and sending a packet using libevent.
Linus Nordberg [Wed, 29 Sep 2010 13:52:39 +0000 (15:52 +0200)]
WIP -- connecting and sending a packet using libevent.

13 years agoWIP -- resolving, crafting packet.
Linus Nordberg [Wed, 29 Sep 2010 08:53:01 +0000 (10:53 +0200)]
WIP -- resolving, crafting packet.

13 years agoWIP
Linus Nordberg [Tue, 28 Sep 2010 21:20:17 +0000 (23:20 +0200)]
WIP

13 years agoWIP.
Linus Nordberg [Tue, 28 Sep 2010 20:27:04 +0000 (22:27 +0200)]
WIP.

13 years agoWIP
Linus Nordberg [Mon, 27 Sep 2010 21:35:08 +0000 (23:35 +0200)]
WIP

13 years agoWIP
Linus Nordberg [Mon, 27 Sep 2010 19:44:18 +0000 (21:44 +0200)]
WIP

13 years agoWIP on libradsec: 94e3f46 Example client crafting simple packet using freeradius...
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.

13 years agoExample 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.

13 years agoAdd licencing info.
Linus Nordberg [Wed, 22 Sep 2010 13:59:55 +0000 (15:59 +0200)]
Add licencing info.

13 years agoDocumentation changes.
Linus Nordberg [Wed, 15 Sep 2010 13:55:34 +0000 (15:55 +0200)]
Documentation changes.

13 years agoFormatting changes.
Linus Nordberg [Wed, 15 Sep 2010 12:09:26 +0000 (14:09 +0200)]
Formatting changes.

13 years agoRename rs_config to rs_handle.
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.

13 years agoAdd typedefs to use instead of enum to avoid ABI issues.
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.

13 years agoAdd a lost comment.
Linus Nordberg [Mon, 13 Sep 2010 16:19:02 +0000 (18:19 +0200)]
Add a lost comment.