aboutsummaryrefslogtreecommitdiff
path: root/lib/libradius/radlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Make libradius(3) buildable.Jung-uk Kim2018-09-191-30/+33
| | | | Notes: svn path=/projects/openssl111/; revision=338781
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Fix build: reflect the increased field number.Xin LI2012-12-071-1/+1
| | | | Notes: svn path=/head/; revision=243964
* - Rewrite radius servers traversal algorithm.Sergey Matveychuk2012-12-061-36/+166
| | | | | | | | | - Add functions for working with IPv6 attributes. Approved by: ae Notes: svn path=/head/; revision=243956
* Add binding support to libradius(3).Alexander V. Chernikov2011-12-201-1/+8
| | | | | | | | | Submitted by: Sergey Matveychuk <sem33@yandex-team.ru> Approved by: ae (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=228730
* Fix bug, when RADIUS client gave up after single sendto() error, do notAlexander Motin2009-09-291-9/+4
| | | | | | | | | trying backup servers. PR: kern/103764, misc/139214 Notes: svn path=/head/; revision=197621
* Add simple embedded RADIUS server support to libradius, by extending existingAlexander Motin2009-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 Notes: svn path=/head/; revision=197086
* Use correct u_int and socklen_t types for parameters if function isAlexander Kabaev2007-04-041-2/+3
| | | | | | | expecting them, not int. Notes: svn path=/head/; revision=168341
* Use %zu to print values with type size_t.Stefan Farfeleder2004-06-141-3/+3
| | | | Notes: svn path=/head/; revision=130490
* - Added rad_demangle() for demangling user-passwords (needed forRuslan Ermilov2004-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 Notes: svn path=/head/; revision=128684
* Add the following functions:Brian Somers2002-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 Notes: svn path=/head/; revision=98131
* Add rad_get_vendor_attr() for deciphering vendor attributes receivedBrian Somers2002-05-101-0/+13
| | | | | | | from the RADIUS server. Notes: svn path=/head/; revision=96322
* Add support for vendor specific RADIUS extensions.Brian Somers2002-05-071-0/+51
| | | | | | | Only the extensions from rfc2548 are specified for now. Notes: svn path=/head/; revision=96154
* Add __FBSDID()s to libradiusMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84219
* Fix password clearing bug which prevented challenge/response from working.Eivind Eklund2000-11-081-1/+1
| | | | | | | Reviewed by: jdp Notes: svn path=/head/; revision=68499
* strtok -> strsep (no strtok allowed in libraries)Andrey A. Chernov2000-08-291-3/+4
| | | | Notes: svn path=/head/; revision=65222
* Add support for RADIUS accounting. Note, this changes the formatJohn Polstra1999-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> Notes: svn path=/head/; revision=52709
* Allow an alternate to rad_send_request() for programs thatBrian Somers1999-02-051-131/+162
| | | | | | | | don't wish to wait for the RADIUS server to respond. Reviewed by: jdp Notes: svn path=/head/; revision=43662
* Install -C radlib.hBrian Somers1999-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 Notes: svn path=/head/; revision=43400
* Initial import of RADIUS client library donated by Juniper Networks, Inc.John Polstra1998-11-131-0/+737
Notes: svn path=/cvs2svn/branches/JUNIPER/; revision=41118