|
1 |
| -.\" $OpenBSD: CONF_modules_load_file.3,v 1.9 2019/06/14 13:41:31 schwarze Exp $ |
2 |
| -.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
| 1 | +.\" $OpenBSD: CONF_modules_load_file.3,v 1.10 2021/08/03 18:49:30 schwarze Exp $ |
| 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 | 23 | .\" Copyright (c) 2000, 2015 The OpenSSL Project. All rights reserved.
|
6 | 24 | .\"
|
7 | 25 | .\" Redistribution and use in source and binary forms, with or without
|
|
48 | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
49 | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE.
|
50 | 68 | .\"
|
51 |
| -.Dd $Mdocdate: June 14 2019 $ |
| 69 | +.Dd $Mdocdate: August 3 2021 $ |
52 | 70 | .Dt CONF_MODULES_LOAD_FILE 3
|
53 | 71 | .Os
|
54 | 72 | .Sh NAME
|
55 | 73 | .Nm CONF_modules_load_file ,
|
56 |
| -.Nm CONF_modules_load |
| 74 | +.Nm CONF_modules_load , |
| 75 | +.Nm X509_get_default_cert_area |
57 | 76 | .Nd OpenSSL configuration functions
|
58 | 77 | .Sh SYNOPSIS
|
59 | 78 | .In openssl/conf.h
|
|
69 | 88 | .Fa "const char *appname"
|
70 | 89 | .Fa "unsigned long flags"
|
71 | 90 | .Fc
|
| 91 | +.In openssl/x509.h |
| 92 | +.Ft const char * |
| 93 | +.Fn X509_get_default_cert_area void |
72 | 94 | .Sh DESCRIPTION
|
73 | 95 | The function
|
74 | 96 | .Fn CONF_modules_load_file
|
@@ -156,12 +178,20 @@ Applications can use the
|
156 | 178 | function if they wish to load a configuration file themselves and
|
157 | 179 | have finer control over how errors are treated.
|
158 | 180 | .Sh RETURN VALUES
|
159 |
| -These functions return 1 for success and zero or a negative value for |
160 |
| -failure. |
| 181 | +.Fn CONF_modules_load_file |
| 182 | +and |
| 183 | +.Fn CONF_modules_load |
| 184 | +return 1 for success and zero or a negative value for failure. |
161 | 185 | If module errors are not ignored, the return code will reflect the return
|
162 | 186 | value of the failing module (this will always be zero or negative).
|
| 187 | +.Pp |
| 188 | +.Fn X509_get_default_cert_area |
| 189 | +returns a pointer to the constant string |
| 190 | +.Qq "/etc/ssl" . |
163 | 191 | .Sh FILES
|
164 | 192 | .Bl -tag -width /etc/ssl/openssl.cnf -compact
|
| 193 | +.It Pa /etc/ssl |
| 194 | +standard configuration directory |
165 | 195 | .It Pa /etc/ssl/openssl.cnf
|
166 | 196 | standard configuration file
|
167 | 197 | .El
|
@@ -244,6 +274,10 @@ if (fp == NULL) {
|
244 | 274 | .Xr OPENSSL_config 3 ,
|
245 | 275 | .Xr OPENSSL_load_builtin_modules 3
|
246 | 276 | .Sh HISTORY
|
| 277 | +.Fn X509_get_default_cert_area |
| 278 | +first appeared in SSLeay 0.4.1 and has been available since |
| 279 | +.Ox 2.4 . |
| 280 | +.Pp |
247 | 281 | .Fn CONF_modules_load_file
|
248 | 282 | and
|
249 | 283 | .Fn CONF_modules_load
|
|
0 commit comments