summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-19 19:27:34 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-19 19:27:34 +0000
commit4e185b3bce6c2cc0172091d24f2cded3b207aa8b (patch)
tree06b1039ac6030efe0aaf96825110f61de2ce7198
parentadd1f777afc67be9c355a9e391a6de1f3d21730c (diff)
Move the OPENSSL_init() stub from o_init.c to crypto_init.c
-rw-r--r--lib/libcrypto/Makefile3
-rw-r--r--lib/libcrypto/crypto_init.c7
-rw-r--r--lib/libcrypto/o_init.c10
3 files changed, 7 insertions, 13 deletions
diff --git a/lib/libcrypto/Makefile b/lib/libcrypto/Makefile
index 06bb1ec6bdb..8c3d05bd483 100644
--- a/lib/libcrypto/Makefile
+++ b/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.174 2024/03/02 13:39:28 tb Exp $
+# $OpenBSD: Makefile,v 1.175 2024/03/19 19:27:33 tb Exp $
LIB= crypto
LIBREBUILD=y
@@ -69,7 +69,6 @@ SRCS+= malloc-wrapper.c
SRCS+= mem_clr.c
SRCS+= mem_dbg.c
SRCS+= o_fips.c
-SRCS+= o_init.c
SRCS+= o_str.c
# aes/
diff --git a/lib/libcrypto/crypto_init.c b/lib/libcrypto/crypto_init.c
index 56f4460e65f..ddd3ec19bc3 100644
--- a/lib/libcrypto/crypto_init.c
+++ b/lib/libcrypto/crypto_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto_init.c,v 1.18 2024/01/25 12:22:31 tb Exp $ */
+/* $OpenBSD: crypto_init.c,v 1.19 2024/03/19 19:27:33 tb Exp $ */
/*
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
*
@@ -37,6 +37,11 @@ static pthread_once_t crypto_init_once = PTHREAD_ONCE_INIT;
static pthread_t crypto_init_thread;
static int crypto_init_cleaned_up;
+void
+OPENSSL_init(void)
+{
+}
+
static void
OPENSSL_init_crypto_internal(void)
{
diff --git a/lib/libcrypto/o_init.c b/lib/libcrypto/o_init.c
deleted file mode 100644
index 2f819eac958..00000000000
--- a/lib/libcrypto/o_init.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* $OpenBSD: o_init.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */
-/* Ted Unangst places this file in the public domain. */
-
-#include <openssl/crypto.h>
-
-void
-OPENSSL_init(void)
-{
-
-}