radsecproxy.git
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.

13 years agoImprove API docu in libradsec-base.h slightly.
Linus Nordberg [Mon, 13 Sep 2010 16:17:01 +0000 (18:17 +0200)]
Improve API docu in libradsec-base.h slightly.

Still needs work!

13 years agoMake git ignore gcc precompiled headers.
Linus Nordberg [Mon, 13 Sep 2010 16:16:26 +0000 (18:16 +0200)]
Make git ignore gcc precompiled headers.

13 years agoFirst stab at a working blocking example.
Linus Nordberg [Mon, 13 Sep 2010 15:27:40 +0000 (17:27 +0200)]
First stab at a working blocking example.

13 years agoLow level connect and read working, kind of. At least TCP.
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.

13 years agoRename libradsec-libevent.h --> libradsec-levent.h.
Linus Nordberg [Wed, 1 Sep 2010 23:20:58 +0000 (01:20 +0200)]
Rename libradsec-libevent.h --> libradsec-levent.h.

13 years agoCosmetic changes.
Linus Nordberg [Wed, 1 Sep 2010 23:00:28 +0000 (01:00 +0200)]
Cosmetic changes.

13 years agoChange the order of parameters to rc_connect() -- let those who may
Linus Nordberg [Wed, 1 Sep 2010 22:51:14 +0000 (00:51 +0200)]
Change the order of parameters to rc_connect() -- let those who may
default to 0 or NULL come last.

13 years agoComplete documentation for functions in libradsec-base.h.
Linus Nordberg [Wed, 1 Sep 2010 22:32:38 +0000 (00:32 +0200)]
Complete documentation for functions in libradsec-base.h.

13 years agoSplit libradsec.h in -base.h and -libevent.h.
Linus Nordberg [Wed, 1 Sep 2010 22:20:31 +0000 (00:20 +0200)]
Split libradsec.h in -base.h and -libevent.h.

13 years agoThinking out loud some more.
Linus Nordberg [Fri, 27 Aug 2010 12:33:15 +0000 (14:33 +0200)]
Thinking out loud some more.

13 years agoFix typo.
Linus Nordberg [Fri, 27 Aug 2010 12:04:34 +0000 (14:04 +0200)]
Fix typo.

13 years agoAdd lib/libradsec.h.
Linus Nordberg [Fri, 27 Aug 2010 11:29:47 +0000 (13:29 +0200)]
Add lib/libradsec.h.

First sketch of the API.

13 years ago* ChangeLog: Fix typo.
Linus Nordberg [Sat, 12 Jun 2010 00:11:39 +0000 (02:11 +0200)]
* ChangeLog: Fix typo.

13 years ago* configure.ac: Update version. radsecproxy-1.4
Linus Nordberg [Fri, 11 Jun 2010 23:42:29 +0000 (01:42 +0200)]
* configure.ac: Update version.

13 years ago* NEWS: New file, for make dist. Shouldn't be needed since `AUTOMAKE_OPTIONS = forei...
Linus Nordberg [Fri, 11 Jun 2010 23:38:42 +0000 (01:38 +0200)]
* NEWS: New file, for make dist.  Shouldn't be needed since `AUTOMAKE_OPTIONS = foreign' IMO.

13 years ago* README: Add known build issues.
Linus Nordberg [Fri, 11 Jun 2010 23:37:06 +0000 (01:37 +0200)]
* README: Add known build issues.

13 years ago* Makefile.in: Regenerate.
Linus Nordberg [Fri, 11 Jun 2010 23:28:24 +0000 (01:28 +0200)]
* Makefile.in: Regenerate.

13 years ago* Makefile.am: Include THANKS.
Linus Nordberg [Fri, 11 Jun 2010 23:28:16 +0000 (01:28 +0200)]
* Makefile.am: Include THANKS.

13 years ago* ChangeLog: Fix version number and date.
Linus Nordberg [Fri, 11 Jun 2010 22:52:02 +0000 (00:52 +0200)]
* ChangeLog: Fix version number and date.

13 years ago* README: Correct version number and fix date.
Linus Nordberg [Fri, 11 Jun 2010 22:51:45 +0000 (00:51 +0200)]
* README: Correct version number and fix date.

13 years agoRegenerate Auto* files, partly because of changes to configure.ac and
Linus Nordberg [Fri, 11 Jun 2010 22:45:09 +0000 (00:45 +0200)]
Regenerate Auto* files, partly because of changes to configure.ac and
Makefile.am and partly because of newer Auto* suite.

13 years ago* configure.ac: Check for docbook2x-man.
Linus Nordberg [Fri, 11 Jun 2010 22:44:29 +0000 (00:44 +0200)]
* configure.ac: Check for docbook2x-man.
* Makefile.am: Build radsecproxy.conf.5 only if docbook2x-man exists.

13 years agoRemove packaging/{portage,rpm}. They're ancient and don't receive any
Linus Nordberg [Fri, 11 Jun 2010 21:32:24 +0000 (23:32 +0200)]
Remove packaging/{portage,rpm}.  They're ancient and don't receive any
love no more.

13 years ago* README: Improve initial paragraph. Thanks to Stig Venaas.
Linus Nordberg [Fri, 11 Jun 2010 21:10:33 +0000 (23:10 +0200)]
* README: Improve initial paragraph.  Thanks to Stig Venaas.

13 years agoAlphabetize on first name instead.
Linus Nordberg [Fri, 11 Jun 2010 20:50:50 +0000 (22:50 +0200)]
Alphabetize on first name instead.

13 years agoSplit README into README and THANKS.
Linus Nordberg [Fri, 11 Jun 2010 15:30:58 +0000 (17:30 +0200)]
Split README into README and THANKS.
Rewrite AUTHORS.

13 years ago* README: Update version number and date. FIXME: This file should
Linus Nordberg [Thu, 10 Jun 2010 12:54:19 +0000 (14:54 +0200)]
* README: Update version number and date.  FIXME: This file should
probably be rewritten.

13 years ago* develdoc.txt: Language nitpicking fixes.
Linus Nordberg [Thu, 10 Jun 2010 12:49:18 +0000 (14:49 +0200)]
* develdoc.txt: Language nitpicking fixes.

13 years ago* ChangeLog: Restructure and add note about incompatible change in log levels.
Linus Nordberg [Wed, 9 Jun 2010 20:34:16 +0000 (22:34 +0200)]
* ChangeLog: Restructure and add note about incompatible change in log levels.

13 years ago* radsecproxy.conf-example: Fix typo.
Linus Nordberg [Thu, 3 Jun 2010 13:17:03 +0000 (15:17 +0200)]
* radsecproxy.conf-example: Fix typo.

13 years ago* radsecproxy.conf-example: Update for new log level.
Linus Nordberg [Thu, 3 Jun 2010 13:16:36 +0000 (15:16 +0200)]
* radsecproxy.conf-example: Update for new log level.

13 years ago* README: Correct number of debug levels.
Linus Nordberg [Wed, 2 Jun 2010 18:50:26 +0000 (20:50 +0200)]
* README: Correct number of debug levels.
* radsecproxy.c (getmainconfig): Take new log level into account.
(getargs): Ditto.
Patch by Kolbjørn Barmen.

13 years ago* ChangeLog: Mention new log level.
Linus Nordberg [Tue, 1 Jun 2010 15:54:15 +0000 (17:54 +0200)]
* ChangeLog: Mention new log level.

13 years ago* LICENSE: Update years.
Linus Nordberg [Tue, 1 Jun 2010 11:11:25 +0000 (13:11 +0200)]
* LICENSE: Update years.

13 years ago* ChangeLog: Update date and version. Reformulate last entry.
Linus Nordberg [Tue, 1 Jun 2010 10:31:28 +0000 (12:31 +0200)]
* ChangeLog: Update date and version.  Reformulate last entry.

13 years ago* Makefile.in: Regenerate.
Linus Nordberg [Tue, 1 Jun 2010 10:31:02 +0000 (12:31 +0200)]
* Makefile.in: Regenerate.

13 years ago* Makefile.am (EXTRA_DIST): Add LICENSE.
Linus Nordberg [Tue, 1 Jun 2010 10:30:52 +0000 (12:30 +0200)]
* Makefile.am (EXTRA_DIST): Add LICENSE.

13 years ago* Makefile.in: Regenerate.
Linus Nordberg [Tue, 1 Jun 2010 08:38:31 +0000 (10:38 +0200)]
* Makefile.in: Regenerate.

13 years ago* Makefile.am: Put man page files in `dist_man_MANS' and it's built by
Linus Nordberg [Tue, 1 Jun 2010 08:38:22 +0000 (10:38 +0200)]
* Makefile.am: Put man page files in `dist_man_MANS' and it's built by
target 'all' as well as included in 'dist'.

13 years ago* radsecproxy.conf.5: Remove since it's generated from
Linus Nordberg [Tue, 1 Jun 2010 07:58:40 +0000 (09:58 +0200)]
* radsecproxy.conf.5: Remove since it's generated from
radsecproxy.conf.5.xml (make target 'man').

13 years agoReflect new debug level in man pages and comments in source.
Linus Nordberg [Tue, 1 Jun 2010 07:58:13 +0000 (09:58 +0200)]
Reflect new debug level in man pages and comments in source.

Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no>
Date:   Tue Jun 1 09:52:17 2010 +0300

13 years agoAdded DBG_NOTICE to the access accept/reject and accounting,
Linus Nordberg [Tue, 1 Jun 2010 07:51:32 +0000 (09:51 +0200)]
Added DBG_NOTICE to the access accept/reject and accounting,
statisticly interesting information.

Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no>
Date:   Tue Jun 1 09:41:02 2010 +0300

13 years agoBump version.
Linus Nordberg [Mon, 31 May 2010 08:52:10 +0000 (10:52 +0200)]
Bump version.

13 years agoAdd log level DBG_NOTICE.
Linus Nordberg [Mon, 31 May 2010 08:43:03 +0000 (10:43 +0200)]
Add log level DBG_NOTICE.