hostap/src/eapol_auth
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
..
eapol_auth_dump.c Check os_snprintf() result more consistently - automatic 1 2014-12-08 11:42:07 +02:00
eapol_auth_sm.c Use os_memdup() 2017-03-07 13:19:10 +02:00
eapol_auth_sm.h EAP server: Add tls_session_lifetime configuration 2015-08-24 02:29:30 +03:00
eapol_auth_sm_i.h RADIUS: Use more likely unique accounting Acct-{,Multi-}Session-Id 2016-02-06 17:10:19 +02:00
Makefile tests: Add ap-mgmt-fuzzer 2015-04-22 11:44:19 +03:00