From f1083ba41574ef4e529cc2ea4ff2aa685c4833cd Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 3 Sep 2022 17:47:47 +0000 Subject: Prepare to provide OPENSSL_cleanup. OPENSSL_cleanup() cleans up and deallocates memory in use by the library. There are a couple of use cases for this, primarily related to memory leak testing. This will not be called automatically in LibreSSL, which means that OpenSSL's OPENSSL_NO_INIT_ATEXIT is implied. If code wants to clean up then they need to explicitly call this themselves. ok tb@ --- src/lib/libcrypto/x509/x509_issuer_cache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509') diff --git a/src/lib/libcrypto/x509/x509_issuer_cache.h b/src/lib/libcrypto/x509/x509_issuer_cache.h index 6dedde75f1..3afe65bd49 100644 --- a/src/lib/libcrypto/x509/x509_issuer_cache.h +++ b/src/lib/libcrypto/x509/x509_issuer_cache.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_issuer_cache.h,v 1.1 2020/09/11 14:30:51 beck Exp $ */ +/* $OpenBSD: x509_issuer_cache.h,v 1.2 2022/09/03 17:47:47 jsing Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -41,6 +41,7 @@ int x509_issuer_cache_set_max(size_t max); int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md); void x509_issuer_cache_add(unsigned char *parent_md, unsigned char *child_md, int valid); +void x509_issuer_cache_free(); __END_HIDDEN_DECLS -- cgit v1.2.3-55-g6feb