summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/names.c
diff options
context:
space:
mode:
authortb <>2023-06-29 06:11:33 +0000
committertb <>2023-06-29 06:11:33 +0000
commita1bdd4c20c55e52ed63ea6391d4e33da0b8a8684 (patch)
tree60f8c9890d61afaef61aa9e90eecaadfb94658c7 /src/lib/libcrypto/evp/names.c
parentc1b2166dce863a0ab17f7898e48e9fd6e7320972 (diff)
downloadopenbsd-a1bdd4c20c55e52ed63ea6391d4e33da0b8a8684.tar.gz
openbsd-a1bdd4c20c55e52ed63ea6391d4e33da0b8a8684.tar.bz2
openbsd-a1bdd4c20c55e52ed63ea6391d4e33da0b8a8684.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/names.c')
-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{