diff options
| author | tb <> | 2024-03-02 11:32:31 +0000 |
|---|---|---|
| committer | tb <> | 2024-03-02 11:32:31 +0000 |
| commit | 2ebc8c867d962934d7ca505b4686cb67359ed825 (patch) | |
| tree | 1076a4d3e13f34da4ea695e607c54cbdb81f2acf | |
| parent | 9b9fc000d4d482c0c3086b0e54b4c1a88c76ee34 (diff) | |
| download | openbsd-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
| -rw-r--r-- | src/lib/libcrypto/Symbols.list | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/crypto.h | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/crypto.h | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/mem_dbg.c | 27 |
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 | |||
| 687 | CRYPTO_poly1305_finish | 687 | CRYPTO_poly1305_finish |
| 688 | CRYPTO_poly1305_init | 688 | CRYPTO_poly1305_init |
| 689 | CRYPTO_poly1305_update | 689 | CRYPTO_poly1305_update |
| 690 | CRYPTO_pop_info | ||
| 691 | CRYPTO_push_info_ | ||
| 692 | CRYPTO_remove_all_info | ||
| 693 | CRYPTO_set_add_lock_callback | 690 | CRYPTO_set_add_lock_callback |
| 694 | CRYPTO_set_dynlock_create_callback | 691 | CRYPTO_set_dynlock_create_callback |
| 695 | CRYPTO_set_dynlock_destroy_callback | 692 | CRYPTO_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); | |||
| 373 | void OPENSSL_cleanse(void *ptr, size_t len); | 373 | void 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); | ||
| 378 | int CRYPTO_push_info_(const char *info, const char *file, int line); | ||
| 379 | int CRYPTO_pop_info(void); | ||
| 380 | int 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); | |||
| 44 | LCRYPTO_USED(CRYPTO_THREADID_hash); | 44 | LCRYPTO_USED(CRYPTO_THREADID_hash); |
| 45 | LCRYPTO_USED(CRYPTO_set_mem_functions); | 45 | LCRYPTO_USED(CRYPTO_set_mem_functions); |
| 46 | LCRYPTO_USED(CRYPTO_set_mem_ex_functions); | 46 | LCRYPTO_USED(CRYPTO_set_mem_ex_functions); |
| 47 | LCRYPTO_USED(CRYPTO_push_info_); | ||
| 48 | LCRYPTO_USED(CRYPTO_pop_info); | ||
| 49 | LCRYPTO_USED(CRYPTO_remove_all_info); | ||
| 50 | LCRYPTO_USED(OpenSSLDie); | 47 | LCRYPTO_USED(OpenSSLDie); |
| 51 | LCRYPTO_USED(OPENSSL_cpu_caps); | 48 | LCRYPTO_USED(OPENSSL_cpu_caps); |
| 52 | LCRYPTO_USED(OPENSSL_init_crypto); | 49 | LCRYPTO_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 | ||
| 118 | int | 114 | int |
| 119 | CRYPTO_mem_ctrl(int mode) | 115 | CRYPTO_mem_ctrl(int mode) |
| 120 | { | 116 | { |
| 121 | return (CRYPTO_MEM_CHECK_OFF); | 117 | return (CRYPTO_MEM_CHECK_OFF); |
| 122 | } | 118 | } |
| 123 | |||
| 124 | int | ||
| 125 | CRYPTO_push_info_(const char *info, const char *file, int line) | ||
| 126 | { | ||
| 127 | return (0); | ||
| 128 | } | ||
| 129 | LCRYPTO_ALIAS(CRYPTO_push_info_); | ||
| 130 | |||
| 131 | int | ||
| 132 | CRYPTO_pop_info(void) | ||
| 133 | { | ||
| 134 | return (0); | ||
| 135 | } | ||
| 136 | LCRYPTO_ALIAS(CRYPTO_pop_info); | ||
| 137 | |||
| 138 | int | ||
| 139 | CRYPTO_remove_all_info(void) | ||
| 140 | { | ||
| 141 | return (0); | ||
| 142 | } | ||
| 143 | LCRYPTO_ALIAS(CRYPTO_remove_all_info); | ||
