summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authortb <>2022-06-30 11:17:50 +0000
committertb <>2022-06-30 11:17:50 +0000
commit5f574489be242a7d86373038f340aaf574a0b228 (patch)
treefb1aefe52767d19838deec117e17af2cbf6cd936 /src/lib/libssl/ssl_locl.h
parent727d040aad78fde5a0f1d575255736d37d0c721c (diff)
downloadopenbsd-5f574489be242a7d86373038f340aaf574a0b228.tar.gz
openbsd-5f574489be242a7d86373038f340aaf574a0b228.tar.bz2
openbsd-5f574489be242a7d86373038f340aaf574a0b228.zip
Add checks to ensure we do not initiate or negotiate handshakes with
versions below the minimum required by the security level. input & ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index b46e37f5eb..d466b59642 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.407 2022/06/29 21:18:04 tb Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.408 2022/06/30 11:17:49 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 *
@@ -1301,6 +1301,7 @@ int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid,
1301int ssl_security(const SSL *ssl, int op, int bits, int nid, void *other); 1301int ssl_security(const SSL *ssl, int op, int bits, int nid, void *other);
1302int ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh); 1302int ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh);
1303int ssl_security_dh(const SSL *ssl, DH *dh); 1303int ssl_security_dh(const SSL *ssl, DH *dh);
1304int ssl_security_version(const SSL *ssl, int version);
1304int ssl_security_cert(const SSL_CTX *ctx, const SSL *ssl, X509 *x509, 1305int ssl_security_cert(const SSL_CTX *ctx, const SSL *ssl, X509 *x509,
1305 int is_peer, int *out_error); 1306 int is_peer, int *out_error);
1306int ssl_security_cert_chain(const SSL *ssl, STACK_OF(X509) *sk, 1307int ssl_security_cert_chain(const SSL *ssl, STACK_OF(X509) *sk,