x509v3_cache_extensions.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. =pod
  2. =head1 NAME
  3. x509v3_cache_extensions
  4. - cache info on various X.509v3 extensions and further derived certificate data
  5. =head1 SYNOPSIS
  6. #include <openssl/x509v3.h>
  7. int x509v3_cache_extensions(X509 *x, OSSL_LIB_CTX *libctx, const char *propq);
  8. =head1 DESCRIPTION
  9. This function processes any X509v3 extensions present in an X509 object I<x>
  10. and caches the result of that processing as well as further derived info,
  11. for instance whether the certificate is self-issued or has version X.509v1.
  12. It computes the SHA1 digest of the certificate using the default library context
  13. and property query string and stores the result in x->sha1_hash,
  14. or on failure sets B<EXFLAG_NO_FINGERPRINT> in x->flags.
  15. It sets B<X509_SIG_INFO_VALID> in x->flags if x->siginf was filled successfully,
  16. which may not be possible if a referenced algorithm is unknown or not available.
  17. Many OpenSSL functions that use an X509 object call this function implicitly.
  18. =head1 RETURN VALUES
  19. This function returns 0 if the extensions or other portions of the certificate
  20. are invalid or an error occurred.
  21. Otherwise it returns 1.
  22. =head1 COPYRIGHT
  23. Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
  24. Licensed under the Apache License 2.0 (the "License"). You may not use
  25. this file except in compliance with the License. You can obtain a copy
  26. in the file LICENSE in the source distribution or at
  27. L<https://www.openssl.org/source/license.html>.
  28. =cut