summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
diff options
context:
space:
mode:
authorjsing <>2022-09-03 17:47:47 +0000
committerjsing <>2022-09-03 17:47:47 +0000
commitf1083ba41574ef4e529cc2ea4ff2aa685c4833cd (patch)
tree6da083f1c09ce39a19ff47ac81c6e23adb5057bc /src/lib/libcrypto/x509
parente4165d18fd04cae0b27804487fe3e65d1e9d1d9e (diff)
downloadopenbsd-f1083ba41574ef4e529cc2ea4ff2aa685c4833cd.tar.gz
openbsd-f1083ba41574ef4e529cc2ea4ff2aa685c4833cd.tar.bz2
openbsd-f1083ba41574ef4e529cc2ea4ff2aa685c4833cd.zip
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@
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r--src/lib/libcrypto/x509/x509_issuer_cache.h3
1 files changed, 2 insertions, 1 deletions
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 @@
1/* $OpenBSD: x509_issuer_cache.h,v 1.1 2020/09/11 14:30:51 beck Exp $ */ 1/* $OpenBSD: x509_issuer_cache.h,v 1.2 2022/09/03 17:47:47 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -41,6 +41,7 @@ int x509_issuer_cache_set_max(size_t max);
41int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md); 41int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md);
42void x509_issuer_cache_add(unsigned char *parent_md, unsigned char *child_md, 42void x509_issuer_cache_add(unsigned char *parent_md, unsigned char *child_md,
43 int valid); 43 int valid);
44void x509_issuer_cache_free();
44 45
45__END_HIDDEN_DECLS 46__END_HIDDEN_DECLS
46 47