diff options
author | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2023-06-30 17:12:57 -0400 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-04-24 14:05:35 +0100 |
commit | 1eeec94f1fd7de60248d1093d5552dc1f05c2fc9 (patch) | |
tree | 7e3a18eb67d62ca5cf68963af1f48ab008c8f2b2 /doc | |
parent | b97fb22f596bfb528e69402b1bdcdf144a563918 (diff) |
x509_acert: Add and retrieve certificate extensions
Add API to manage attribute certificate extensions
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15857)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/X509V3_get_d2i.pod | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/man3/X509V3_get_d2i.pod b/doc/man3/X509V3_get_d2i.pod index 4a2e81b0db..b5abd2ff28 100644 --- a/doc/man3/X509V3_get_d2i.pod +++ b/doc/man3/X509V3_get_d2i.pod @@ -4,9 +4,10 @@ X509V3_get_d2i, X509V3_add1_i2d, X509V3_EXT_d2i, X509V3_EXT_i2d, X509_get_ext_d2i, X509_add1_ext_i2d, +X509_ACERT_get_ext_d2i, X509_ACERT_add1_ext_i2d, X509_CRL_get_ext_d2i, X509_CRL_add1_ext_i2d, X509_REVOKED_get_ext_d2i, X509_REVOKED_add1_ext_i2d, -X509_get0_extensions, X509_CRL_get0_extensions, +X509_get0_extensions, X509_ACERT_get0_extensions, X509_CRL_get0_extensions, X509_REVOKED_get0_extensions - X509 extension decode and encode functions =head1 SYNOPSIS @@ -25,6 +26,10 @@ X509_REVOKED_get0_extensions - X509 extension decode and encode functions int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, unsigned long flags); + void *X509_ACERT_get_ext_d2i(const X509_ACERT *x, int nid, int *crit, int *idx); + int X509_ACERT_add1_ext_i2d(X509_ACERT *x, int nid, void *value, int crit, + unsigned long flags); + void *X509_CRL_get_ext_d2i(const X509_CRL *crl, int nid, int *crit, int *idx); int X509_CRL_add1_ext_i2d(X509_CRL *crl, int nid, void *value, int crit, unsigned long flags); @@ -34,6 +39,7 @@ X509_REVOKED_get0_extensions - X509 extension decode and encode functions unsigned long flags); const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); + const STACK_OF(X509_EXTENSION) *X509_ACERT_get0_extensions(const X509 *x); const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(const X509_REVOKED *r); @@ -64,6 +70,10 @@ X509_get_ext_d2i() and X509_add1_ext_i2d() operate on the extensions of certificate I<x>. They are otherwise identical to X509V3_get_d2i() and X509V3_add1_i2d(). +X509_ACERT_get_ext_d2i() and X509_ACERT_add1_ext_i2d() operate on the extensions +of B<X509_ACERT> structure I<x>. They are otherwise identical to X509V3_get_d2i() +and X509V3_add1_i2d(). + X509_CRL_get_ext_d2i() and X509_CRL_add1_ext_i2d() operate on the extensions of CRL I<crl>. They are otherwise identical to X509V3_get_d2i() and X509V3_add1_i2d(). @@ -72,9 +82,10 @@ X509_REVOKED_get_ext_d2i() and X509_REVOKED_add1_ext_i2d() operate on the extensions of B<X509_REVOKED> structure I<r> (i.e for CRL entry extensions). They are otherwise identical to X509V3_get_d2i() and X509V3_add1_i2d(). -X509_get0_extensions(), X509_CRL_get0_extensions() and -X509_REVOKED_get0_extensions() return a STACK of all the extensions -of a certificate, a CRL or a CRL entry respectively. +X509_get0_extensions(), X509_ACERT_get0_extensions(), +X509_CRL_get0_extensions() and X509_REVOKED_get0_extensions() return a +STACK of all the extensions of a certificate, an attribute certificate, +a CRL or a CRL entry respectively. =head1 NOTES |