diff options
author | 2021-03-19 19:51:07 +0000 | |
---|---|---|
committer | 2021-03-19 19:51:07 +0000 | |
commit | 2be1b120389c5631ceb1d512fa4795da2b5015c0 (patch) | |
tree | 7862979e03b79b5b2916f6f443c31cfdfe925591 /lib/libssl/ssl.h | |
parent | Edit wireguard for concision. Remove some background covered by wg(4). (diff) | |
download | wireguard-openbsd-2be1b120389c5631ceb1d512fa4795da2b5015c0.tar.xz wireguard-openbsd-2be1b120389c5631ceb1d512fa4795da2b5015c0.zip |
Prepare to provide SSL_use_certificate_chain_file()
This is the same as SSL_CTX_use_certificate_chain_file() but for an
SSL object instead of an SSL_CTX object. remi found this in a recent
librelp update, so we need to provide it. The function will be exposed
in an upcoming library bump.
ok inoguchi on an earlier version, input/ok jsing
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r-- | lib/libssl/ssl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index e7ff6cec2a0..36c9ef02bd0 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.182 2021/02/20 08:33:17 jsing Exp $ */ +/* $OpenBSD: ssl.h,v 1.183 2021/03/19 19:51:07 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1357,6 +1357,9 @@ int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len); int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type); int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type); int SSL_use_certificate_file(SSL *ssl, const char *file, int type); +#if defined(LIBRESSL_INTERNAL) +int SSL_use_certificate_chain_file(SSL *ssl, const char *file); +#endif int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type); int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type); int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type); |