summaryrefslogtreecommitdiffstats
path: root/lib/libradius/radlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug, when RADIUS client gave up after single sendto() error, do notmav2009-09-291-9/+4
| | | | | | trying backup servers. PR: kern/103764, misc/139214
* Add simple embedded RADIUS server support to libradius, by extending existingmav2009-09-111-77/+269
| | | | | | | | | API, keeping backward compatibility. First consumer for this functionality is going to become forthcoming MPD-5.4, supporting CoA and DR of RFC 3576: Dynamic Authorization Extensions to RADIUS. MFC after: 1 month
* Use correct u_int and socklen_t types for parameters if function iskan2007-04-041-2/+3
| | | | expecting them, not int.
* Use %zu to print values with type size_t.stefanf2004-06-141-3/+3
|
* - Added rad_demangle() for demangling user-passwords (needed forru2004-04-271-20/+305
| | | | | | | | | | | | | | | | | | | | MS-CHAPv1 MPPE-keys). - Added rad_demangle_mppe_key() for demangling mppe-keys (needed for MPPE-keys). - Added some typecasts for avoiding compiler warnings. - Fix: better handle wrong usage of the lib (if the programmer has not called rad_create_request() but rad_put_*(), then a weird error message was returned). - Added a new function for putting the Message-Authenticator. - Verify the Message-Authenticator, if it was found inside a response packet and silently drop the packet, if the validation failed. - Implicitly put the Message-Authenticator, if the EAP-Message attribute was added. - Added some missing defines. Submitted by: Michael Bretterklieber PR: 46555
* Add the following functions:brian2002-06-121-0/+17
| | | | | | | | | | | | | | | | | | | | rad_request_authenticator() Returns the Request-Authenticator relevant to the most recently received RADIUS response. rad_server_secret() Returns the Shared Secret relevant to the most recently received RADIUS response. Neither of these functions should be necessary, however, the MS-MPPE-Recv-Key and MS-MPPE-Send-Key Microsoft Vendor Specific attributes are supplied in a mangled (encrypted) format, requiring this information to demangle. It's not clear whether these functions should be replaced with a rad_demangle() function or whether these attributes are one-offs. Sponsored by: Monzoon
* Add rad_get_vendor_attr() for deciphering vendor attributes receivedbrian2002-05-101-0/+13
| | | | from the RADIUS server.
* Add support for vendor specific RADIUS extensions.brian2002-05-071-0/+51
| | | | Only the extensions from rfc2548 are specified for now.
* Add __FBSDID()s to libradiusdillon2001-09-301-2/+3
|
* Fix password clearing bug which prevented challenge/response from working.eivind2000-11-081-1/+1
| | | | Reviewed by: jdp
* strtok -> strsep (no strtok allowed in libraries)ache2000-08-291-3/+4
|
* Add support for RADIUS accounting. Note, this changes the formatjdp1999-10-311-22/+103
| | | | | | | | | | | of the /etc/radius.conf file. But the code contains hacks for backward compatibility, so old files will continue to work. I updated the man pages and made a couple of minor changes, but everything else was submitted by Oleg. PR: misc/14284 Submitted by: Oleg Semyonov <os@altavista.net>
* Allow an alternate to rad_send_request() for programs thatbrian1999-02-051-131/+162
| | | | | don't wish to wait for the RADIUS server to respond. Reviewed by: jdp
* Install -C radlib.hbrian1999-01-291-6/+21
| | | | | | | | Don't insist that RAD_USER_PASSWORD is supplied before calling rad_send_request(). Instead, insist on only one of RAD_USER_PASSWORD and RAD_CHAP_PASSWORD. Sponsored by: Internet Business Solutions Ltd., Switzerland
* Initial import of RADIUS client library donated by Juniper Networks, Inc.jdp1998-11-131-0/+737
OpenPOWER on IntegriCloud