mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
b425001010
Many of the new types introduced by OpenSSL 3.0 have an OSSL_ prefix, e.g., OSSL_CALLBACK, OSSL_PARAM, OSSL_ALGORITHM, OSSL_SERIALIZER. The OPENSSL_CTX type stands out a little by using a different prefix. For consistency reasons, this type is renamed to OSSL_LIB_CTX. Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12621)
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
x509v3_cache_extensions
|
|
- cache info on various X.509v3 extensions and further derived certificate data
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
#include <openssl/x509v3.h>
|
|
|
|
int x509v3_cache_extensions(X509 *x, OSSL_LIB_CTX *libctx, const char *propq);
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
This function processes any X509v3 extensions present in an X509 object I<x>
|
|
and caches the result of that processing as well as further derived info,
|
|
for instance whether the certificate is self-issued or has version X.509v1.
|
|
It computes the SHA1 digest of the certificate using the default library context
|
|
and property query string and stores the result in x->sha1_hash.
|
|
It sets B<X509_SIG_INFO_VALID> in x->flags if x->siginf was filled successfully,
|
|
which may not be possible if a referenced algorithm is unknown or not available.
|
|
Many OpenSSL functions that use an X509 object call this function implicitly.
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
This function returns 0 if the extensions or other portions of the certificate
|
|
are invalid or an error occurred.
|
|
Otherwise it returns 1.
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright 2020 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
|