summaryrefslogtreecommitdiff
path: root/src/lib/libtls/man
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/man')
-rw-r--r--src/lib/libtls/man/tls_load_file.312
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/libtls/man/tls_load_file.3 b/src/lib/libtls/man/tls_load_file.3
index 9f738460d6..d836a04723 100644
--- a/src/lib/libtls/man/tls_load_file.3
+++ b/src/lib/libtls/man/tls_load_file.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tls_load_file.3,v 1.10 2018/08/21 00:35:55 schwarze Exp $ 1.\" $OpenBSD: tls_load_file.3,v 1.11 2018/11/29 14:24:23 tedu Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> 4.\" Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -17,7 +17,7 @@
17.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19.\" 19.\"
20.Dd $Mdocdate: August 21 2018 $ 20.Dd $Mdocdate: November 29 2018 $
21.Dt TLS_LOAD_FILE 3 21.Dt TLS_LOAD_FILE 3
22.Os 22.Os
23.Sh NAME 23.Sh NAME
@@ -45,7 +45,8 @@
45.Nm tls_config_clear_keys , 45.Nm tls_config_clear_keys ,
46.Nm tls_config_set_verify_depth , 46.Nm tls_config_set_verify_depth ,
47.Nm tls_config_verify_client , 47.Nm tls_config_verify_client ,
48.Nm tls_config_verify_client_optional 48.Nm tls_config_verify_client_optional ,
49.Nm tls_default_ca_cert_file
49.Nd TLS certificate and key configuration 50.Nd TLS certificate and key configuration
50.Sh SYNOPSIS 51.Sh SYNOPSIS
51.In tls.h 52.In tls.h
@@ -193,6 +194,8 @@
193.Fn tls_config_verify_client "struct tls_config *config" 194.Fn tls_config_verify_client "struct tls_config *config"
194.Ft void 195.Ft void
195.Fn tls_config_verify_client_optional "struct tls_config *config" 196.Fn tls_config_verify_client_optional "struct tls_config *config"
197.Ft const char *
198.Fn tls_default_ca_cert_file "void"
196.Sh DESCRIPTION 199.Sh DESCRIPTION
197.Fn tls_load_file 200.Fn tls_load_file
198loads a certificate or key from disk into memory to be used with 201loads a certificate or key from disk into memory to be used with
@@ -210,6 +213,9 @@ unloads the memory that was returned from an earlier
210.Fn tls_load_file 213.Fn tls_load_file
211call, ensuring that the memory contents is discarded. 214call, ensuring that the memory contents is discarded.
212.Pp 215.Pp
216.Fn tls_default_ca_cert_file
217returns the path of the file that contains the default root certificates.
218.Pp
213.Fn tls_config_set_ca_file 219.Fn tls_config_set_ca_file
214sets the filename used to load a file 220sets the filename used to load a file
215containing the root certificates. 221containing the root certificates.