hostap/src/radius
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
..
.gitignore
Makefile tests: Add ap-mgmt-fuzzer 2015-04-22 11:44:19 +03:00
radius.c Use os_memdup() 2017-03-07 13:19:10 +02:00
radius.h Add a require_message_authenticator configuration option 2016-08-08 00:36:17 +03:00
radius_client.c radius: Sanity check for NULL pointer segfault 2016-08-19 12:16:20 +03:00
radius_client.h RADIUS: Update full message for interim accounting updates 2016-02-29 11:52:16 +02:00
radius_das.c Use os_memdup() 2017-03-07 13:19:10 +02:00
radius_das.h Add a require_message_authenticator configuration option 2016-08-08 00:36:17 +03:00
radius_server.c RADIUS server: Fix error paths in new session creation 2017-03-05 16:18:57 +02:00
radius_server.h EAP server: Add tls_session_lifetime configuration 2015-08-24 02:29:30 +03:00