summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_x509_crt_check_issuer
blob: 136e8a06c37e3f86098dc243f54c36629a90fb96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@deftypefun {unsigned} {gnutls_x509_crt_check_issuer} (gnutls_x509_crt_t @var{cert}, gnutls_x509_crt_t @var{issuer})
@var{cert}: is the certificate to be checked

@var{issuer}: is the certificate of a possible issuer

This function will check if the given certificate was issued by the
given issuer. It checks the DN fields and the authority
key identifier and subject key identifier fields match.

If the same certificate is provided at the  @code{cert} and  @code{issuer} fields,
it will check whether the certificate is self-signed.

@strong{Returns:} It will return true (1) if the given certificate is issued
by the given issuer, and false (0) if not.  
@end deftypefun