openssl/test/helpers
Jiasheng Jiang 09030ee736 Add the check after calling OPENSSL_strdup
Since the potential failure of the memory allocation, the
OPENSSL_strdup() could return NULL pointer.
Therefore, it should be better to check it in order to guarantee the
success of the configuration, same as the check for
SSL_CTX_set_srp_username().

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17643)
2022-02-09 10:45:12 +11:00
..
cmp_testlib.c Use the new ASN.1 libctx aware capabilities in CMP 2021-06-05 17:39:10 +10:00
cmp_testlib.h Use the new ASN.1 libctx aware capabilities in CMP 2021-06-05 17:39:10 +10:00
handshake_srp.c Add the check after calling OPENSSL_strdup 2022-02-09 10:45:12 +11:00
handshake.c Add and use HAS_PREFIX() and CHECK_AND_SKIP_PREFIX() for checking if string has literal prefix 2021-11-17 15:48:34 +01:00
handshake.h
pkcs12.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
pkcs12.h Update copyright year 2021-05-06 13:03:23 +01:00
predefined_dhparams.c Bugfix: unsafe return check of EVP_PKEY_fromdata 2021-10-11 10:45:21 +02:00
predefined_dhparams.h
ssl_test_ctx.c Move AllowClientRenegotiation tests 2021-06-15 12:36:51 +02:00
ssl_test_ctx.h
ssltestlib.c Move e_os.h to include/internal 2022-02-05 05:31:09 +01:00
ssltestlib.h