diff options
author | schwarze <> | 2021-08-03 19:47:39 +0000 |
---|---|---|
committer | schwarze <> | 2021-08-03 19:47:39 +0000 |
commit | 2c9333ab5a84a7cd21ff150e9ae5b58dd06fd0c9 (patch) | |
tree | 89974177fab1034f201f3f22ded151953a40de23 /src | |
parent | 0d1b5167cefeac3e368ce0cef33c73bb05d8dde4 (diff) | |
download | openbsd-2c9333ab5a84a7cd21ff150e9ae5b58dd06fd0c9.tar.gz openbsd-2c9333ab5a84a7cd21ff150e9ae5b58dd06fd0c9.tar.bz2 openbsd-2c9333ab5a84a7cd21ff150e9ae5b58dd06fd0c9.zip |
Document X509_get_default_cert_dir_env(3)
and X509_get_default_cert_file_env(3).
LibreSSL itself does not call getenv(3), but a few application programs
including epic5, fetchmail, fossil, slic3r call these functions, so in
case programmers find them in existing code, telling them what they do
seems useful.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/X509_LOOKUP_new.3 | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/X509_LOOKUP_new.3 b/src/lib/libcrypto/man/X509_LOOKUP_new.3 index 2386e65de9..653ab6ca62 100644 --- a/src/lib/libcrypto/man/X509_LOOKUP_new.3 +++ b/src/lib/libcrypto/man/X509_LOOKUP_new.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_LOOKUP_new.3,v 1.2 2021/08/02 16:29:27 schwarze Exp $ | 1 | .\" $OpenBSD: X509_LOOKUP_new.3,v 1.3 2021/08/03 19:47:39 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: August 2 2021 $ | 17 | .Dd $Mdocdate: August 3 2021 $ |
18 | .Dt X509_LOOKUP_NEW 3 | 18 | .Dt X509_LOOKUP_NEW 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -31,7 +31,9 @@ | |||
31 | .Nm X509_LOOKUP_by_fingerprint , | 31 | .Nm X509_LOOKUP_by_fingerprint , |
32 | .Nm X509_LOOKUP_by_alias , | 32 | .Nm X509_LOOKUP_by_alias , |
33 | .Nm X509_get_default_cert_dir , | 33 | .Nm X509_get_default_cert_dir , |
34 | .Nm X509_get_default_cert_file | 34 | .Nm X509_get_default_cert_file , |
35 | .Nm X509_get_default_cert_dir_env , | ||
36 | .Nm X509_get_default_cert_file_env | ||
35 | .Nd certificate lookup object | 37 | .Nd certificate lookup object |
36 | .Sh SYNOPSIS | 38 | .Sh SYNOPSIS |
37 | .In openssl/x509_vfy.h | 39 | .In openssl/x509_vfy.h |
@@ -105,6 +107,10 @@ | |||
105 | .Fn X509_get_default_cert_dir void | 107 | .Fn X509_get_default_cert_dir void |
106 | .Ft const char * | 108 | .Ft const char * |
107 | .Fn X509_get_default_cert_file void | 109 | .Fn X509_get_default_cert_file void |
110 | .Ft const char * | ||
111 | .Fn X509_get_default_cert_dir_env void | ||
112 | .Ft const char * | ||
113 | .Fn X509_get_default_cert_file_env void | ||
108 | .Sh DESCRIPTION | 114 | .Sh DESCRIPTION |
109 | .Fn X509_LOOKUP_new | 115 | .Fn X509_LOOKUP_new |
110 | allocates a new, empty | 116 | allocates a new, empty |
@@ -410,10 +416,29 @@ objects. | |||
410 | .Fn X509_get_default_cert_dir | 416 | .Fn X509_get_default_cert_dir |
411 | returns a pointer to the constant string | 417 | returns a pointer to the constant string |
412 | .Qq /etc/ssl/certs , | 418 | .Qq /etc/ssl/certs , |
413 | and | ||
414 | .Fn X509_get_default_cert_file | 419 | .Fn X509_get_default_cert_file |
415 | to the constant string | 420 | to |
416 | .Qq /etc/ssl/certs.pem . | 421 | .Qq /etc/ssl/certs.pem , |
422 | .Fn X509_get_default_cert_dir_env | ||
423 | to | ||
424 | .Qq SSL_CERT_DIR , | ||
425 | and | ||
426 | .Fn X509_get_default_cert_file_env | ||
427 | to | ||
428 | .Qq SSL_CERT_FILE . | ||
429 | .Sh ENVIRONMENT | ||
430 | For reasons of security and simplicity, | ||
431 | LibreSSL ignores the environment variables | ||
432 | .Ev SSL_CERT_DIR | ||
433 | and | ||
434 | .Ev SSL_CERT_FILE , | ||
435 | but other library implementations may use their contents instead | ||
436 | of the standard locations for trusted certificates, and a few | ||
437 | third-party application programs also inspect these variables | ||
438 | directly and may pass their values to | ||
439 | .Fn X509_LOOKUP_add_dir | ||
440 | and | ||
441 | .Fn X509_LOOKUP_load_file . | ||
417 | .Sh FILES | 442 | .Sh FILES |
418 | .Bl -tag -width /etc/ssl/certs.pem -compact | 443 | .Bl -tag -width /etc/ssl/certs.pem -compact |
419 | .It Pa /etc/ssl/certs/ | 444 | .It Pa /etc/ssl/certs/ |
@@ -519,9 +544,11 @@ causes failure but provides no diagnostics. | |||
519 | .Xr X509_STORE_add_cert 3 , | 544 | .Xr X509_STORE_add_cert 3 , |
520 | .Xr X509_STORE_get_by_subject 3 | 545 | .Xr X509_STORE_get_by_subject 3 |
521 | .Sh HISTORY | 546 | .Sh HISTORY |
522 | .Fn X509_get_default_cert_dir | 547 | .Fn X509_get_default_cert_dir , |
548 | .Fn X509_get_default_cert_file , | ||
549 | .Fn X509_get_default_cert_dir_env , | ||
523 | and | 550 | and |
524 | .Fn X509_get_default_cert_file | 551 | .Fn X509_get_default_cert_file_env |
525 | first appeared in SSLeay 0.4.1 and have been available since | 552 | first appeared in SSLeay 0.4.1 and have been available since |
526 | .Ox 2.4 . | 553 | .Ox 2.4 . |
527 | .Pp | 554 | .Pp |