From 766b2a8db8a962a03b684be3949e366b7a8553e0 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 7 Feb 2018 02:13:42 +0000 Subject: Add more functions (based on those used in OpenSSH) to the free NULL test. --- src/regress/lib/libcrypto/free/freenull.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/free/freenull.c b/src/regress/lib/libcrypto/free/freenull.c index d946a265c0..9a082f3e91 100644 --- a/src/regress/lib/libcrypto/free/freenull.c +++ b/src/regress/lib/libcrypto/free/freenull.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freenull.c,v 1.4 2017/05/06 21:23:57 jsing Exp $ */ +/* $OpenBSD: freenull.c,v 1.5 2018/02/07 02:13:42 jsing Exp $ */ /* * Copyright (c) 2017 Bob Beck * @@ -33,8 +33,23 @@ main(int argc, char **argv) BIO_free_all(NULL); + BN_clear_free(NULL); + BN_free(NULL); + + DH_free(NULL); + DIST_POINT_free(NULL); + DSA_SIG_free(NULL); + DSA_free(NULL); + + ECDSA_SIG_free(NULL); + + EC_KEY_free(NULL); + EC_POINT_clear_free(NULL); + EC_POINT_free(NULL); + + EVP_CIPHER_CTX_free(NULL); EVP_PKEY_free(NULL); GENERAL_NAME_free(NULL); @@ -42,10 +57,13 @@ main(int argc, char **argv) NAME_CONSTRAINTS_free(NULL); + RSA_free(NULL); + sk_GENERAL_NAME_pop_free(NULL, GENERAL_NAME_free); sk_X509_NAME_ENTRY_pop_free(NULL, X509_NAME_ENTRY_free); X509_NAME_ENTRY_free(NULL); + X509_free(NULL); printf("PASS\n"); -- cgit v1.2.3-55-g6feb