diff options
author | reyk <> | 2015-01-22 09:12:57 +0000 |
---|---|---|
committer | reyk <> | 2015-01-22 09:12:57 +0000 |
commit | d0ef2b563d4291f81a8f9ed7cd02bdfbaa8cc5f4 (patch) | |
tree | 42f292263609c4df75e6a4d780bcc3cc53130658 /src/lib/libssl/ssl.h | |
parent | ca23f8d50feee83817e664343b752ce0b985dfb5 (diff) | |
download | openbsd-d0ef2b563d4291f81a8f9ed7cd02bdfbaa8cc5f4.tar.gz openbsd-d0ef2b563d4291f81a8f9ed7cd02bdfbaa8cc5f4.tar.bz2 openbsd-d0ef2b563d4291f81a8f9ed7cd02bdfbaa8cc5f4.zip |
Support CA verification in chroot'ed processes without direct file
access to the certificates. SSL_CTX_load_verify_mem() is a frontend
to the new X509_STORE_load_mem() function that allows to load the CA
chain from a memory buffer that is holding the PEM-encoded files.
This function allows to handle the verification in privsep'ed code.
Adopted for LibreSSL based on older code from relayd (by pyr@ and myself)
With feedback and OK bluhm@
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 8302bba39c..56344085ad 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.76 2014/12/14 15:30:50 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.77 2015/01/22 09:12:57 reyk 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 | * |
@@ -1755,6 +1755,7 @@ int SSL_version(const SSL *ssl); | |||
1755 | int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx); | 1755 | int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx); |
1756 | int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, | 1756 | int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, |
1757 | const char *CApath); | 1757 | const char *CApath); |
1758 | int SSL_CTX_load_verify_mem(SSL_CTX *ctx, void *buf, int len); | ||
1758 | #define SSL_get0_session SSL_get_session /* just peek at pointer */ | 1759 | #define SSL_get0_session SSL_get_session /* just peek at pointer */ |
1759 | SSL_SESSION *SSL_get_session(const SSL *ssl); | 1760 | SSL_SESSION *SSL_get_session(const SSL *ssl); |
1760 | SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */ | 1761 | SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */ |