summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-08-03 18:49:30 +0000
committerschwarze <>2021-08-03 18:49:30 +0000
commit0d1b5167cefeac3e368ce0cef33c73bb05d8dde4 (patch)
treed237bc724dfba445da8008626a3ca2c3b37c1423 /src
parent0ecea185788b59c18b870883d6c5b87eb7356139 (diff)
downloadopenbsd-0d1b5167cefeac3e368ce0cef33c73bb05d8dde4.tar.gz
openbsd-0d1b5167cefeac3e368ce0cef33c73bb05d8dde4.tar.bz2
openbsd-0d1b5167cefeac3e368ce0cef33c73bb05d8dde4.zip
Document X509_get_default_cert_area(3).
Put it into this page because this is the code actually using it. Despite its name and include file, it is unrelated to X.509 and unrelated to certificates: it is just the default directory containing the library configuration file, openssl.cnf(5).
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/CONF_modules_load_file.348
1 files changed, 41 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/CONF_modules_load_file.3 b/src/lib/libcrypto/man/CONF_modules_load_file.3
index 972752f7a3..bd419ef3e3 100644
--- a/src/lib/libcrypto/man/CONF_modules_load_file.3
+++ b/src/lib/libcrypto/man/CONF_modules_load_file.3
@@ -1,7 +1,25 @@
1.\" $OpenBSD: CONF_modules_load_file.3,v 1.9 2019/06/14 13:41:31 schwarze Exp $ 1.\" $OpenBSD: CONF_modules_load_file.3,v 1.10 2021/08/03 18:49:30 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: e9b77246 Jan 20 19:58:49 2017 +0100
3.\" selective merge up to: d090fc00 Feb 26 13:11:10 2019 +0800
3.\" 4.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 5.\" This file is a derived work.
6.\" The changes are covered by the following Copyright and license:
7.\"
8.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
9.\"
10.\" Permission to use, copy, modify, and distribute this software for any
11.\" purpose with or without fee is hereby granted, provided that the above
12.\" copyright notice and this permission notice appear in all copies.
13.\"
14.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21.\"
22.\" The original file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2000, 2015 The OpenSSL Project. All rights reserved. 23.\" Copyright (c) 2000, 2015 The OpenSSL Project. All rights reserved.
6.\" 24.\"
7.\" Redistribution and use in source and binary forms, with or without 25.\" Redistribution and use in source and binary forms, with or without
@@ -48,12 +66,13 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 68.\"
51.Dd $Mdocdate: June 14 2019 $ 69.Dd $Mdocdate: August 3 2021 $
52.Dt CONF_MODULES_LOAD_FILE 3 70.Dt CONF_MODULES_LOAD_FILE 3
53.Os 71.Os
54.Sh NAME 72.Sh NAME
55.Nm CONF_modules_load_file , 73.Nm CONF_modules_load_file ,
56.Nm CONF_modules_load 74.Nm CONF_modules_load ,
75.Nm X509_get_default_cert_area
57.Nd OpenSSL configuration functions 76.Nd OpenSSL configuration functions
58.Sh SYNOPSIS 77.Sh SYNOPSIS
59.In openssl/conf.h 78.In openssl/conf.h
@@ -69,6 +88,9 @@
69.Fa "const char *appname" 88.Fa "const char *appname"
70.Fa "unsigned long flags" 89.Fa "unsigned long flags"
71.Fc 90.Fc
91.In openssl/x509.h
92.Ft const char *
93.Fn X509_get_default_cert_area void
72.Sh DESCRIPTION 94.Sh DESCRIPTION
73The function 95The function
74.Fn CONF_modules_load_file 96.Fn CONF_modules_load_file
@@ -156,12 +178,20 @@ Applications can use the
156function if they wish to load a configuration file themselves and 178function if they wish to load a configuration file themselves and
157have finer control over how errors are treated. 179have finer control over how errors are treated.
158.Sh RETURN VALUES 180.Sh RETURN VALUES
159These functions return 1 for success and zero or a negative value for 181.Fn CONF_modules_load_file
160failure. 182and
183.Fn CONF_modules_load
184return 1 for success and zero or a negative value for failure.
161If module errors are not ignored, the return code will reflect the return 185If module errors are not ignored, the return code will reflect the return
162value of the failing module (this will always be zero or negative). 186value of the failing module (this will always be zero or negative).
187.Pp
188.Fn X509_get_default_cert_area
189returns a pointer to the constant string
190.Qq "/etc/ssl" .
163.Sh FILES 191.Sh FILES
164.Bl -tag -width /etc/ssl/openssl.cnf -compact 192.Bl -tag -width /etc/ssl/openssl.cnf -compact
193.It Pa /etc/ssl
194standard configuration directory
165.It Pa /etc/ssl/openssl.cnf 195.It Pa /etc/ssl/openssl.cnf
166standard configuration file 196standard configuration file
167.El 197.El
@@ -244,6 +274,10 @@ if (fp == NULL) {
244.Xr OPENSSL_config 3 , 274.Xr OPENSSL_config 3 ,
245.Xr OPENSSL_load_builtin_modules 3 275.Xr OPENSSL_load_builtin_modules 3
246.Sh HISTORY 276.Sh HISTORY
277.Fn X509_get_default_cert_area
278first appeared in SSLeay 0.4.1 and has been available since
279.Ox 2.4 .
280.Pp
247.Fn CONF_modules_load_file 281.Fn CONF_modules_load_file
248and 282and
249.Fn CONF_modules_load 283.Fn CONF_modules_load