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
-/* $OpenBSD: names.c,v 1.16 2022/11/26 16:08:52 tb Exp $ */
+/* $OpenBSD: names.c,v 1.17 2023/06/29 06:11:33 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
#include "evp_local.h"
+extern int obj_cleanup_defer;
+void check_defer(int nid);
+
int
EVP_add_cipher(const EVP_CIPHER *c)
{
-/* $OpenBSD: objects.h,v 1.21 2022/11/13 14:03:13 tb Exp $ */
+/* $OpenBSD: objects.h,v 1.22 2023/06/29 06:11:33 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
void OBJ_sigid_free(void);
-#if defined(LIBRESSL_CRYPTO_INTERNAL)
-extern int obj_cleanup_defer;
-void check_defer(int nid);
-#endif
-
void ERR_load_OBJ_strings(void);
/* Error codes for the OBJ functions. */