libradius(3): Sync with FreeBSD head.
authorNuno Antunes <nuno.antunes@gmail.com>
Fri, 4 Jul 2014 05:59:13 +0000 (06:59 +0100)
committerNuno Antunes <nuno.antunes@gmail.com>
Fri, 4 Jul 2014 06:08:22 +0000 (07:08 +0100)
commit50beab2d46ff14aa2fffee24aa46160398a87f7c
tree9e2341888f0934fe24b6cd208be1fc07217b00e9
parent99334a0732335f8270e7589aca0c4d87b0b97de5
libradius(3): Sync with FreeBSD head.

Here is a summary of the changes.

* Added rad_request_authenticator() which returns the Request-Authenticator
  relevant to the most recently received RADIUS response.

* Added rad_server_secret() which returns the Shared Secret relevant to the
  most recently received RADIUS response.

* Added rad_demangle() for demangling user-passwords (needed for 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.

* Add simple embedded RADIUS server support to libradius, by extending existing
  API, keeping backward compatibility.

* Add binding support.

* Alphabetically sort MLINKS in the Makefile.

* Various other bugfixes.

Taken-from: FreeBSD (with small adjustments)
gnu/usr.bin/groff/tmac/mdoc.local
lib/libradius/Makefile
lib/libradius/libradius.3
lib/libradius/radius.conf.5
lib/libradius/radlib.c
lib/libradius/radlib.h
lib/libradius/radlib_private.h
lib/libradius/radlib_vs.h