summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl_ciph.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-05-10 17:03:58 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-05-10 17:03:58 +0000
commit0bf2a30eedd743dcb0c31313832f2ad866ae6071 (patch)
tree5f9b645b68dfeec6bb864446324f298d6cc980db /lib/libssl/ssl_ciph.c
parentdbff15706ee176efedfd8e3dde1ad9dcce272b1f (diff)
Provide SSL_CIPHER_find(3)
ok jsing
Diffstat (limited to 'lib/libssl/ssl_ciph.c')
-rw-r--r--lib/libssl/ssl_ciph.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c
index ee627a8c1e9..2db531abb12 100644
--- a/lib/libssl/ssl_ciph.c
+++ b/lib/libssl/ssl_ciph.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_ciph.c,v 1.121 2021/03/24 18:44:00 jsing Exp $ */
+/* $OpenBSD: ssl_ciph.c,v 1.122 2021/05/10 17:03:57 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1599,6 +1599,12 @@ SSL_CIPHER_get_value(const SSL_CIPHER *c)
return ssl3_cipher_get_value(c);
}
+const SSL_CIPHER *
+SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr)
+{
+ return ssl->method->get_cipher_by_char(ptr);
+}
+
int
SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c)
{