xref: /openbsd-src/lib/libcrypto/man/OPENSSL_load_builtin_modules.3 (revision dd8a21b828f18a98b45fb614b97693e1e7984a21)
1*dd8a21b8Sjsg.\"	$OpenBSD: OPENSSL_load_builtin_modules.3,v 1.8 2023/12/05 02:41:13 jsg Exp $
2448967d2Sschwarze.\"	OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
38974101aSjmc.\"
4448967d2Sschwarze.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5448967d2Sschwarze.\" Copyright (c) 2004, 2013 The OpenSSL Project.  All rights reserved.
6448967d2Sschwarze.\"
7448967d2Sschwarze.\" Redistribution and use in source and binary forms, with or without
8448967d2Sschwarze.\" modification, are permitted provided that the following conditions
9448967d2Sschwarze.\" are met:
10448967d2Sschwarze.\"
11448967d2Sschwarze.\" 1. Redistributions of source code must retain the above copyright
12448967d2Sschwarze.\"    notice, this list of conditions and the following disclaimer.
13448967d2Sschwarze.\"
14448967d2Sschwarze.\" 2. Redistributions in binary form must reproduce the above copyright
15448967d2Sschwarze.\"    notice, this list of conditions and the following disclaimer in
16448967d2Sschwarze.\"    the documentation and/or other materials provided with the
17448967d2Sschwarze.\"    distribution.
18448967d2Sschwarze.\"
19448967d2Sschwarze.\" 3. All advertising materials mentioning features or use of this
20448967d2Sschwarze.\"    software must display the following acknowledgment:
21448967d2Sschwarze.\"    "This product includes software developed by the OpenSSL Project
22448967d2Sschwarze.\"    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23448967d2Sschwarze.\"
24448967d2Sschwarze.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25448967d2Sschwarze.\"    endorse or promote products derived from this software without
26448967d2Sschwarze.\"    prior written permission. For written permission, please contact
27448967d2Sschwarze.\"    openssl-core@openssl.org.
28448967d2Sschwarze.\"
29448967d2Sschwarze.\" 5. Products derived from this software may not be called "OpenSSL"
30448967d2Sschwarze.\"    nor may "OpenSSL" appear in their names without prior written
31448967d2Sschwarze.\"    permission of the OpenSSL Project.
32448967d2Sschwarze.\"
33448967d2Sschwarze.\" 6. Redistributions of any form whatsoever must retain the following
34448967d2Sschwarze.\"    acknowledgment:
35448967d2Sschwarze.\"    "This product includes software developed by the OpenSSL Project
36448967d2Sschwarze.\"    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37448967d2Sschwarze.\"
38448967d2Sschwarze.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39448967d2Sschwarze.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40448967d2Sschwarze.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41448967d2Sschwarze.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
42448967d2Sschwarze.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43448967d2Sschwarze.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44448967d2Sschwarze.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45448967d2Sschwarze.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46448967d2Sschwarze.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47448967d2Sschwarze.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48448967d2Sschwarze.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49448967d2Sschwarze.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50448967d2Sschwarze.\"
51*dd8a21b8Sjsg.Dd $Mdocdate: December 5 2023 $
52d18d1815Sschwarze.Dt OPENSSL_LOAD_BUILTIN_MODULES 3
53d18d1815Sschwarze.Os
54d18d1815Sschwarze.Sh NAME
55d18d1815Sschwarze.Nm OPENSSL_load_builtin_modules ,
56*dd8a21b8Sjsg.Nm ASN1_add_oid_module
57d18d1815Sschwarze.Nd add standard configuration modules
58d18d1815Sschwarze.Sh SYNOPSIS
59d18d1815Sschwarze.In openssl/conf.h
60d18d1815Sschwarze.Ft void
61d18d1815Sschwarze.Fn OPENSSL_load_builtin_modules void
62d18d1815Sschwarze.Ft void
63d18d1815Sschwarze.Fn ASN1_add_oid_module void
64d18d1815Sschwarze.Sh DESCRIPTION
65d18d1815SschwarzeThe function
66d18d1815Sschwarze.Fn OPENSSL_load_builtin_modules
67d18d1815Sschwarzeadds all the standard OpenSSL configuration modules to the internal
68d18d1815Sschwarzelist.
69d18d1815SschwarzeThey can then be used by the OpenSSL configuration code.
70d18d1815Sschwarze.Pp
71d18d1815Sschwarze.Fn ASN1_add_oid_module
720df4f61cSjmcadds just the ASN.1 OBJECT module.
73d18d1815Sschwarze.Pp
74d18d1815SschwarzeIf the simple configuration function
75d18d1815Sschwarze.Xr OPENSSL_config 3
76d18d1815Sschwarzeis called then
77d18d1815Sschwarze.Fn OPENSSL_load_builtin_modules
78d18d1815Sschwarzeis called automatically.
79d18d1815Sschwarze.Pp
80536f31e8SschwarzeApplications which use configuration functions like
81536f31e8Sschwarze.Xr CONF_modules_load_file 3
82536f31e8Sschwarzedirectly need to call
83d18d1815Sschwarze.Fn OPENSSL_load_builtin_modules
84d18d1815Sschwarzethemselves
85d18d1815Sschwarze.Em before
86d18d1815Sschwarzeany other configuration code.
87d18d1815Sschwarze.Pp
88d18d1815SschwarzeApplications should call
89536f31e8Sschwarze.Xr OPENSSL_config 3
90536f31e8Sschwarzeor
91d18d1815Sschwarze.Fn OPENSSL_load_builtin_modules
92d18d1815Sschwarzeto load all configuration modules instead of adding modules selectively:
93d18d1815Sschwarzeotherwise functionality may be missing from the application when
94d18d1815Sschwarzenew modules are added.
95d18d1815Sschwarze.Sh SEE ALSO
96536f31e8Sschwarze.Xr CONF_modules_load_file 3 ,
97d18d1815Sschwarze.Xr OPENSSL_config 3
98d18d1815Sschwarze.Sh HISTORY
9980d1afcdSschwarzeThese functions first appeared in OpenSSL 0.9.7
10080d1afcdSschwarzeand have been available since
10180d1afcdSschwarze.Ox 3.2 .
102