summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorreyk <>2015-01-22 09:16:24 +0000
committerreyk <>2015-01-22 09:16:24 +0000
commit138944aeef27fb00df60db6f46ef653726b4ca5a (patch)
tree0cd70582ac032f525e31a6921611469898b556c3 /src/lib/libtls/tls_internal.h
parentd0ef2b563d4291f81a8f9ed7cd02bdfbaa8cc5f4 (diff)
downloadopenbsd-138944aeef27fb00df60db6f46ef653726b4ca5a.tar.gz
openbsd-138944aeef27fb00df60db6f46ef653726b4ca5a.tar.bz2
openbsd-138944aeef27fb00df60db6f46ef653726b4ca5a.zip
Allow to to load the CA chain directly from memory instead of
specifying a file. This enables CA verification in privsep'ed processes that are running chroot'ed without direct access to the certificate files. With feedback, tests, and OK from bluhm@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index 1a2bd388b7..9a1a180e0b 100644
--- a/src/lib/libtls/tls_internal.h
+++ b/src/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_internal.h,v 1.6 2015/01/13 17:35:35 bluhm Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.7 2015/01/22 09:16:24 reyk Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -28,6 +28,8 @@
28struct tls_config { 28struct tls_config {
29 const char *ca_file; 29 const char *ca_file;
30 const char *ca_path; 30 const char *ca_path;
31 char *ca_mem;
32 size_t ca_len;
31 const char *cert_file; 33 const char *cert_file;
32 char *cert_mem; 34 char *cert_mem;
33 size_t cert_len; 35 size_t cert_len;