diff options
author | reyk <> | 2015-01-22 09:06:39 +0000 |
---|---|---|
committer | reyk <> | 2015-01-22 09:06:39 +0000 |
commit | ca23f8d50feee83817e664343b752ce0b985dfb5 (patch) | |
tree | 36f1b0fc5da8868b5097698833f099e006a10cb8 /src/lib/libcrypto/crypto | |
parent | 65761bc9c2faf702c095e77e75e6c713cb579cd8 (diff) | |
download | openbsd-ca23f8d50feee83817e664343b752ce0b985dfb5.tar.gz openbsd-ca23f8d50feee83817e664343b752ce0b985dfb5.tar.bz2 openbsd-ca23f8d50feee83817e664343b752ce0b985dfb5.zip |
Add X509_STORE_load_mem() to load certificates from a memory buffer
instead of disk. OpenSSL didn't provide a built-in API from loading
certificates in a chroot'ed process that doesn't have direct access to
the files. X509_STORE_load_mem() provides a new backend that will be
used by libssl and libtls to implement such privsep-friendly
functionality.
Adopted for LibreSSL based on older code from relayd (by pyr@ and myself)
With feedback and OK bluhm@
Diffstat (limited to 'src/lib/libcrypto/crypto')
-rw-r--r-- | src/lib/libcrypto/crypto/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/shlib_version | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile index f1e54659e6..84b8a6e953 100644 --- a/src/lib/libcrypto/crypto/Makefile +++ b/src/lib/libcrypto/crypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.51 2014/12/03 22:14:38 bcook Exp $ | 1 | # $OpenBSD: Makefile,v 1.52 2015/01/22 09:06:39 reyk Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | 4 | ||
@@ -256,7 +256,7 @@ SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c | |||
256 | SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c | 256 | SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c |
257 | SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c | 257 | SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c |
258 | SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c | 258 | SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c |
259 | SRCS+= x509_trs.c by_file.c by_dir.c x509_vpm.c | 259 | SRCS+= x509_trs.c by_file.c by_dir.c by_mem.c x509_vpm.c |
260 | 260 | ||
261 | # x509v3/ | 261 | # x509v3/ |
262 | SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c | 262 | SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c |
diff --git a/src/lib/libcrypto/crypto/shlib_version b/src/lib/libcrypto/crypto/shlib_version index ac20b1fad5..06b524dace 100644 --- a/src/lib/libcrypto/crypto/shlib_version +++ b/src/lib/libcrypto/crypto/shlib_version | |||
@@ -1,2 +1,2 @@ | |||
1 | major=30 | 1 | major=30 |
2 | minor=3 | 2 | minor=4 |