summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_x509_crt_check_issuer
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_x509_crt_check_issuer')
-rw-r--r--doc/functions/gnutls_x509_crt_check_issuer19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/functions/gnutls_x509_crt_check_issuer b/doc/functions/gnutls_x509_crt_check_issuer
new file mode 100644
index 0000000..136e8a0
--- /dev/null
+++ b/doc/functions/gnutls_x509_crt_check_issuer
@@ -0,0 +1,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