|
| 1 | +=pod |
| 2 | + |
| 3 | +=head1 NAME |
| 4 | + |
| 5 | +X509_attr_cert_verify, X509_attr_cert_verify_ex, acert_crl |
| 6 | +- attribute certificate verification functions |
| 7 | + |
| 8 | +=head1 SYNOPSIS |
| 9 | + |
| 10 | + int X509_attr_cert_verify(X509_ACERT *acert, X509 *issuer); |
| 11 | + int X509_attr_cert_verify_ex(X509_ACERT *acert, X509 *issuer, X509 *holder, |
| 12 | + TARGET *tgt, int asserted_before); |
| 13 | + int acert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509_ACERT *x); |
| 14 | + |
| 15 | +=head1 DESCRIPTION |
| 16 | + |
| 17 | +X509_attr_cert_verify verifies that the attribute ceritifcate B<acert> is signed |
| 18 | +by the issuer B<issuer> and that the attribute certificate is valid with |
| 19 | +respect to its validity times and its extensions. This function does B<not> |
| 20 | +verify the B<issuer> certificate. |
| 21 | + |
| 22 | +X509_attr_cert_verify_ex is the extended form of X509_attr_cert_verify, which |
| 23 | +takes an optional B<holder> argument, B<tgt> argument, and B<asserted_before> |
| 24 | +argument. |
| 25 | + |
| 26 | +If not B<NULL>, the subject and subject alternative names are extracted from |
| 27 | +the B<holder> public key certificate and compared against the holder field of |
| 28 | +the asserted attribute certificate, B<acert>. |
| 29 | + |
| 30 | +If not B<NULL>, the target is checked against the list of permitted targets |
| 31 | +within the targetingInformation X.509v3 extension, if the extension is present. |
| 32 | + |
| 33 | +If set to a truthy value, B<asserted_before> causes attribute certificate |
| 34 | +verification to fail if the singleUse X.509v3 extension is present. |
| 35 | + |
| 36 | +acert_crl returns 1 if the attribute certificate B<x> is not revoked in the |
| 37 | +certificate revocation list B<crl>, some other integer otherwise. |
| 38 | + |
| 39 | +=head1 NOTES |
| 40 | + |
| 41 | +These functions verify an X.509 attribute certificate to varying degrees. None |
| 42 | +of them verify the corresponding public key certificate, but the public key |
| 43 | +certificates can just be verified using the normal OpenSSL verification |
| 44 | +functions. |
| 45 | + |
| 46 | +=head1 RETURN VALUES |
| 47 | + |
| 48 | +Both X509_attr_cert_verify and X509_attr_cert_verify_ex return X509_V_OK (0) if |
| 49 | +the attribute certificate is valid with respect to the supplied verification |
| 50 | +parameters, or some other X509_V_ERR_ value otherwise. As stated above, |
| 51 | +acert_crl returns 1 if the attribute certificate is not revoked in the provided |
| 52 | +certificate revocation list, and some other integer otherwise. |
| 53 | + |
| 54 | +=head1 COPYRIGHT |
| 55 | + |
| 56 | +Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. |
| 57 | + |
| 58 | +Licensed under the Apache License 2.0 (the "License"). You may not use |
| 59 | +this file except in compliance with the License. You can obtain a copy |
| 60 | +in the file LICENSE in the source distribution or at |
| 61 | +L<https://www.openssl.org/source/license.html>. |
| 62 | + |
| 63 | +=cut |
0 commit comments