From a36841cf3688ea6ff948a19fbb007002d7607993 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 21 Jan 2019 10:28:52 +0000 Subject: Add ssl_cipher_is_permitted(), an internal helper function that will be used in a few places shortly, e.g. in ssl_cipher_list_to_bytes(). ok jsing --- lib/libssl/ssl_locl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libssl/ssl_locl.h') diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 30c1afd22d7..7903d848901 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.227 2019/01/21 06:58:44 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.228 2019/01/21 10:28:52 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1052,6 +1052,8 @@ int ssl_version_set_min(const SSL_METHOD *meth, uint16_t ver, uint16_t max_ver, int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, uint16_t *out_ver); uint16_t ssl_max_server_version(SSL *s); +int ssl_cipher_is_permitted(const SSL_CIPHER *cipher, uint16_t min_ver, + uint16_t max_ver); const SSL_METHOD *dtls1_get_client_method(int ver); const SSL_METHOD *dtls1_get_server_method(int ver); -- cgit v1.2.3-59-g8ed1b