Commit 2564382c0b for openssl.org
commit 2564382c0bfd5c8d5cfb28671457878ee61ed6df
Author: Dmitry Belyavskiy <beldmit@gmail.com>
Date: Wed Aug 19 11:59:45 2026 +0200
Documentation for X509V3_EXT_nconf and X509V3_EXT_nconf_int
Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr>
Reviewed-by: Simo Sorce <simo@redhat.com>
MergeDate: Thu Sep 10 19:05:26 2026
(Merged from https://github.com/openssl/openssl/pull/31636)
diff --git a/doc/build.info b/doc/build.info
index c193fce1d8..a7f56576dc 100644
--- a/doc/build.info
+++ b/doc/build.info
@@ -2899,6 +2899,10 @@ DEPEND[html/man3/UI_new.html]=man3/UI_new.pod
GENERATE[html/man3/UI_new.html]=man3/UI_new.pod
DEPEND[man/man3/UI_new.3]=man3/UI_new.pod
GENERATE[man/man3/UI_new.3]=man3/UI_new.pod
+DEPEND[html/man3/X509V3_EXT_nconf_nid.html]=man3/X509V3_EXT_nconf_nid.pod
+GENERATE[html/man3/X509V3_EXT_nconf_nid.html]=man3/X509V3_EXT_nconf_nid.pod
+DEPEND[man/man3/X509V3_EXT_nconf_nid.3]=man3/X509V3_EXT_nconf_nid.pod
+GENERATE[man/man3/X509V3_EXT_nconf_nid.3]=man3/X509V3_EXT_nconf_nid.pod
DEPEND[html/man3/X509V3_EXT_print.html]=man3/X509V3_EXT_print.pod
GENERATE[html/man3/X509V3_EXT_print.html]=man3/X509V3_EXT_print.pod
DEPEND[man/man3/X509V3_EXT_print.3]=man3/X509V3_EXT_print.pod
@@ -3792,6 +3796,7 @@ html/man3/UI_STRING.html \
html/man3/UI_UTIL_read_pw.html \
html/man3/UI_create_method.html \
html/man3/UI_new.html \
+html/man3/X509V3_EXT_nconf_nid.html \
html/man3/X509V3_EXT_print.html \
html/man3/X509V3_get_d2i.html \
html/man3/X509V3_set_ctx.html \
@@ -4471,6 +4476,7 @@ man/man3/UI_STRING.3 \
man/man3/UI_UTIL_read_pw.3 \
man/man3/UI_create_method.3 \
man/man3/UI_new.3 \
+man/man3/X509V3_EXT_nconf_nid.3 \
man/man3/X509V3_EXT_print.3 \
man/man3/X509V3_get_d2i.3 \
man/man3/X509V3_set_ctx.3 \
diff --git a/doc/man3/X509V3_EXT_nconf_nid.pod b/doc/man3/X509V3_EXT_nconf_nid.pod
new file mode 100644
index 0000000000..41f2c31518
--- /dev/null
+++ b/doc/man3/X509V3_EXT_nconf_nid.pod
@@ -0,0 +1,51 @@
+=pod
+
+=head1 NAME
+
+X509V3_EXT_nconf, X509V3_EXT_nconf_nid - functions to
+create X.509 certificate extensions based on OpenSSL configuration
+
+
+=head1 SYNOPSIS
+
+ #include <openssl/x509v3.h>
+
+ X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid,
+ const char *value);
+ X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,
+ const char *value);
+
+=head1 DESCRIPTION
+
+X509V3_EXT_nconf_nid() and X509V3_EXT_nconf() create a requested X.509
+extension identified either by I<name> or I<ext_nid> correspondingly using
+I<value> contains the string to encode.
+
+I<conf> the configuration information where additional data
+will be read from. I<conf> will typically come from a config
+file.
+
+In case when I<ctx> value is null, the default one is used.
+
+=head1 NOTES
+
+Normally these functions should not be called directly. For many extensions
+they will not produce the expected results without a suitably configured
+context (I<conf> and I<ctx> arguments) that specifies the target object, issuer
+data etc.
+
+=head1 RETURN VALUES
+
+X509V3_EXT_nconf() and X509V3_EXT_nconf_nid() return an B<X509_EXTENSION>
+object on success and NULL on failure.
+
+=head1 COPYRIGHT
+
+Copyright 2026 The OpenSSL Project Authors. All Rights Reserved.
+
+Licensed under the Apache License 2.0 (the "License"). You may not use
+this file except in compliance with the License. You can obtain a copy
+in the file LICENSE in the source distribution or at
+L<https://www.openssl.org/source/license.html>.
+
+=cut
diff --git a/util/missingcrypto.txt b/util/missingcrypto.txt
index b49861044d..7a489a1b6a 100644
--- a/util/missingcrypto.txt
+++ b/util/missingcrypto.txt
@@ -1011,8 +1011,6 @@ X509V3_EXT_conf(3)
X509V3_EXT_conf_nid(3)
X509V3_EXT_get(3)
X509V3_EXT_get_nid(3)
-X509V3_EXT_nconf(3)
-X509V3_EXT_nconf_nid(3)
X509V3_EXT_val_prn(3)
X509V3_NAME_from_section(3)
X509V3_add_standard_extensions(3)