From: jsing Date: Thu, 6 Jul 2017 17:27:19 +0000 (+0000) Subject: Document tls_config_set_crl_file() and tls_config_set_crl_mem(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0d038da5a29d83a3e2e4fffe8b795c106caa2961;p=openbsd Document tls_config_set_crl_file() and tls_config_set_crl_mem(). Based on a diff from Jack Burton , thanks! --- diff --git a/lib/libtls/man/tls_load_file.3 b/lib/libtls/man/tls_load_file.3 index ea3a3feed5a..fcaa5eef029 100644 --- a/lib/libtls/man/tls_load_file.3 +++ b/lib/libtls/man/tls_load_file.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tls_load_file.3,v 1.6 2017/05/06 21:06:19 jsing Exp $ +.\" $OpenBSD: tls_load_file.3,v 1.7 2017/07/06 17:27:19 jsing Exp $ .\" .\" Copyright (c) 2014 Ted Unangst .\" Copyright (c) 2015 Reyk Floeter @@ -17,7 +17,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 6 2017 $ +.Dd $Mdocdate: July 6 2017 $ .Dt TLS_LOAD_FILE 3 .Os .Sh NAME @@ -28,6 +28,8 @@ .Nm tls_config_set_ca_mem , .Nm tls_config_set_cert_file , .Nm tls_config_set_cert_mem , +.Nm tls_config_set_crl_file , +.Nm tls_config_set_crl_mem , .Nm tls_config_set_key_file , .Nm tls_config_set_key_mem , .Nm tls_config_set_ocsp_staple_mem , @@ -86,6 +88,17 @@ .Fa "size_t len" .Fc .Ft int +.Fo tls_config_set_crl_file +.Fa "struct tls_config *config" +.Fa "const char *crl_file" +.Fc +.Ft int +.Fo tls_config_set_crl_mem +.Fa "struct tls_config *config" +.Fa "const uint8_t *crl" +.Fa "size_t len" +.Fc +.Ft int .Fo tls_config_set_key_file .Fa "struct tls_config *config" .Fa "const char *key_file" @@ -184,7 +197,8 @@ .Fn tls_load_file loads a certificate or key from disk into memory to be used with .Fn tls_config_set_ca_mem , -.Fn tls_config_set_cert_mem +.Fn tls_config_set_cert_mem , +.Fn tls_config_set_crl_mem or .Fn tls_config_set_key_mem . A private key will be decrypted if the optional @@ -213,6 +227,13 @@ sets file from which the public certificate will be read. .Fn tls_config_set_cert_mem sets the public certificate directly from memory. .Pp +.Fn tls_config_set_crl_file +sets the filename used to load a file containing the +Certificate Revocation List (CRL). +.Pp +.Fn tls_config_set_crl_mem +sets the CRL directly from memory. +.Pp .Fn tls_config_set_key_file sets the file from which the private key will be read. .Pp @@ -324,6 +345,12 @@ and .Fn tls_config_add_keypair_mem in .Ox 6.1 . +.Pp +.Fn tls_config_set_crl_file +and +.Fn tls_config_set_crl_mem +appeared in +.Ox 6.2 . .Sh AUTHORS .An Joel Sing Aq Mt jsing@openbsd.org with contibutions from