X509_check_issued.pod 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. X509_check_issued - checks if certificate is issued by another
  4. certificate
  5. =head1 SYNOPSIS
  6. #include <openssl/x509v3.h>
  7. int X509_check_issued(X509 *issuer, X509 *subject);
  8. =head1 DESCRIPTION
  9. This function checks if certificate I<subject> was issued using CA
  10. certificate I<issuer>. This function takes into account not only
  11. matching of issuer field of I<subject> with subject field of I<issuer>,
  12. but also compares B<authorityKeyIdentifier> extension of I<subject> with
  13. B<subjectKeyIdentifier> of I<issuer> if B<authorityKeyIdentifier>
  14. present in the I<subject> certificate and checks B<keyUsage> field of
  15. I<issuer>.
  16. =head1 RETURN VALUE
  17. Function return B<X509_V_OK> if certificate I<subject> is issued by
  18. I<issuer> or some B<X509_V_ERR*> constant to indicate an error.
  19. =head1 SEE ALSO
  20. L<X509_verify_cert(3)>,
  21. L<X509_check_ca(3)>,
  22. L<verify(1)>
  23. =head1 COPYRIGHT
  24. Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the OpenSSL license (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut