summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authortb <>2023-06-29 06:11:33 +0000
committertb <>2023-06-29 06:11:33 +0000
commit83aca281b6157089882f6b65d5a1278f12f60ffb (patch)
tree60f8c9890d61afaef61aa9e90eecaadfb94658c7 /src/lib/libcrypto/evp
parent180dabc6b448ff5b3fedbd8c39a1a64f147ba175 (diff)
downloadopenbsd-83aca281b6157089882f6b65d5a1278f12f60ffb.tar.gz
openbsd-83aca281b6157089882f6b65d5a1278f12f60ffb.tar.bz2
openbsd-83aca281b6157089882f6b65d5a1278f12f60ffb.zip
Move check_defer() and obj_cleanup_defer to evp/names.c
These formerly public symbols are the last things hidden by LIBRESSL_CRYPTO_INTERNAL. Most of their use is in evp/names.c Unfortunately, check_defer() needs to know about NUM_NIDS, so its implementation needs to remain in obj_dat.c, the only file that can include obj_dat.h due to NID tables. ok miod
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/names.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c
index a27a187542..10ce13bb89 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.16 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: names.c,v 1.17 2023/06/29 06:11:33 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 *
@@ -64,6 +64,9 @@
64 64
65#include "evp_local.h" 65#include "evp_local.h"
66 66
67extern int obj_cleanup_defer;
68void check_defer(int nid);
69
67int 70int
68EVP_add_cipher(const EVP_CIPHER *c) 71EVP_add_cipher(const EVP_CIPHER *c)
69{ 72{