Blame doc/functions/gnutls_x509_crt_check_issuer

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {unsigned} {gnutls_x509_crt_check_issuer} (gnutls_x509_crt_t @var{cert}, gnutls_x509_crt_t @var{issuer})
Packit Service 4684c1
@var{cert}: is the certificate to be checked
Packit Service 4684c1
Packit Service 4684c1
@var{issuer}: is the certificate of a possible issuer
Packit Service 4684c1
Packit Service 4684c1
This function will check if the given certificate was issued by the
Packit Service 4684c1
given issuer. It checks the DN fields and the authority
Packit Service 4684c1
key identifier and subject key identifier fields match.
Packit Service 4684c1
Packit Service 4684c1
If the same certificate is provided at the  @code{cert} and  @code{issuer} fields,
Packit Service 4684c1
it will check whether the certificate is self-signed.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} It will return true (1) if the given certificate is issued
Packit Service 4684c1
by the given issuer, and false (0) if not.  
Packit Service 4684c1
@end deftypefun