hostap/src/tls
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
asn1.c
asn1.h TLS: Fix and complete ASN.1 tag list 2015-12-13 22:12:07 +02:00
bignum.c
bignum.h
libtommath.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
Makefile TLS: Parse CertificateStatus message 2015-12-14 15:49:01 +02:00
pkcs1.c
pkcs1.h
pkcs5.c TLS: Extend PKCS #5 to support PKCS #12 style key decryption 2015-12-14 15:49:01 +02:00
pkcs5.h
pkcs8.c
pkcs8.h
rsa.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
rsa.h
tlsv1_client.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
tlsv1_client.h TLS client: Use TLS_CONN_* flags 2015-11-29 19:48:17 +02:00
tlsv1_client_i.h TLS: Parse CertificateStatus message 2015-12-14 15:49:01 +02:00
tlsv1_client_ocsp.c TLS client: Multi-OCSP check to cover intermediate CAs 2015-12-24 00:54:30 +02:00
tlsv1_client_read.c Use os_memdup() 2017-03-07 13:19:10 +02:00
tlsv1_client_write.c TLS client: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:56 +02:00
tlsv1_common.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
tlsv1_common.h TLS server: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:52 +02:00
tlsv1_cred.c Use os_memdup() 2017-03-07 13:19:10 +02:00
tlsv1_cred.h TLS server: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:52 +02:00
tlsv1_record.c
tlsv1_record.h
tlsv1_server.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
tlsv1_server.h
tlsv1_server_i.h TLS server: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:52 +02:00
tlsv1_server_read.c TLS server: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:52 +02:00
tlsv1_server_write.c TLS server: OCSP stapling with ocsp_multi option (RFC 6961) 2015-12-22 20:44:52 +02:00
x509v3.c Use os_memdup() 2017-03-07 13:19:10 +02:00
x509v3.h TLS client: Multi-OCSP check to cover intermediate CAs 2015-12-24 00:54:30 +02:00