diff options
author | tb <> | 2021-05-10 17:03:57 +0000 |
---|---|---|
committer | tb <> | 2021-05-10 17:03:57 +0000 |
commit | c0bbd8901c307ebd2ab88321036be666f5c05fe5 (patch) | |
tree | a1a14031eb843e277c9dd597c6e4bb65269ab1b7 /src/lib/libssl/ssl_ciph.c | |
parent | f5551e4fe9237754b0cc287193ab377b4cd6b26f (diff) | |
download | openbsd-c0bbd8901c307ebd2ab88321036be666f5c05fe5.tar.gz openbsd-c0bbd8901c307ebd2ab88321036be666f5c05fe5.tar.bz2 openbsd-c0bbd8901c307ebd2ab88321036be666f5c05fe5.zip |
Provide SSL_CIPHER_find(3)
ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index ee627a8c1e..2db531abb1 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.121 2021/03/24 18:44:00 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.122 2021/05/10 17:03:57 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 | * |
@@ -1599,6 +1599,12 @@ SSL_CIPHER_get_value(const SSL_CIPHER *c) | |||
1599 | return ssl3_cipher_get_value(c); | 1599 | return ssl3_cipher_get_value(c); |
1600 | } | 1600 | } |
1601 | 1601 | ||
1602 | const SSL_CIPHER * | ||
1603 | SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr) | ||
1604 | { | ||
1605 | return ssl->method->get_cipher_by_char(ptr); | ||
1606 | } | ||
1607 | |||
1602 | int | 1608 | int |
1603 | SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c) | 1609 | SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c) |
1604 | { | 1610 | { |