hostapd/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 Add rules for building src/tls/libtls.a and use it with eap_example 2009-12-06 16:27:54 +02:00
asn1.c Check os_snprintf() result more consistently - automatic 1 2014-12-08 11:42:07 +02:00
asn1.h TLS: Fix and complete ASN.1 tag list 2015-12-13 22:12:07 +02:00
bignum.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
bignum.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
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 TLS: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:47 +03:00
pkcs1.h PKCS 1: Add function for checking v1.5 RSA signature 2014-05-20 19:52:18 +03:00
pkcs5.c TLS: Extend PKCS #5 to support PKCS #12 style key decryption 2015-12-14 15:49:01 +02:00
pkcs5.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
pkcs8.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
pkcs8.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
rsa.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
rsa.h Add function for building RSA public key from n and e parameters 2014-05-19 23:27:30 +03:00
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 TLS: Use os_memcmp_const() for hash/password comparisons 2014-07-02 12:38:47 +03:00
tlsv1_record.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
tlsv1_server.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
tlsv1_server.h Rename tls_connection_get_keys() to tls_connection_get_random() 2015-08-02 16:52:56 +03:00
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