diff options
author | tb <> | 2024-03-02 11:45:51 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 11:45:51 +0000 |
commit | 17dd058fa6a2fcf296d19d4fca23180abec5ba40 (patch) | |
tree | e9755883499836e92c295348e26df61a6c93fdfd | |
parent | 253b63fb51401d34d0ccce903a2a1c39698e8461 (diff) | |
download | openbsd-17dd058fa6a2fcf296d19d4fca23180abec5ba40.tar.gz openbsd-17dd058fa6a2fcf296d19d4fca23180abec5ba40.tar.bz2 openbsd-17dd058fa6a2fcf296d19d4fca23180abec5ba40.zip |
Remove SSL_CIPHER_get_by_{id,value}()
While this undocumented API would have been much nicer and saner than
SSL_CIPHER_find(), nothing used this except for the exporter test.
Let's get rid of it again. libssl uses ssl3_get_cipher_by_{id,value}()
directly.
ok jsing
-rw-r--r-- | src/lib/libssl/Symbols.list | 2 | ||||
-rw-r--r-- | src/lib/libssl/hidden/openssl/ssl.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/ssl.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 16 |
4 files changed, 3 insertions, 23 deletions
diff --git a/src/lib/libssl/Symbols.list b/src/lib/libssl/Symbols.list index 37715a83eb..63aa8ff0e3 100644 --- a/src/lib/libssl/Symbols.list +++ b/src/lib/libssl/Symbols.list | |||
@@ -23,8 +23,6 @@ SSL_CIPHER_description | |||
23 | SSL_CIPHER_find | 23 | SSL_CIPHER_find |
24 | SSL_CIPHER_get_auth_nid | 24 | SSL_CIPHER_get_auth_nid |
25 | SSL_CIPHER_get_bits | 25 | SSL_CIPHER_get_bits |
26 | SSL_CIPHER_get_by_id | ||
27 | SSL_CIPHER_get_by_value | ||
28 | SSL_CIPHER_get_cipher_nid | 26 | SSL_CIPHER_get_cipher_nid |
29 | SSL_CIPHER_get_digest_nid | 27 | SSL_CIPHER_get_digest_nid |
30 | SSL_CIPHER_get_id | 28 | SSL_CIPHER_get_id |
diff --git a/src/lib/libssl/hidden/openssl/ssl.h b/src/lib/libssl/hidden/openssl/ssl.h index e4ec6d6251..e0fb89883b 100644 --- a/src/lib/libssl/hidden/openssl/ssl.h +++ b/src/lib/libssl/hidden/openssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.4 2023/07/28 09:53:55 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.5 2024/03/02 11:45:51 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -111,8 +111,6 @@ LSSL_USED(SSL_want); | |||
111 | LSSL_USED(SSL_clear); | 111 | LSSL_USED(SSL_clear); |
112 | LSSL_USED(SSL_CTX_flush_sessions); | 112 | LSSL_USED(SSL_CTX_flush_sessions); |
113 | LSSL_USED(SSL_get_current_cipher); | 113 | LSSL_USED(SSL_get_current_cipher); |
114 | LSSL_USED(SSL_CIPHER_get_by_id); | ||
115 | LSSL_USED(SSL_CIPHER_get_by_value); | ||
116 | LSSL_USED(SSL_CIPHER_get_bits); | 114 | LSSL_USED(SSL_CIPHER_get_bits); |
117 | LSSL_USED(SSL_CIPHER_get_version); | 115 | LSSL_USED(SSL_CIPHER_get_version); |
118 | LSSL_USED(SSL_CIPHER_get_name); | 116 | LSSL_USED(SSL_CIPHER_get_name); |
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index e69979cbf6..e3f536aa43 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.234 2024/03/02 11:44:47 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.235 2024/03/02 11:45:51 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 | * |
@@ -1122,8 +1122,6 @@ int SSL_clear(SSL *s); | |||
1122 | void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm); | 1122 | void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm); |
1123 | 1123 | ||
1124 | const SSL_CIPHER *SSL_get_current_cipher(const SSL *s); | 1124 | const SSL_CIPHER *SSL_get_current_cipher(const SSL *s); |
1125 | const SSL_CIPHER *SSL_CIPHER_get_by_id(unsigned int id); | ||
1126 | const SSL_CIPHER *SSL_CIPHER_get_by_value(uint16_t value); | ||
1127 | int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits); | 1125 | int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits); |
1128 | const char * SSL_CIPHER_get_version(const SSL_CIPHER *c); | 1126 | const char * SSL_CIPHER_get_version(const SSL_CIPHER *c); |
1129 | const char * SSL_CIPHER_get_name(const SSL_CIPHER *c); | 1127 | const char * SSL_CIPHER_get_name(const SSL_CIPHER *c); |
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 76a3840520..45d7889b9a 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.139 2024/02/03 15:58:33 beck Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.140 2024/03/02 11:45:51 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 | * |
@@ -1341,20 +1341,6 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method, | |||
1341 | return ret; | 1341 | return ret; |
1342 | } | 1342 | } |
1343 | 1343 | ||
1344 | const SSL_CIPHER * | ||
1345 | SSL_CIPHER_get_by_id(unsigned int id) | ||
1346 | { | ||
1347 | return ssl3_get_cipher_by_id(id); | ||
1348 | } | ||
1349 | LSSL_ALIAS(SSL_CIPHER_get_by_id); | ||
1350 | |||
1351 | const SSL_CIPHER * | ||
1352 | SSL_CIPHER_get_by_value(uint16_t value) | ||
1353 | { | ||
1354 | return ssl3_get_cipher_by_value(value); | ||
1355 | } | ||
1356 | LSSL_ALIAS(SSL_CIPHER_get_by_value); | ||
1357 | |||
1358 | char * | 1344 | char * |
1359 | SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len) | 1345 | SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len) |
1360 | { | 1346 | { |