summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-07-24 15:05:17 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-07-24 15:05:17 +0000
commit8205110473dd0b228438806a10cc5e2c2ce3fba3 (patch)
tree3a43d82c21ed6c594d3c3de5c1d7a862d3a13e41 /lib/libssl/ssl_lib.c
parent579229c3d1916355c70f2e7c7c58302663d8d714 (diff)
Move cipher_id bsearch functions back to the bottom of the file.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 02b49670768..e346e3cf7f1 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.299 2022/07/20 14:13:13 tb Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.300 2022/07/24 15:05:16 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -3298,21 +3298,6 @@ SSL_set_security_level(SSL *ssl, int level)
ssl->cert->security_level = level;
}
-static int
-ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)
-{
- SSL_CIPHER const *a = a_;
- SSL_CIPHER const *b = b_;
- return ssl_cipher_id_cmp(a, b);
-}
-
-SSL_CIPHER *
-OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num)
-{
- return (SSL_CIPHER *)OBJ_bsearch_(key, base, num, sizeof(SSL_CIPHER),
- ssl_cipher_id_cmp_BSEARCH_CMP_FN);
-}
-
int
SSL_is_quic(const SSL *ssl)
{
@@ -3344,3 +3329,18 @@ SSL_get_peer_quic_transport_params(const SSL *ssl, const uint8_t **out_params,
*out_params = ssl->s3->peer_quic_transport_params;
*out_params_len = ssl->s3->peer_quic_transport_params_len;
}
+
+static int
+ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)
+{
+ SSL_CIPHER const *a = a_;
+ SSL_CIPHER const *b = b_;
+ return ssl_cipher_id_cmp(a, b);
+}
+
+SSL_CIPHER *
+OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num)
+{
+ return (SSL_CIPHER *)OBJ_bsearch_(key, base, num, sizeof(SSL_CIPHER),
+ ssl_cipher_id_cmp_BSEARCH_CMP_FN);
+}