diff options
author | tb <> | 2024-03-02 09:36:40 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:36:40 +0000 |
commit | 90028f789c9544abf19620f07eea235fb9839e17 (patch) | |
tree | 4ff4fe72be24112582e04ad6fecfba8b02199ef8 /src/lib/libcrypto/evp/evp.h | |
parent | b6c0d9d6fa776c06e92022915759048de477768a (diff) | |
download | openbsd-90028f789c9544abf19620f07eea235fb9839e17.tar.gz openbsd-90028f789c9544abf19620f07eea235fb9839e17.tar.bz2 openbsd-90028f789c9544abf19620f07eea235fb9839e17.zip |
Remove EVP_add_{cipher,digest}() from public API
Ciphers and digests are now handled in a static lookup table and no
longer by the associative array that used to underlie the OBJ_NAME API.
Adding ciphers is no longer possible. What uses this API does so for
historic reasons coming from a time where SHA-2 and some AES variants
needed to be enabled explicitly. Ports doing this (PHP and DANE code)
were fixed.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 4acd9facbc..01d4907233 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp.h,v 1.121 2024/02/18 15:47:48 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.122 2024/03/02 09:36:40 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 | * |
@@ -813,9 +813,6 @@ void OpenSSL_add_all_digests(void); | |||
813 | #define SSLeay_add_all_ciphers() OpenSSL_add_all_ciphers() | 813 | #define SSLeay_add_all_ciphers() OpenSSL_add_all_ciphers() |
814 | #define SSLeay_add_all_digests() OpenSSL_add_all_digests() | 814 | #define SSLeay_add_all_digests() OpenSSL_add_all_digests() |
815 | 815 | ||
816 | int EVP_add_cipher(const EVP_CIPHER *cipher); | ||
817 | int EVP_add_digest(const EVP_MD *digest); | ||
818 | |||
819 | const EVP_CIPHER *EVP_get_cipherbyname(const char *name); | 816 | const EVP_CIPHER *EVP_get_cipherbyname(const char *name); |
820 | const EVP_MD *EVP_get_digestbyname(const char *name); | 817 | const EVP_MD *EVP_get_digestbyname(const char *name); |
821 | void EVP_cleanup(void); | 818 | void EVP_cleanup(void); |