Blame doc/man3/X509_check_ca.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
X509_check_ca - check if given certificate is CA certificate
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/x509v3.h>
Packit c4476c
Packit c4476c
 int X509_check_ca(X509 *cert);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
This function checks if given certificate is CA certificate (can be used
Packit c4476c
to sign other certificates).
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
Function return 0, if it is not CA certificate, 1 if it is proper X509v3
Packit c4476c
CA certificate with B<basicConstraints> extension CA:TRUE,
Packit c4476c
3, if it is self-signed X509 v1 certificate, 4, if it is certificate with
Packit c4476c
B<keyUsage> extension with bit B<keyCertSign> set, but without
Packit c4476c
B<basicConstraints>, and 5 if it has outdated Netscape Certificate Type
Packit c4476c
extension telling that it is CA certificate.
Packit c4476c
Packit c4476c
Actually, any non-zero value means that this certificate could have been
Packit c4476c
used to sign other certificates.
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<X509_verify_cert(3)>,
Packit c4476c
L<X509_check_issued(3)>,
Packit c4476c
L<X509_check_purpose(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut