summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-03-02 11:32:31 +0000
committertb <>2024-03-02 11:32:31 +0000
commit2ebc8c867d962934d7ca505b4686cb67359ed825 (patch)
tree1076a4d3e13f34da4ea695e607c54cbdb81f2acf /src/lib
parent9b9fc000d4d482c0c3086b0e54b4c1a88c76ee34 (diff)
downloadopenbsd-2ebc8c867d962934d7ca505b4686cb67359ed825.tar.gz
openbsd-2ebc8c867d962934d7ca505b4686cb67359ed825.tar.bz2
openbsd-2ebc8c867d962934d7ca505b4686cb67359ed825.zip
Remove CRYPTO_*info
Long time neutered, only used (pointlessly without error checking) in the error code until very recently. ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list3
-rw-r--r--src/lib/libcrypto/Symbols.namespace3
-rw-r--r--src/lib/libcrypto/crypto.h8
-rw-r--r--src/lib/libcrypto/hidden/openssl/crypto.h5
-rw-r--r--src/lib/libcrypto/mem_dbg.c27
5 files changed, 3 insertions, 43 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index 26170084e5..f9ef997e30 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -687,9 +687,6 @@ CRYPTO_ofb128_encrypt
687CRYPTO_poly1305_finish 687CRYPTO_poly1305_finish
688CRYPTO_poly1305_init 688CRYPTO_poly1305_init
689CRYPTO_poly1305_update 689CRYPTO_poly1305_update
690CRYPTO_pop_info
691CRYPTO_push_info_
692CRYPTO_remove_all_info
693CRYPTO_set_add_lock_callback 690CRYPTO_set_add_lock_callback
694CRYPTO_set_dynlock_create_callback 691CRYPTO_set_dynlock_create_callback
695CRYPTO_set_dynlock_destroy_callback 692CRYPTO_set_dynlock_destroy_callback
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace
index ff6e6492e2..489c618ec5 100644
--- a/src/lib/libcrypto/Symbols.namespace
+++ b/src/lib/libcrypto/Symbols.namespace
@@ -1867,9 +1867,6 @@ _libre_CRYPTO_set_mem_debug_functions
1867_libre_CRYPTO_realloc_clean 1867_libre_CRYPTO_realloc_clean
1868_libre_CRYPTO_remalloc 1868_libre_CRYPTO_remalloc
1869_libre_CRYPTO_set_mem_debug_options 1869_libre_CRYPTO_set_mem_debug_options
1870_libre_CRYPTO_push_info_
1871_libre_CRYPTO_pop_info
1872_libre_CRYPTO_remove_all_info
1873_libre_OpenSSLDie 1870_libre_OpenSSLDie
1874_libre_OPENSSL_cpu_caps 1871_libre_OPENSSL_cpu_caps
1875_libre_OPENSSL_init_crypto 1872_libre_OPENSSL_init_crypto
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index 19732ced32..67c5820500 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.66 2024/03/02 11:28:46 tb Exp $ */ 1/* $OpenBSD: crypto.h,v 1.67 2024/03/02 11:32:31 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -373,12 +373,6 @@ void CRYPTO_free(void *ptr);
373void OPENSSL_cleanse(void *ptr, size_t len); 373void OPENSSL_cleanse(void *ptr, size_t len);
374#endif 374#endif
375 375
376#define CRYPTO_push_info(info) \
377 CRYPTO_push_info_(info, NULL, 0);
378int CRYPTO_push_info_(const char *info, const char *file, int line);
379int CRYPTO_pop_info(void);
380int CRYPTO_remove_all_info(void);
381
382/* 376/*
383 * Because this is a public header, use a portable method of indicating the 377 * Because this is a public header, use a portable method of indicating the
384 * function does not return, rather than __dead. 378 * function does not return, rather than __dead.
diff --git a/src/lib/libcrypto/hidden/openssl/crypto.h b/src/lib/libcrypto/hidden/openssl/crypto.h
index efbcca975f..3e8f3dc7a8 100644
--- a/src/lib/libcrypto/hidden/openssl/crypto.h
+++ b/src/lib/libcrypto/hidden/openssl/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.4 2024/03/02 11:28:46 tb Exp $ */ 1/* $OpenBSD: crypto.h,v 1.5 2024/03/02 11:32:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -44,9 +44,6 @@ LCRYPTO_USED(CRYPTO_THREADID_cpy);
44LCRYPTO_USED(CRYPTO_THREADID_hash); 44LCRYPTO_USED(CRYPTO_THREADID_hash);
45LCRYPTO_USED(CRYPTO_set_mem_functions); 45LCRYPTO_USED(CRYPTO_set_mem_functions);
46LCRYPTO_USED(CRYPTO_set_mem_ex_functions); 46LCRYPTO_USED(CRYPTO_set_mem_ex_functions);
47LCRYPTO_USED(CRYPTO_push_info_);
48LCRYPTO_USED(CRYPTO_pop_info);
49LCRYPTO_USED(CRYPTO_remove_all_info);
50LCRYPTO_USED(OpenSSLDie); 47LCRYPTO_USED(OpenSSLDie);
51LCRYPTO_USED(OPENSSL_cpu_caps); 48LCRYPTO_USED(OPENSSL_cpu_caps);
52LCRYPTO_USED(OPENSSL_init_crypto); 49LCRYPTO_USED(OPENSSL_init_crypto);
diff --git a/src/lib/libcrypto/mem_dbg.c b/src/lib/libcrypto/mem_dbg.c
index bfdd9c171b..031db43e3b 100644
--- a/src/lib/libcrypto/mem_dbg.c
+++ b/src/lib/libcrypto/mem_dbg.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: mem_dbg.c,v 1.26 2024/03/02 11:28:46 tb Exp $ */ 1/* $OpenBSD: mem_dbg.c,v 1.27 2024/03/02 11:32: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 *
@@ -109,35 +109,10 @@
109 * 109 *
110 */ 110 */
111 111
112#include <stdio.h>
113#include <stdlib.h>
114#include <openssl/crypto.h> 112#include <openssl/crypto.h>
115#include <openssl/bio.h>
116#include <openssl/lhash.h>
117 113
118int 114int
119CRYPTO_mem_ctrl(int mode) 115CRYPTO_mem_ctrl(int mode)
120{ 116{
121 return (CRYPTO_MEM_CHECK_OFF); 117 return (CRYPTO_MEM_CHECK_OFF);
122} 118}
123
124int
125CRYPTO_push_info_(const char *info, const char *file, int line)
126{
127 return (0);
128}
129LCRYPTO_ALIAS(CRYPTO_push_info_);
130
131int
132CRYPTO_pop_info(void)
133{
134 return (0);
135}
136LCRYPTO_ALIAS(CRYPTO_pop_info);
137
138int
139CRYPTO_remove_all_info(void)
140{
141 return (0);
142}
143LCRYPTO_ALIAS(CRYPTO_remove_all_info);