aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_client.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra linefeed from hostapd_logger messageJouni Malinen2012-04-011-1/+1
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix potential double free and use of freed memory in RADIUS clientAlexander Couzens2012-04-011-1/+1
| | | | | | | | | | ieee802_1x_encapsulate_radius() frees the RADIUS message if radius_client_send() returns error. This could have resulted in use of freed memory and double freeing of the RADIUS message if send() fails since the message is also left in the retransmit list. Avoid this by not returning error to the caller in such a case. Signed-off-by: Alexander Couzens <lynxis@c-base.org>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Fix RADIUS client configuration update on reconfigJouni Malinen2011-02-101-0/+8
| | | | | | | The internal pointer to RADIUS client configuration needs to be updated whenever a new hostapd configuration is loaded. Without this, freed memory may be dereferenced and this can result in segmentation faults.
* Fix RADIUS client to cancel IPv6 socket read notificationsJouni Malinen2009-12-191-0/+6
|
* Make struct radius_msg private to radius.cJouni Malinen2009-12-191-9/+15
| | | | | This is internal data structure for RADIUS message handling and external code should not touch it directly.
* Convert RADIUS message code to use wpabuf internallyJouni Malinen2009-12-191-2/+3
|
* Change radius_msg_free() to free the bufferJouni Malinen2009-12-191-5/+0
| | | | | Since all callers were freeing the buffer immediately anyway, move this operation into radius_msg_free() to reduce code size.
* Complete Doxygen documentation for RADIUS clientJouni Malinen2009-11-291-11/+93
| | | | | No more warnings from Doxygen about missing documentation from radius_client.[ch].
* Remove unused RADIUS client reconfig functionJouni Malinen2009-11-281-62/+0
| | | | | | | | | | | | | This is not actually used at all and it looks like the rules for maintaining the old/new RADIUS configuration are not very clear in the case the RADIUS client configuration did not change. Consequently, it is better to just remove this for now and if similar functionality is ever needed, redesign it to be easier to use without causing hard to find issues with using freed memory. Simpler approach to reconfiguring the RADIUS client would involve just deinitializing the old context unconditionally and initializing a new one whenever the configuration could have changed.
* Improved Doxygen documentation for RADIUS client codeJouni Malinen2009-11-281-18/+186
|
* Disable PMTU discovery for RADIUS packets (sent them without DF)Stefan Winter2009-08-231-2/+22
| | | | | | | | | | | When Linux has Path MTU discovery enabled, it sets by default the DF bit on all outgoing datagrams, also UDP ones. If a RADIUS message is bigger than the smallest MTU size to the target, it will be discarded. This effectively limits RADIUS messages to ~ 1500 Bytes, while they can be up to 4k according to RFC2865. In practice, this can mean trouble when doing EAP-TLS with many RADIUS attributes besides the EAP-Message. [Bug 326]
* Mark shared secret const in RADIUS client routinesJouni Malinen2009-01-081-2/+3
|
* Mark functions static if not used elsewhere and use proper prototypesJouni Malinen2009-01-031-3/+3
|
* Fixed RADIUS client local address forcing for IPv6 (eapol_test)Jouni Malinen2008-06-051-3/+4
| | | | Need to use the IPv6 address data in bind() call if IPv6 is selected.
* eapol_test: Allow client IP address to be specifiedTomasz Wolniewicz2008-03-301-3/+57
| | | | | | | | | | | | | Allow the user to set the IP address of the eapol_test client. This if very useful when you have a machine with many interfaces and want to use a particular one for testing RADIUS connectivity. For instance when I run the national eduroam proxy I can only connect to other server from a particular address, an our machine happens to have several IPs. So if I want to run connectivity tests, I must make sure that my test uses a particular interface. The -A option allows one to set this). (jm: cleaned up to use radius configuration structure instead of global variable for the address and added IPv6 support)
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-271-0/+1219