summaryrefslogtreecommitdiff
path: root/radsecproxy.c
Commit message (Collapse)AuthorAgeFilesLines
* * README: Correct number of debug levels.Linus Nordberg2010-06-021-2/+2
| | | | | | * radsecproxy.c (getmainconfig): Take new log level into account. (getargs): Ditto. Patch by Kolbjørn Barmen.
* Reflect new debug level in man pages and comments in source.Linus Nordberg2010-06-011-2/+2
| | | | | Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no> Date: Tue Jun 1 09:52:17 2010 +0300
* Added DBG_NOTICE to the access accept/reject and accounting,Linus Nordberg2010-06-011-8/+18
| | | | | | | statisticly interesting information. Author: Kolbjørn Barmen <kolbjorn.barmen@uninett.no> Date: Tue Jun 1 09:41:02 2010 +0300
* * radsecproxy.c (createpidfile): Don't use r uninitialized.radsecproxy-1.4-beta1Linus Nordberg2010-05-281-1/+1
|
* * radsecproxy.c (createpidfile): Treat pid_t as long, avoiding compiler ↵Linus Nordberg2010-05-281-1/+1
| | | | warnings on Solaris.
* Print a better version string than "$Rev$".Linus Nordberg2010-05-281-2/+2
|
* * debug.c (debugerrno): New function.Linus Nordberg2010-05-281-13/+14
| | | | | (debugerrnox): New function. * radsecproxy.c: Use debugerrno() and debugerrnox() when appropriate.
* * radsecproxy.c (extractattr): Add vendor_flag argument and enforceLinus Nordberg2010-05-271-8/+15
| | | | three fields (vendor, name, value) when set.
* * radsecproxy.c (pwdencrypt): Fix bug with User-Password's of a lengthLinus Nordberg2010-05-261-40/+7
| | | | | | | greater than 16 octets. Spotted by Timothy, hunted down by Ralf Paffrath and verified by Stig Venaas. (pwdencrypt, pwddecrypt): Collapse into one new function -- pwdcrypt(). (pwdrecrypt): Use new pwdcrypt().
* * radsecproxy.c (extractattr): Bug! When s is changed, update len. This ↵Linus Nordberg2010-05-251-5/+6
| | | | might actually work now!
* * radsecproxy.c (extractattr): Fix bug where 'name' part was lost (inLinus Nordberg2010-05-251-1/+1
| | | | fact, 'val' was used for name).
* * radsecproxy.c (addrewrite): Add some detail to error printouts.Linus Nordberg2010-05-251-5/+5
|
* * radsecproxy.c (makevendortlv): Free attr when it's been copied.Linus Nordberg2010-05-251-6/+15
| | | | | (addvendorattr): Free attr if makevendortlv() fails. (addttlattr): Don't free attr, now that this is done by makevendortlv().
* * radsecproxy.c: Fix typo introduced in 4779686 making rewrite a nullLinus Nordberg2010-05-241-12/+10
| | | | operation altogether.
* (dorewrite): Do modattrs even if addattrs fails. Do modattrs beforelinus2010-03-311-19/+79
| | | | | | | | | | | | addattrs though. (addvendorattr): New function, doing aobut the same as addvendorattr() did. Used by extractattr() too. (extractattr): Add vendor field too (vendor:name:val). (addrewrite): Handle "addvattrs" too -- AddVendorAttributes. (confrewrite_cb): Add "addVendorAttribute". git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@546 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Add LoopPrevention per server (RADSECPROXY-1).linus2010-03-311-1/+5
| | | | | | | TODO: Documentation and configuration example still missing. git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@544 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Add Emacs local variable for stroustrup style.linus2010-03-231-0/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@530 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Reindent and remove trailing whitespace.linus2010-03-081-225/+225
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@517 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Missing parantheses bug spotted by Daniel Bertolokolla2010-01-131-9/+10
| | | | | | | Reformatted while loop by Kolbjørn git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@513 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Creditskolla2009-09-111-0/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@511 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Added Stefan's UDP fragmentation fixkolla2009-09-111-0/+3
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@510 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Contribution acknowledgementskolla2009-07-221-0/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@507 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* From: Simon Leinen <simon.leinen@switch.ch>Simon Leinen2009-07-221-4/+4
| | | | | | | | | Message-ID: <19015.29517.446579.671665@switch.ch> Subject: SourceUDP and accounting packets git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@503 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Added contributed patch by Maja Wolniewicz <mgw@umk.pl>kolla2009-04-241-8/+8
| | | | | | | | | It adds the information about the client side to Access-Accept / Access-Reject line in log. git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@502 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Shorter way to accomplish the samekolla2009-04-031-8/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@500 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Individual messages per msg typekolla2009-04-031-3/+7
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@499 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Ouptut "replyh: passing reply to client" as WARN (level 2) when reply messagekolla2009-04-021-1/+5
| | | | | | | | is either Access_Accept, Access_Reject or Accounting_Response - usefull for "normal logging" git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@497 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* adjusted some log levels, log level 2 default, preparing for 1.3 releasevenaas2009-03-121-17/+17
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@490 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* added -i option for pid file, HUP for reopening log filevenaas2009-02-131-8/+26
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@471 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* set dynamic timeout to 5venaas2009-02-051-1/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@468 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* timeout for connectvenaas2009-02-051-1/+0
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@467 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* allowing multiple host statements in client and server blocksvenaas2009-02-031-18/+65
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@466 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* minor fixes to hostport stuffvenaas2009-01-291-7/+7
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@464 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* rewriting code for hosts,ports,resolving,currently does not buildvenaas2009-01-271-237/+63
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@461 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* delay for retrying dynamic after various other failuresvenaas2009-01-131-0/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@458 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* made it so it works with mix of dynamic and static servers for a realmvenaas2009-01-131-79/+90
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@457 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* don't exit just because of bad dynamic configvenaas2009-01-121-2/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@456 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* fixed bug with dynamicserver and default secretvenaas2009-01-081-13/+13
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@454 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* renamed struct queue to gqueue due to solaris defining queuevenaas2009-01-071-5/+5
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@452 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* reverting makefile, emovign some includesvenaas2008-12-221-2/+0
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@449 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* adding configure options for various transports, and -v output which ↵venaas2008-12-221-1/+15
| | | | | | transports are enabled git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@448 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* moved more code to tlscommon, fixed a couple of minor lint warningsvenaas2008-12-221-237/+14
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@447 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* split out code that is needed only when tls or dtls is usedvenaas2008-12-221-369/+20
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@445 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* allowing build with only specific transportsvenaas2008-12-191-0/+26
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@444 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* cleaning up codevenaas2008-12-191-25/+51
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@443 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* cleaning up codevenaas2008-12-191-92/+22
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@442 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* cleaning up codevenaas2008-12-181-24/+18
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@441 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* removing some lint warningsvenaas2008-12-181-4/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@440 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* now freeing buffer of outgoing request as soon as we give up sending ↵venaas2008-12-181-0/+4
| | | | | | request, rather than waiting until new request with same id git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@439 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* addttl option for client/servervenaas2008-11-041-40/+64
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@432 e88ac4ed-0b26-0410-9574-a7f39faa03bf