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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 31d411c429..66e14b9816 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.192 2018/11/10 01:19:09 beck Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.193 2018/11/11 06:58:14 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 *
@@ -453,6 +453,12 @@ SSL_set_trust(SSL *s, int trust)
453 return (X509_VERIFY_PARAM_set_trust(s->param, trust)); 453 return (X509_VERIFY_PARAM_set_trust(s->param, trust));
454} 454}
455 455
456int
457SSL_set1_host(SSL *s, const char *hostname)
458{
459 return X509_VERIFY_PARAM_set1_host(s->param, hostname, 0);
460}
461
456X509_VERIFY_PARAM * 462X509_VERIFY_PARAM *
457SSL_CTX_get0_param(SSL_CTX *ctx) 463SSL_CTX_get0_param(SSL_CTX *ctx)
458{ 464{