summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 9e65095c6c..5cd0e82f89 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.315 2023/11/19 15:51:49 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.316 2023/11/25 12:05:08 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 *
@@ -1516,18 +1516,6 @@ SSL_CTX_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void))
1516} 1516}
1517LSSL_ALIAS(SSL_CTX_callback_ctrl); 1517LSSL_ALIAS(SSL_CTX_callback_ctrl);
1518 1518
1519int
1520ssl_cipher_id_cmp(const SSL_CIPHER *a, const SSL_CIPHER *b)
1521{
1522 long l;
1523
1524 l = a->id - b->id;
1525 if (l == 0L)
1526 return (0);
1527 else
1528 return ((l > 0) ? 1:-1);
1529}
1530
1531STACK_OF(SSL_CIPHER) * 1519STACK_OF(SSL_CIPHER) *
1532SSL_get_ciphers(const SSL *s) 1520SSL_get_ciphers(const SSL *s)
1533{ 1521{
@@ -3652,6 +3640,18 @@ SSL_set_quic_use_legacy_codepoint(SSL *ssl, int use_legacy)
3652LSSL_ALIAS(SSL_set_quic_use_legacy_codepoint); 3640LSSL_ALIAS(SSL_set_quic_use_legacy_codepoint);
3653 3641
3654static int 3642static int
3643ssl_cipher_id_cmp(const SSL_CIPHER *a, const SSL_CIPHER *b)
3644{
3645 long l;
3646
3647 l = a->id - b->id;
3648 if (l == 0L)
3649 return (0);
3650 else
3651 return ((l > 0) ? 1:-1);
3652}
3653
3654static int
3655ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_) 3655ssl_cipher_id_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)
3656{ 3656{
3657 SSL_CIPHER const *a = a_; 3657 SSL_CIPHER const *a = a_;