freeradius.git
18 years ago rlm_otp import from HEAD
fcusack [Thu, 8 Dec 2005 01:30:48 +0000 (01:30 +0000)]
rlm_otp import from HEAD
data structures (module_t and vp) still need to be modified for 1.1

18 years agoPull from CVS head:
nbk [Wed, 7 Dec 2005 17:42:12 +0000 (17:42 +0000)]
Pull from CVS head:
Back-port the -n and -p options, as well as a few bugfixes, too.

18 years agoPull from CVS head:
nbk [Wed, 7 Dec 2005 15:27:17 +0000 (15:27 +0000)]
Pull from CVS head:
Add hash table functions into the branch 1.1.

18 years ago Update for 1.1.x
aland [Thu, 1 Dec 2005 00:02:56 +0000 (00:02 +0000)]
Update for 1.1.x

18 years ago Updated for 1.1.x
aland [Thu, 1 Dec 2005 00:01:12 +0000 (00:01 +0000)]
Updated for 1.1.x

18 years ago Pull rbtree.c from the CVS head, to get fixes for writing to "static"
aland [Wed, 30 Nov 2005 22:40:18 +0000 (22:40 +0000)]
Pull rbtree.c from the CVS head, to get fixes for writing to "static"
memory locations that should really be "const".

18 years ago Pull changes from the (now-2.0) head
aland [Wed, 30 Nov 2005 22:32:27 +0000 (22:32 +0000)]
Pull changes from the (now-2.0) head

18 years ago Made it 2.0.0, and removed the changes that are in 1.1.x, as
aland [Wed, 30 Nov 2005 22:32:02 +0000 (22:32 +0000)]
Made it 2.0.0, and removed the changes that are in 1.1.x, as
we don't need to mention them twice

18 years ago Remember the proxying IP address.
aland [Wed, 30 Nov 2005 22:21:43 +0000 (22:21 +0000)]
Remember the proxying IP address.

This makes udpfromto work again

18 years ago Updated for 1.1.0
aland [Wed, 30 Nov 2005 22:20:14 +0000 (22:20 +0000)]
Updated for 1.1.0

18 years ago Don't need this any more in the 1.1.x branch
aland [Wed, 30 Nov 2005 22:19:26 +0000 (22:19 +0000)]
Don't need this any more in the 1.1.x branch

18 years ago Document the new dictionary format
aland [Wed, 30 Nov 2005 22:18:52 +0000 (22:18 +0000)]
Document the new dictionary format

18 years ago First pass at adding work on the 1.1.x branch.
aland [Wed, 30 Nov 2005 22:17:17 +0000 (22:17 +0000)]
First pass at adding work on the 1.1.x branch.

Copied share/* from the CVS head to this branch.

Updated src/lib/dict.c && src/lib/radius.c to handle (encode and
decode) VSA's with weird formats, with code copied from the CVS
head.

Updated "configure.in" to look for sys/stat.h, which is now needed
by src/lib/dict.c.

Updated "configure.in" with the new version number (1.1.0-pre0),
but did NOT re-run "configure"

18 years ago Re-implemented Exec-Program && Exec-Program-Wait in rlm_exec,
aland [Mon, 28 Nov 2005 21:47:01 +0000 (21:47 +0000)]
Re-implemented Exec-Program && Exec-Program-Wait in rlm_exec,
in the post-auth section.

We may want to add this in the "accounting" section, too

18 years ago Clean up time passed calculation (again)
aland [Mon, 28 Nov 2005 21:39:44 +0000 (21:39 +0000)]
Clean up time passed calculation (again)

18 years ago Pull a few downstream fixes:
nbk [Sun, 27 Nov 2005 15:14:51 +0000 (15:14 +0000)]
Pull a few downstream fixes:
- don't rerun configure during the build.
- don't install CVS files.
- add phony targets.

18 years ago Don't trust "mysql_config" output and test the libmysqlclient
nbk [Fri, 25 Nov 2005 20:31:54 +0000 (20:31 +0000)]
Don't trust "mysql_config" output and test the libmysqlclient
anyway. Broken MySQL packages from Redhat provide the script
"mysql_config" without the libmysqlclient headers. (closes: #297)

18 years ago More definitions for systems that don't have them
aland [Thu, 24 Nov 2005 22:55:42 +0000 (22:55 +0000)]
More definitions for systems that don't have them

18 years ago If no digest algorithm, default to MD5.
aland [Wed, 23 Nov 2005 19:39:12 +0000 (19:39 +0000)]
If no digest algorithm, default to MD5.

Patch from Philippe Sultan

18 years ago Sanity check lengths of hex string
aland [Wed, 23 Nov 2005 19:26:43 +0000 (19:26 +0000)]
Sanity check lengths of hex string

Patch from Philippe Sultan

18 years ago A little more generic way of truncating tunnel-password-encrypted
aland [Wed, 23 Nov 2005 18:30:57 +0000 (18:30 +0000)]
A little more generic way of truncating tunnel-password-encrypted
attributes.

Hmm... much of these checks should also be added to pairmake()
and friends, so that the admin can find limits earlier in the
process

18 years ago Motorola Canopy stuff
aland [Tue, 22 Nov 2005 23:03:24 +0000 (23:03 +0000)]
Motorola Canopy stuff

18 years ago Allow tunnel passwords to be longer than 16 characters. Oops..
aland [Tue, 22 Nov 2005 19:35:40 +0000 (19:35 +0000)]
Allow tunnel passwords to be longer than 16 characters.  Oops..

18 years ago - allocate all responses, not just the ones we fill in; the prior
fcusack [Thu, 17 Nov 2005 17:53:11 +0000 (17:53 +0000)]
- allocate all responses, not just the ones we fill in; the prior
  behavior would probably segfault if >1 prompt
- fill in responses in the same order as prompts
- correctly free memory on error (we were leaking reply[*].resp)
- zero out response memory on error (pointless, but considered SOP)

18 years ago Moved TLS code from rlm_eap_tls to libeap. Updated Make files
aland [Tue, 15 Nov 2005 22:29:49 +0000 (22:29 +0000)]
Moved TLS code from rlm_eap_tls to libeap.  Updated Make files
to use the new defs.

It appears to work.

18 years ago Remove stupid CVS log statement
aland [Tue, 15 Nov 2005 22:14:38 +0000 (22:14 +0000)]
Remove stupid CVS log statement

18 years ago Cleaned up the code so it has one code base for all functions.
aland [Mon, 14 Nov 2005 23:38:09 +0000 (23:38 +0000)]
Cleaned up the code so it has one code base for all functions.

Added authenticate, postproxy, and postauth sections, too

18 years ago Have the thread queue handler use fifos, rather than the hash
aland [Mon, 14 Nov 2005 21:55:13 +0000 (21:55 +0000)]
Have the thread queue handler use fifos, rather than the hash
table.

This makes it easier to add more logic around request handling,
i.e. prefer ongoing conversations over new ones.

18 years ago Be a little more careful when creating bad attributes
aland [Mon, 14 Nov 2005 21:30:25 +0000 (21:30 +0000)]
Be a little more careful when creating bad attributes

18 years ago Look at the correct variable
aland [Mon, 14 Nov 2005 20:28:54 +0000 (20:28 +0000)]
Look at the correct variable

18 years ago 'exec.c' has been deleted.
nbk [Mon, 14 Nov 2005 19:55:09 +0000 (19:55 +0000)]
'exec.c' has been deleted.

18 years ago Compile again the file 'exec.c'
nbk [Mon, 14 Nov 2005 19:54:45 +0000 (19:54 +0000)]
Compile again the file 'exec.c'

18 years ago Move back the file 'exec.c' from src/modules/rlm_exec to src/main
nbk [Mon, 14 Nov 2005 19:53:52 +0000 (19:53 +0000)]
Move back the file 'exec.c' from src/modules/rlm_exec to src/main

18 years ago As found on the net
aland [Fri, 11 Nov 2005 01:44:42 +0000 (01:44 +0000)]
As found on the net

18 years agofile rlm_sqlippool.c was added on branch branch_1_1 on 2006-04-07 15:49:48 +0000
pnixon [Fri, 11 Nov 2005 00:33:07 +0000 (00:33 +0000)]
file rlm_sqlippool.c was added on branch branch_1_1 on 2006-04-07 15:49:48 +0000

18 years ago Include files used to build the server are now <freeradius-devel/*.h>
aland [Fri, 11 Nov 2005 00:32:48 +0000 (00:32 +0000)]
Include files used to build the server are now <freeradius-devel/*.h>
If this is bad, we can easily change it in the future to something
like <freeradius/*.h>.

Also, updated rlm_sqlippool to build with the recent cleanups.

The work was done via a Perl script, and the server rebuilt &
tested to be sure it works.

18 years ago s/otp_get_challenge/otp_async_challenge/ to avoid confusion with
fcusack [Tue, 8 Nov 2005 11:00:34 +0000 (11:00 +0000)]
s/otp_get_challenge/otp_async_challenge/ to avoid confusion with
sync challenge

18 years ago combine another FR and PAM debug option (missed earlier)
fcusack [Tue, 8 Nov 2005 10:56:49 +0000 (10:56 +0000)]
combine another FR and PAM debug option (missed earlier)

18 years ago fix logging:
fcusack [Tue, 8 Nov 2005 10:51:43 +0000 (10:51 +0000)]
fix logging:
- add __func__ to otp_log(), where missing
- don't prepend MODULE_NAME in otp_log(), instead make it part of
  log_prefix (as appropriate)

18 years ago fix signed/unsigned comparison
fcusack [Tue, 8 Nov 2005 10:43:20 +0000 (10:43 +0000)]
fix signed/unsigned comparison

18 years ago combine FR and PAM debug options
fcusack [Tue, 8 Nov 2005 09:06:45 +0000 (09:06 +0000)]
combine FR and PAM debug options

18 years ago Change user_state 'challenge' field from string to uchar, which
fcusack [Tue, 8 Nov 2005 08:56:21 +0000 (08:56 +0000)]
Change user_state 'challenge' field from string to uchar, which
makes more sense for crypto and other manipulation.  Unfortunately,
it is a huge change for such a small gain (basically avoiding
sprintf() and sscanf() conversions.)

Notable changes:
- otp.h: add 'clen' field to user_state; update it wherever the
  'challenge' field is set
- otp_cardops.h: add printchallenge() method, OTP_CF_C8 and OTP_CF_C4
  Card Feature macros
- cardops keystring2keyblock() method and otp_keystring2keyblock()
  now return keylen (instead of 0) on success
- otp_keyblock2keystring() now takes a length arg and returns char *
  for easy printing
- remove [unused] 'card_info' and 'log_prefix' args to cardops
  updatecsd() method
- otp_gen_challenge() noted as cryptocard-specific with quirky behavior
- otp_challenge_transform() explicitly returns new challenge length
        - cryptocard.c:cryptocard_challenge(): Remove hardcoded challenge
  length of 8.  Yes, *sync* challenge length must be 8 but challenge
  might be a different size due to resync with an async challenge.
  This worked before but became a bug when we changed the user_state
  'challenge' field to be the previous (instead of the next) challenge.

18 years ago add sratch3 back to user_state, to hold csd offset
fcusack [Tue, 8 Nov 2005 04:02:20 +0000 (04:02 +0000)]
add sratch3 back to user_state, to hold csd offset

18 years ago On deleting the request list, kill any live threads that are
aland [Mon, 7 Nov 2005 19:46:30 +0000 (19:46 +0000)]
On deleting the request list, kill any live threads that are
processing the request, and mark the request has having no
child pid.

We should fix up the thread pool, too, to catch the case of
"disappeared" child threads

18 years ago s/user_info/card_info/
fcusack [Mon, 7 Nov 2005 09:28:33 +0000 (09:28 +0000)]
s/user_info/card_info/

18 years ago remove extra scratch field from user_state
fcusack [Mon, 7 Nov 2005 06:19:05 +0000 (06:19 +0000)]
    remove extra scratch field from user_state

18 years ago - otp.h: add scratch data fields to otp_user_state_t, for tmp use
fcusack [Mon, 7 Nov 2005 03:46:07 +0000 (03:46 +0000)]
- otp.h: add scratch data fields to otp_user_state_t, for tmp use
  by cardops methods
- change 'user_state' arg to cardops challenge() method to non-const,
  so that state can be updated with scratch data for later methods
        - remove [unused] 'challenge' arg to cardops updatecsd() method, and
  reorder 'when' arg to be consistent with challenge() method
- remove 'twin' arg to cardops isconsecutive() method; time data now
  stored as scratch data (twin data is meaningless, it must be
  converted to a time counter which is already done in challenge(),
  so don't do it again)

18 years ago remove csd arg to cardops response() method
fcusack [Sat, 5 Nov 2005 08:43:37 +0000 (08:43 +0000)]
remove csd arg to cardops response() method

18 years ago remove cardops isearly() method, instead the challenge() method now
fcusack [Sat, 5 Nov 2005 02:11:03 +0000 (02:11 +0000)]
remove cardops isearly() method, instead the challenge() method now
returns multiple error codes, eliminating some duplicate code and
saving a function call

18 years ago remove 'now' arg from cardops maxtwin() method
fcusack [Sat, 5 Nov 2005 01:07:13 +0000 (01:07 +0000)]
remove 'now' arg from cardops maxtwin() method

18 years agoDescription:
fcusack [Sat, 5 Nov 2005 00:52:40 +0000 (00:52 +0000)]
Description:
update cardops challenge() method: change order of 'challenge' and
'when' args, change 'twin' and 'ewin' args to type int

18 years ago Use closefrom
aland [Fri, 4 Nov 2005 19:30:40 +0000 (19:30 +0000)]
Use closefrom

18 years ago Spelling.
aland [Fri, 4 Nov 2005 19:29:54 +0000 (19:29 +0000)]
Spelling.

18 years ago Allow tabs
aland [Fri, 4 Nov 2005 19:28:52 +0000 (19:28 +0000)]
Allow tabs

18 years ago Catch NULL ptr
aland [Fri, 4 Nov 2005 19:21:23 +0000 (19:21 +0000)]
Catch NULL ptr

18 years ago On HUP, move proxy sockets, too
aland [Fri, 4 Nov 2005 19:01:14 +0000 (19:01 +0000)]
On HUP, move proxy sockets, too

18 years agoUpdated check program for 'sockaddr_storage' to include <sys/socket.h>
cparker [Fri, 4 Nov 2005 18:42:40 +0000 (18:42 +0000)]
Updated check program for 'sockaddr_storage' to include <sys/socket.h>
and detect it's existance on Solaris 8 systems ( and presumably other
Solaris variants ).

18 years ago - Remove duplicate work in cardops twin2cardtime() method by removing
fcusack [Fri, 4 Nov 2005 07:28:58 +0000 (07:28 +0000)]
- Remove duplicate work in cardops twin2cardtime() method by removing
  the method altogether.  Now we call challenge() before isearly(),
  and pass the challenge in, instead of cardtime.
- mincardtime is now saved in the updatecsd() method instead of in
  otp_cardops.c
- remove minewin state field (still version 5)

18 years ago change state fields failcount and minewin from int to uint32,
fcusack [Fri, 4 Nov 2005 05:00:35 +0000 (05:00 +0000)]
change state fields failcount and minewin from int to uint32,
for portability (really this time)

18 years ago - change state field minauthtime to mincardtime
fcusack [Fri, 4 Nov 2005 04:54:52 +0000 (04:54 +0000)]
- change state field minauthtime to mincardtime
- change state fields failcount and minewin from int to uint32

18 years ago More cleanups & leak fixes
aland [Fri, 4 Nov 2005 00:40:48 +0000 (00:40 +0000)]
More cleanups & leak fixes

18 years ago Abstract code some more.
aland [Thu, 3 Nov 2005 23:51:50 +0000 (23:51 +0000)]
Abstract code some more.

Actually free stuff on errors

18 years ago - add back time restriction to rwindow override, mistakenly removed
fcusack [Thu, 3 Nov 2005 00:54:15 +0000 (00:54 +0000)]
- add back time restriction to rwindow override, mistakenly removed
  in previous change
- add logging when a window position is skipped for being too early

18 years ago Make isconsecutive() a cardops method instead of trying to account
fcusack [Thu, 3 Nov 2005 00:13:10 +0000 (00:13 +0000)]
Make isconsecutive() a cardops method instead of trying to account
for all cases in otp_cardops.c:
- remove nexttwin() method
- save rwindow data as card-specific 'rd' field, instead of generic
  authewin and authtwin fields
- updatecsd() method now has to update rd as well
- bump state to version 5

18 years ago cardops updatecsd() method twin arg is int, not unsigned
fcusack [Wed, 2 Nov 2005 22:41:15 +0000 (22:41 +0000)]
cardops updatecsd() method twin arg is int, not unsigned

18 years ago - change csd and challenge args to cardops response() method to
fcusack [Wed, 2 Nov 2005 22:19:32 +0000 (22:19 +0000)]
- change csd and challenge args to cardops response() method to
  char[] instead of char*, to document expected array length
- change csd arg to cardops response() method to const
- remove now superfluous (since cl 421) local copy of user_state.csd

18 years ago Removed duplicate function. Patch from Phillipe Sultan
aland [Wed, 2 Nov 2005 18:46:24 +0000 (18:46 +0000)]
Removed duplicate function.  Patch from Phillipe Sultan

18 years ago isearly() should take int, not unsigned, for ewin arg
fcusack [Wed, 2 Nov 2005 07:24:21 +0000 (07:24 +0000)]
isearly() should take int, not unsigned, for ewin arg

18 years ago simplify "too early" logic by adding a cardops method isearly(),
fcusack [Wed, 2 Nov 2005 06:54:41 +0000 (06:54 +0000)]
simplify "too early" logic by adding a cardops method isearly(),
rather than trying to account for the different cases in otp_cardops.c

18 years ago update csd comment: prev, not next, sync challenge, due to state v4
fcusack [Wed, 2 Nov 2005 06:48:42 +0000 (06:48 +0000)]
update csd comment: prev, not next, sync challenge, due to state v4

18 years ago Added hex printing of the packets if command-line options are -xxx
aland [Tue, 1 Nov 2005 23:15:25 +0000 (23:15 +0000)]
Added hex printing of the packets if command-line options are -xxx

18 years ago Catch case where the user hasn't updated the dictionaries with
aland [Tue, 1 Nov 2005 22:44:31 +0000 (22:44 +0000)]
Catch case where the user hasn't updated the dictionaries with
the new format strings, and force them to be the default values

18 years ago Pass option "--config-cache" to configure, it's *a lot* faster.
nbk [Tue, 1 Nov 2005 19:14:38 +0000 (19:14 +0000)]
Pass option "--config-cache" to configure, it's *a lot* faster.

18 years ago Regenerate from configure.in 1.222
nbk [Tue, 1 Nov 2005 19:11:08 +0000 (19:11 +0000)]
Regenerate from configure.in 1.222

18 years ago Ugly hack to make "./configure --config-cache" work.
nbk [Tue, 1 Nov 2005 19:04:49 +0000 (19:04 +0000)]
Ugly hack to make "./configure --config-cache" work.

18 years ago change order of twin and ewin params to cardops challenge() method,
fcusack [Tue, 1 Nov 2005 07:55:29 +0000 (07:55 +0000)]
change order of twin and ewin params to cardops challenge() method,
to be consistent with inner and outer loop vars and logging order

18 years ago Add "format=" option to VENDOR statements in the dictionaries.
aland [Tue, 1 Nov 2005 01:50:42 +0000 (01:50 +0000)]
Add "format=" option to VENDOR statements in the dictionaries.

This lets us support any vendor with wonky formats, rather than
hard-coding vendor names into the source.

It also allows us to support read multiple Lucent & Starent
attributes in one Vendor-Specific, which is nice.

The code is a *lot* larger than before, but I hope it's clearer,
and it does support a lot more weird situations than before.

18 years ago Set more lengths on paircreate()
aland [Tue, 1 Nov 2005 01:07:27 +0000 (01:07 +0000)]
Set more lengths on paircreate()

Allow values for pairmake() to be 253*2 characters long, for hex
data.

18 years ago Removed bogus code
aland [Mon, 31 Oct 2005 16:47:19 +0000 (16:47 +0000)]
Removed bogus code

18 years ago Always use a "switch" statement after calling the modules, so it's
nbk [Mon, 31 Oct 2005 16:15:47 +0000 (16:15 +0000)]
Always use a "switch" statement after calling the modules, so it's
easier to figure out what's going on with the many return codes.

18 years ago isconsecutive(): test for persistent softfail to avoid broken math
fcusack [Mon, 31 Oct 2005 08:29:43 +0000 (08:29 +0000)]
isconsecutive(): test for persistent softfail to avoid broken math

18 years ago persistent softfail (forced by nullstate) fixes
fcusack [Mon, 31 Oct 2005 07:44:57 +0000 (07:44 +0000)]
persistent softfail (forced by nullstate) fixes

18 years ago Don't leak memory in rad_authenticate() when we receive an
nbk [Sun, 30 Oct 2005 16:51:21 +0000 (16:51 +0000)]
Don't leak memory in rad_authenticate() when we receive an
Access-Challenge from the home server. Also re-arrange the
code which check the proxy reply, and update the comments.

18 years ago Print a debug message with the name of the stanza which is used
nbk [Sat, 29 Oct 2005 20:11:53 +0000 (20:11 +0000)]
Print a debug message with the name of the stanza which is used
to run the modules.

18 years ago right shift OTP_CF_FRW and OTP_CF_TW mask bits to get value
fcusack [Sat, 29 Oct 2005 05:46:27 +0000 (05:46 +0000)]
right shift OTP_CF_FRW and OTP_CF_TW mask bits to get value

18 years ago don't redefine _GNU_SOURCE if already defined
fcusack [Sat, 29 Oct 2005 04:49:37 +0000 (04:49 +0000)]
don't redefine _GNU_SOURCE if already defined

18 years ago Move table of PID's to wait for into a hash table, which makes it
aland [Fri, 28 Oct 2005 21:06:56 +0000 (21:06 +0000)]
Move table of PID's to wait for into a hash table, which makes it
easier to manage.

18 years ago Correct typo in closefrom
aland [Fri, 28 Oct 2005 21:03:13 +0000 (21:03 +0000)]
Correct typo in closefrom

18 years ago Don't fclose() a file stream more than once.
nbk [Thu, 27 Oct 2005 15:07:10 +0000 (15:07 +0000)]
Don't fclose() a file stream more than once.

Bug found by Svein Hansen <svein.hansen@hive.no>

18 years ago add trid-beta-2 support
fcusack [Wed, 26 Oct 2005 23:08:34 +0000 (23:08 +0000)]
add trid-beta-2 support

18 years ago Suppress sending attributes of zero length.
aland [Wed, 26 Oct 2005 06:01:43 +0000 (06:01 +0000)]
Suppress sending attributes of zero length.

Bug #273

18 years ago Correct length bug in make_tunnel_passwd
aland [Wed, 26 Oct 2005 01:10:00 +0000 (01:10 +0000)]
Correct length bug in make_tunnel_passwd

use "data" ptr, not "vp->vp_octets" in rad_vp2attr(), during
encryption.

update rad_attr2vp() to handle encrypted IP's and integers.
(and anything else, for that matter).

Update rad_decode() to handle Starent attributes.

This code is a lot cleaner than what was there before...

18 years ago Now that we have rad_vp2attr, and it's clean, adding support for
aland [Tue, 25 Oct 2005 20:17:42 +0000 (20:17 +0000)]
Now that we have rad_vp2attr, and it's clean, adding support for
Starent VSA's is trivial.

We still have to make rad_attr2vp() support Starent VSA's, and
the Juniper encrypted integers & IP's

18 years ago New attributes, from bug #284.
aland [Tue, 25 Oct 2005 18:24:45 +0000 (18:24 +0000)]
New attributes, from bug #284.

As a result of recent updates to src/lib/radius.c, we now get
"tunnel password" encrypted IP addresses and integers for free.

18 years ago rad_vp2attr now takes "const VALUE_PAIR *", so it isn't modified.
aland [Tue, 25 Oct 2005 18:10:39 +0000 (18:10 +0000)]
rad_vp2attr now takes "const VALUE_PAIR *", so it isn't modified.

Moved make_secret() to just before rad_vp2attr.

Added new make_passwd (User-Password) and make_tunnel_passwd
(Tunnel-Password) that take input & output ptrs, so they don't
modify a VALUE_PAIR*.  The resulting code also looks a lot cleaner,
and makes more sense.

Fixed rad_attr2vp() to ALWAYS return the attribute, even if it's
format is wrong (i.e. can't decrypt it, etc).  In those cases,
the attribute name is left alone, but the flags are all set to
zero (no tag or encryption stuff), AND the data from the packet
is copied verbatim into vp->vp_octets.

This makes the server a little more forgiving of bad requests.

18 years ago run all known cardops constructors if they didn't run
fcusack [Tue, 25 Oct 2005 05:29:29 +0000 (05:29 +0000)]
run all known cardops constructors if they didn't run
(workaround for Cyclades ACS runtime linker deficiency)

18 years ago Update minauthtime handling for event-only cards to fix a bug in
fcusack [Tue, 25 Oct 2005 01:26:47 +0000 (01:26 +0000)]
Update minauthtime handling for event-only cards to fix a bug in
the sync_response loop where authtime always equals minauthtime,
and so the 0th event (or, all events earlier than minewin, usu. 0)
is not considered.
otp_cardops.c:otp_pw_valid(): always set minauthtime to 0
cryptocard.c:cryptocard_twin2authtime(): return current time, not 0

18 years ago Clean up rad_vp2attr. This version is a LOT more readable than
aland [Mon, 24 Oct 2005 19:54:51 +0000 (19:54 +0000)]
Clean up rad_vp2attr.  This version is a LOT more readable than
the previous code.

18 years ago Check the return value of accounting modules and don't proxy
nbk [Sun, 23 Oct 2005 17:43:29 +0000 (17:43 +0000)]
Check the return value of accounting modules and don't proxy
invalid requests. Now the actions are:

Return value            Proxy   Drop
--------------------------------------
RLM_MODULE_REJECT                 X
RLM_MODULE_FAIL           X
RLM_MODULE_OK             X
RLM_MODULE_HANDLED        X
RLM_MODULE_INVALID                X
RLM_MODULE_USERLOCK               X
RLM_MODULE_NOTFOUND               X
RLM_MODULE_NOOP           X
RLM_MODULE_UPDATED        X

18 years ago More code cleanups
aland [Sat, 22 Oct 2005 00:10:03 +0000 (00:10 +0000)]
More code cleanups