summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssl.h
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2014-09-28 14:45:48 +0000
committerreyk <reyk@openbsd.org>2014-09-28 14:45:48 +0000
commit5e89dc0d88adf9d388d6467dc3ee2fdc7be3257c (patch)
treec024207acaa019b2aca9e5515a0870794abcbfcf /lib/libssl/src/ssl/ssl.h
parentRemove a limitation that ignored IPv6 link-local addresses on carp(4). (diff)
downloadwireguard-openbsd-5e89dc0d88adf9d388d6467dc3ee2fdc7be3257c.tar.xz
wireguard-openbsd-5e89dc0d88adf9d388d6467dc3ee2fdc7be3257c.zip
Add a new API function SSL_CTX_use_certificate_chain() that allows to
read the PEM-encoded certificate chain from memory instead of a file. This idea is derived from an older implementation in relayd that was needed to use the function with a privep'ed process in a chroot. Now it is time to get it into LibreSSL to make the API more privsep- friendly and to make it available for other programs and the ressl library. ok jsing@ miod@
Diffstat (limited to 'lib/libssl/src/ssl/ssl.h')
-rw-r--r--lib/libssl/src/ssl/ssl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/ssl/ssl.h b/lib/libssl/src/ssl/ssl.h
index 3b948245f20..c7dd4259ccb 100644
--- a/lib/libssl/src/ssl/ssl.h
+++ b/lib/libssl/src/ssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.65 2014/09/27 11:01:06 jsing Exp $ */
+/* $OpenBSD: ssl.h,v 1.66 2014/09/28 14:45:48 reyk Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1530,6 +1530,7 @@ 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);
int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file); /* PEM type */
+int SSL_CTX_use_certificate_chain(SSL_CTX *ctx, void *buf, int len);
STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);
int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,
const char *file);