hostap/src/eap_server
Johannes Berg a1f11e34c4 Use os_memdup()
This leads to cleaner code overall, and also reduces the size
of the hostapd and wpa_supplicant binaries (in hwsim test build
on x86_64) by about 2.5 and 3.5KiB respectively.

The mechanical conversions all over the code were done with
the following spatch:

    @@
    expression SIZE, SRC;
    expression a;
    @@
    -a = os_malloc(SIZE);
    +a = os_memdup(SRC, SIZE);
    <...
    if (!a) {...}
    ...>
    -os_memcpy(a, SRC, SIZE);

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-07 13:19:10 +02:00
..
eap.h ERP: Update client identity based on EAP-Initiate/Re-auth 2016-10-22 23:13:17 +03:00
eap_i.h EAP server: Add tls_session_lifetime configuration 2015-08-24 02:29:30 +03:00
eap_methods.h EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server.c ERP: Use macro for EMSKname length instead of hardcoded integer value 2017-02-03 15:35:21 +02:00
eap_server_aka.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_eke.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_fast.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_gpsk.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_gtc.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_identity.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_ikev2.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_md5.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_methods.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_mschapv2.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_pax.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_peap.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_psk.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_pwd.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_sake.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_sim.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_tls.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_tls_common.c TLS: Split tls_connection_prf() into two functions 2016-05-23 20:40:12 +03:00
eap_server_tnc.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_ttls.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_server_vendor_test.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_server_wsc.c EAP server: Simplify EAP method registration call 2016-01-13 23:35:53 +02:00
eap_sim_db.c eap_sim_db: Implement eap_sim_db_expire_pending() 2015-10-31 16:28:16 +02:00
eap_sim_db.h eap_sim_db: Implement eap_sim_db_expire_pending() 2015-10-31 16:28:16 +02:00
eap_tls_common.h EAP server: Disable TLS session ticket with EAP-TLS/TTLS/PEAP 2015-08-24 02:29:30 +03:00
ikev2.c Use os_memdup() 2017-03-07 13:19:10 +02:00
ikev2.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
Makefile tests: Add ap-mgmt-fuzzer 2015-04-22 11:44:19 +03:00
tncs.c Use os_memdup() 2017-03-07 13:19:10 +02:00
tncs.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00