-*- 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_GET0_HOLDER_BASECERTID 3ossl" X509_ACERT_GET0_HOLDER_BASECERTID 3ossl 2025-09-30 3.5.4 OpenSSL
For nroff, turn off justification. Always turn off hyphenation; it makes way too many mistakes in technical documents. NAME
X509_ACERT_get0_holder_baseCertId,
X509_ACERT_get0_holder_digest,
X509_ACERT_get0_holder_entityName,
X509_ACERT_set0_holder_baseCertId,
X509_ACERT_set0_holder_digest,
X509_ACERT_set0_holder_entityName,
OSSL_ISSUER_SERIAL_get0_issuer,
OSSL_ISSUER_SERIAL_get0_issuerUID,
OSSL_ISSUER_SERIAL_get0_serial,
OSSL_ISSUER_SERIAL_set1_issuer,
OSSL_ISSUER_SERIAL_set1_issuerUID,
OSSL_ISSUER_SERIAL_set1_serial,
OSSL_OBJECT_DIGEST_INFO_get0_digest,
OSSL_OBJECT_DIGEST_INFO_set1_digest - get and set Attribute Certificate holder fields
SYNOPSIS
Header "SYNOPSIS" .Vb 1
#include <
openssl/
x509_acert.h>
\&
const GENERAL_NAMES *X509_ACERT_get0_holder_entityName(const X509_ACERT *x);
OSSL_ISSUER_SERIAL *X509_ACERT_get0_holder_baseCertId(const X509_ACERT *x);
OSSL_OBJECT_DIGEST_INFO * X509_ACERT_get0_holder_digest(const X509_ACERT *x);
void X509_ACERT_set0_holder_entityName(X509_ACERT *x, GENERAL_NAMES *name);
void X509_ACERT_set0_holder_baseCertId(X509_ACERT *x, OSSL_ISSUER_SERIAL *isss);
void X509_ACERT_set0_holder_digest(X509_ACERT *x,
OSSL_OBJECT_DIGEST_INFO *dinfo);
\&
X509_NAME *OSSL_ISSUER_SERIAL_get0_issuer(OSSL_ISSUER_SERIAL *isss);
ASN1_INTEGER *OSSL_ISSUER_SERIAL_get0_serial(OSSL_ISSUER_SERIAL *isss);
ASN1_BIT_STRING *OSSL_ISSUER_SERIAL_get0_issuerUID(OSSL_ISSUER_SERIAL *isss);
int OSSL_ISSUER_SERIAL_set1_issuer(OSSL_ISSUER_SERIAL *isss, X509_NAME *issuer);
int OSSL_ISSUER_SERIAL_set1_serial(OSSL_ISSUER_SERIAL *isss, ASN1_INTEGER *serial);
int OSSL_ISSUER_SERIAL_set1_issuerUID(OSSL_ISSUER_SERIAL *isss, ASN1_BIT_STRING *uid);
\&
void OSSL_OBJECT_DIGEST_INFO_get0_digest(OSSL_OBJECT_DIGEST_INFO *o,
ASN1_ENUMERATED **digestedObjectType,
X509_ALGOR **digestAlgorithm,
ASN1_BIT_STRING **digest);
void OSSL_OBJECT_DIGEST_INFO_set1_digest(OSSL_OBJECT_DIGEST_INFO *o,
ASN1_ENUMERATED *digestedObjectType,
X509_ALGOR *digestAlgorithm,
ASN1_BIT_STRING *digest);
.Ve
DESCRIPTION
Header "DESCRIPTION" These routines set and get the holder identity of an X509 attribute certificate.
\fBX509_ACERT_set0_holder_entityName() sets the identity as a GENERAL_NAME
\fIname, X509_ACERT_set0_holder_baseCertId() sets the identity based on the
issuer and serial number of a certificate detailed in isss and
\fBX509_ACERT_set0_holder_digest() sets the holder entity based on digest
information dinfo. Although RFC 5755 section 4.2.2 recommends that only
one of the above methods be used to set the holder identity for a given
attribute certificate x, setting multiple methods at the same time is
possible. It is up to the application to handle cases when conflicting
identity information is specified using different methods.
Pointers to the internal structures describing the holder identity of
attribute certificate x can be retrieved with
\fBX509_ACERT_get0_holder_entityName(), X509_ACERT_get0_holder_baseCertId(), and
\fBX509_ACERT_get0_holder_digest().
A OSSL_ISSUER_SERIAL object holds the subject name and UID of a certificate
issuer and a certificate's serial number. OSSL_ISSUER_SERIAL_set1_issuer(),
\fBOSSL_ISSUER_SERIAL_set1_issuerUID(), and OSSL_ISSUER_SERIAL_set1_serial()
respectively copy these values into the OSSL_ISSUER_SERIAL structure.
The application is responsible for freeing its own copy of these values after
use. OSSL_ISSUER_SERIAL_get0_issuer(), OSSL_ISSUER_SERIAL_get0_issuerUID(),
and OSSL_ISSUER_SERIAL_get0_serial() return pointers to these values in the object.
An OSSL_OBJECT_DIGEST_INFO object holds a digest of data to identify the
attribute certificate holder. OSSL_OBJECT_DIGEST_INFO_set1_digest() sets the
digest information of the object. The type of digest information is given
by digestedObjectType and can be one of:
OSSL_OBJECT_DIGEST_INFO_PUBLIC_KEY 4
Item "OSSL_OBJECT_DIGEST_INFO_PUBLIC_KEY" Hash of a public key
OSSL_OBJECT_DIGEST_INFO_PUBLIC_KEY_CERT 4
Item "OSSL_OBJECT_DIGEST_INFO_PUBLIC_KEY_CERT" Hash of a public key certificate
OSSL_OBJECT_DIGEST_INFO_OTHER 4
Item "OSSL_OBJECT_DIGEST_INFO_OTHER" Hash of another object. See NOTES below.
\fIdigestAlgorithm indicates the algorithm used to compute digest.
"RETURN VALUES"
Header "RETURN VALUES" All
set0/
set1 routines return 1 for success and 0 for failure.
All
get0 functions return a pointer to the object's inner structure. These
pointers must not be freed after use.
NOTES
Header "NOTES" Although the value of
OSSL_OBJECT_DIGEST_INFO_OTHER is defined in RFC 5755,
its use is prohibited for conformant attribute certificates.
HISTORY
Header "HISTORY" These functions were 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>.