fragattacks/src/eap_peer
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_aka.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_config.h EAP peer: Cache decrypted requests for EAP-SIM/AKA/AKA' 2017-02-10 19:48:12 +02:00
eap_eke.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_fast_pac.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_fast_pac.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
eap_fast.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_gpsk.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_gtc.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_i.h EAP peer: External server certificate chain validation 2015-12-12 18:24:27 +02:00
eap_ikev2.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_leap.c crypto: Process des_encrypt() error returns in callers 2017-02-28 11:24:05 +02:00
eap_md5.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_methods.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_methods.h EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_mschapv2.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_otp.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_pax.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_peap.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_proxy_dummy.c eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb 2016-12-19 22:14:07 +02:00
eap_proxy.h eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb 2016-12-19 22:14:07 +02:00
eap_psk.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_pwd.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_sake.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_sim.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_tls_common.c TLS: Split tls_connection_prf() into two functions 2016-05-23 20:40:12 +03:00
eap_tls_common.h EAP-TLS/PEAP/TTLS/FAST: Move more towards using struct wpabuf 2015-05-03 16:32:23 +03:00
eap_tls.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_tnc.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_ttls.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eap_vendor_test.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap_wsc.c EAP peer: Simplify EAP method registration call 2016-01-13 23:30:25 +02:00
eap.c EAP peer: Cache decrypted requests for EAP-SIM/AKA/AKA' 2017-02-10 19:48:12 +02:00
eap.h eap_proxy: Add support for SIM state change indication from eap_proxy 2016-12-19 22:21:07 +02: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 eapol-fuzzer 2015-04-22 11:44:19 +03:00
mschapv2.c EAP-MSCHAPv2: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:48 +03:00
mschapv2.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
tncc.c Use os_memdup() 2017-03-07 13:19:10 +02:00
tncc.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00