diff options
| author | tedu <> | 2018-11-29 14:24:23 +0000 |
|---|---|---|
| committer | tedu <> | 2018-11-29 14:24:23 +0000 |
| commit | 8e376166426749fe5f95ab4ad9e6adfc863634d1 (patch) | |
| tree | ec4788d4ef28ebf5ffa8baf3093f4d98017df946 /src/lib/libtls/man | |
| parent | ee1a55d3c708acf2230e003941964e4f2e0a2967 (diff) | |
| download | openbsd-8e376166426749fe5f95ab4ad9e6adfc863634d1.tar.gz openbsd-8e376166426749fe5f95ab4ad9e6adfc863634d1.tar.bz2 openbsd-8e376166426749fe5f95ab4ad9e6adfc863634d1.zip | |
expose the default cert file as a function, not a define. it's really
an internal detail of the library, so the string should live inside it,
not in the application code.
ok jsing
Diffstat (limited to 'src/lib/libtls/man')
| -rw-r--r-- | src/lib/libtls/man/tls_load_file.3 | 12 |
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 |
| 198 | loads a certificate or key from disk into memory to be used with | 201 | loads 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 |
| 211 | call, ensuring that the memory contents is discarded. | 214 | call, ensuring that the memory contents is discarded. |
| 212 | .Pp | 215 | .Pp |
| 216 | .Fn tls_default_ca_cert_file | ||
| 217 | returns 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 |
| 214 | sets the filename used to load a file | 220 | sets the filename used to load a file |
| 215 | containing the root certificates. | 221 | containing the root certificates. |
