xref: /freebsd/secure/lib/libcrypto/man/man3/X509_ACERT_add_attr_nconf.3 (revision 4757b351ea9d59d71d4a38b82506d2d16fcd560d)
-*- mode: troff; coding: utf-8 -*-
Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)

Standard preamble:
========================================================================
..
..
.. \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
. ds C` "" . ds C' "" 'br\} . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is >0, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.

Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF ========================================================================

Title "X509_ACERT_ADD_ATTR_NCONF 3ossl"
X509_ACERT_ADD_ATTR_NCONF 3ossl 2025-07-01 3.5.1 OpenSSL
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
NAME
X509_ACERT_add_attr_nconf \- Add attributes to X509_ACERT from configuration section
SYNOPSIS
Header "SYNOPSIS" .Vb 1 #include <openssl/x509_acert.h> \& int X509_ACERT_add_attr_nconf(CONF *conf, const char *section, X509_ACERT *acert); .Ve
DESCRIPTION
Header "DESCRIPTION" \fBX509_ACERT_add_attr_nconf() adds one or more X509_ATTRIBUTEs to the existing X509_ACERT structure acert. The attributes are read from a section of the conf object.

The give section of the configuration should contain attribute descriptions of the form:

.Vb 1 attribute_name = value .Ve

The format of value will vary depending on the attribute_name. \fBvalue can either be a string value or an ASN1_TYPE object.

To encode an ASN1_TYPE object, use the prefix "ASN1:" followed by the object description that uses the same syntax as ASN1_generate_nconf\|(3). For example:

.Vb 1 id-aca-group = ASN1:SEQUENCE:ietfattr \& [ietfattr] values = SEQUENCE:groups \& [groups] 1.string = UTF8:mygroup1 .Ve

"RETURN VALUES"
Header "RETURN VALUES" \fBX509_ACERT_add_attr_nconf() returns 1 for success and 0 for failure.
"SEE ALSO"
Header "SEE ALSO" \fBASN1_generate_nconf\|(3).
HISTORY
Header "HISTORY" The function X509_ACERT_add_attr_nconf() was added in OpenSSL 3.4.
COPYRIGHT
Header "COPYRIGHT" Copyright 2023-2024 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 <https://www.openssl.org/source/license.html>.