Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5  1.1.1.2  christos X509_check_issued - checks if certificate is apparently issued by another
      6      1.1  christos certificate
      7      1.1  christos 
      8      1.1  christos =head1 SYNOPSIS
      9      1.1  christos 
     10      1.1  christos  #include <openssl/x509v3.h>
     11      1.1  christos 
     12      1.1  christos  int X509_check_issued(X509 *issuer, X509 *subject);
     13      1.1  christos 
     14      1.1  christos 
     15      1.1  christos =head1 DESCRIPTION
     16      1.1  christos 
     17  1.1.1.2  christos X509_check_issued() checks if certificate I<subject> was apparently issued
     18  1.1.1.2  christos using (CA) certificate I<issuer>. This function takes into account not only
     19  1.1.1.2  christos matching of the issuer field of I<subject> with the subject field of I<issuer>,
     20  1.1.1.2  christos but also compares all sub-fields of the B<authorityKeyIdentifier> extension of
     21  1.1.1.2  christos I<subject>, as far as present, with the respective B<subjectKeyIdentifier>,
     22  1.1.1.2  christos serial number, and issuer fields of I<issuer>, as far as present. It also checks
     23  1.1.1.2  christos if the B<keyUsage> field (if present) of I<issuer> allows certificate signing.
     24  1.1.1.3  christos It does not actually check the certificate signature. An error is returned
     25  1.1.1.3  christos if the I<issuer> or the I<subject> are incomplete certificates.
     26      1.1  christos 
     27      1.1  christos =head1 RETURN VALUES
     28      1.1  christos 
     29  1.1.1.3  christos X509_check_issued() returns B<X509_V_OK> if all checks are successful
     30  1.1.1.3  christos or some B<X509_V_ERR*> constant to indicate an error.
     31      1.1  christos 
     32      1.1  christos =head1 SEE ALSO
     33      1.1  christos 
     34  1.1.1.3  christos L<X509_verify_cert(3)>, L<X509_verify(3)>, L<X509_check_ca(3)>,
     35  1.1.1.3  christos L<openssl-verify(1)>, L<X509_self_signed(3)>
     36      1.1  christos 
     37      1.1  christos =head1 COPYRIGHT
     38      1.1  christos 
     39  1.1.1.3  christos Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved.
     40      1.1  christos 
     41  1.1.1.3  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     42      1.1  christos this file except in compliance with the License.  You can obtain a copy
     43      1.1  christos in the file LICENSE in the source distribution or at
     44      1.1  christos L<https://www.openssl.org/source/license.html>.
     45      1.1  christos 
     46      1.1  christos =cut
     47