hostapd/src/wps
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
..
http.h WPS: Move POST URL validation into web_connection_parse_post() 2009-12-12 16:48:50 +02:00
http_client.c WPS: Use a shared error path in http_client_addr() 2015-08-29 13:42:32 +03:00
http_client.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
http_server.c WPS: Merge common error paths in HTTP server 2015-08-28 20:33:22 +03:00
http_server.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
httpread.c WPS: Remove duplicated isgraph() loop in HTTP header parsing 2015-08-28 23:59:28 +03:00
httpread.h Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
Makefile tests: Add p2p-fuzzer 2015-04-22 11:44:19 +03:00
ndef.c WPS: Avoid bogus static analyzer warning in ndef_parse_record() 2015-07-17 20:43:17 +03:00
upnp_xml.c WPS ER: Fix UPnP XML Device Description parser to find correct device 2011-08-31 13:56:03 +03:00
upnp_xml.h WPS ER: Fix UPnP XML Device Description parser to find correct device 2011-08-31 13:56:03 +03:00
wps.c Use os_memdup() 2017-03-07 13:19:10 +02:00
wps.h WPS: Use only os_get_random() for PIN generation 2016-02-19 18:44:40 +02:00
wps_attr_build.c WPS: Check sha256_vector() result in wps_build_oob_dev_pw() 2016-05-16 21:06:44 +03:00
wps_attr_parse.c WPS: Avoid undefined behavior in pointer arithmetic 2015-10-18 11:37:47 +03:00
wps_attr_parse.h WPS: Reduce struct wps_parse_attr size 2015-09-07 23:02:19 +03:00
wps_attr_process.c WPS: Reject a Credential with invalid passphrase 2016-05-02 11:08:25 +03:00
wps_common.c WPS: Fix debug prints in wps_derive_psk() error case 2016-05-16 19:35:03 +03:00
wps_defs.h WPS: Testing mechanism to force auth/encr type flags 2016-01-01 13:42:04 +02:00
wps_dev_attr.c P2P NFC: Add WPS attribute building for P2P NFC 2014-01-27 21:10:55 +02:00
wps_dev_attr.h P2P NFC: Add WPS attribute building for P2P NFC 2014-01-27 21:10:55 +02:00
wps_enrollee.c WPS: Fix debug prints in wps_derive_psk() error case 2016-05-16 19:35:03 +03:00
wps_er.c Use os_memdup() 2017-03-07 13:19:10 +02:00
wps_er.h WPS ER: Allow UPnP interface to be forced 2013-04-28 21:56:24 +03:00
wps_er_ssdp.c WPS ER: Fix SSDP CACHE-CONTROL line parser 2015-08-15 22:24:15 +03:00
wps_i.h WPS: Fix debug prints in wps_derive_psk() error case 2016-05-16 19:35:03 +03:00
wps_module_tests.c tests: Declare module test functions in a header file 2016-06-23 18:26:09 +03:00
wps_registrar.c Use os_memdup() 2017-03-07 13:19:10 +02:00
wps_upnp.c WPS: Support parallel UPnP WPS protocol runs 2015-11-30 16:57:11 +02:00
wps_upnp.h WPS: Support parallel UPnP WPS protocol runs 2015-11-30 16:57:11 +02:00
wps_upnp_ap.c WPS: Merge SetSelectedRegistrar parsing error returns 2015-08-31 17:25:20 +03:00
wps_upnp_event.c WPS: Merge event_send_start() error paths 2015-08-31 17:25:20 +03:00
wps_upnp_i.h WPS: Support parallel UPnP WPS protocol runs 2015-11-30 16:57:11 +02:00
wps_upnp_ssdp.c Share a single str_starts() implementation 2016-08-06 12:38:21 +03:00
wps_upnp_web.c WPS: Support parallel UPnP WPS protocol runs 2015-11-30 16:57:11 +02:00
wps_validate.c WPS: Add support for 60 GHz band 2015-04-28 00:22:16 +03:00