summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authortb <>2024-01-13 11:55:31 +0000
committertb <>2024-01-13 11:55:31 +0000
commit5b5b63091409c538b39fa94900b1f0871adea0be (patch)
treed123a927b79b922142d67475805b96d646e0ae32 /src/lib/libcrypto/evp
parent3599ee1569abc65ae01fb33aaf6f4050d72b9dc6 (diff)
downloadopenbsd-5b5b63091409c538b39fa94900b1f0871adea0be.tar.gz
openbsd-5b5b63091409c538b39fa94900b1f0871adea0be.tar.bz2
openbsd-5b5b63091409c538b39fa94900b1f0871adea0be.zip
Garbage collect check_defer()
This was a mechanism to ensure that OBJ_cleanup() doesn't remove the ASN1_OBJECT associated with a custom cipher or digest (that was added with EVP_add_{cipher,digest}(), while the latter is still referenced in the OBJ_NAME table. It had the effect that OBJ_cleanup() wasn't actually called ever from OPENSSL_cleanup() (it is only called if you load the OID conf module). Oh, and of course it was once part of the public API. I fixed that two years ago, almost exactly to the day. Still mentioned in OBJ_create.3.
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/names.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c
index 6ef061a2cb..7dc9457c3e 100644
--- a/src/lib/libcrypto/evp/names.c
+++ b/src/lib/libcrypto/evp/names.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: names.c,v 1.27 2024/01/13 11:48:16 tb Exp $ */ 1/* $OpenBSD: names.c,v 1.28 2024/01/13 11:55:31 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -65,7 +65,6 @@
65#include "evp_local.h" 65#include "evp_local.h"
66 66
67extern int obj_cleanup_defer; 67extern int obj_cleanup_defer;
68void check_defer(int nid);
69 68
70int 69int
71EVP_add_cipher(const EVP_CIPHER *c) 70EVP_add_cipher(const EVP_CIPHER *c)