summaryrefslogtreecommitdiff
path: root/lib/cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-17 14:13:26 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-17 14:13:32 +0200
commite9d4f6812f466b7f0bf4ce8d43902804d8910842 (patch)
tree4bcec785a10106d8deb0b9ff0c142d0864c5063d /lib/cert.c
parentcf09cd11fb7416f2bc8e64876d81bbeaf468fd20 (diff)
downloadgnutls-e9d4f6812f466b7f0bf4ce8d43902804d8910842.tar.gz
doc update [ci skip]
Diffstat (limited to 'lib/cert.c')
-rw-r--r--lib/cert.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/cert.c b/lib/cert.c
index 58087a0785..bcd0d2d9da 100644
--- a/lib/cert.c
+++ b/lib/cert.c
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2001-2012 Free Software Foundation, Inc.
+ * Copyright (C) 2001-2016 Free Software Foundation, Inc.
+ * Copyright (C) 2015-2016 Red Hat, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
@@ -101,9 +102,13 @@ void gnutls_certificate_free_cas(gnutls_certificate_credentials_t sc)
* @flags: Use zero or %GNUTLS_TL_GET_COPY
*
* This function will return the issuer of a given certificate.
+ * If the flag %GNUTLS_TL_GET_COPY is specified a copy of the issuer
+ * will be returned which must be freed using gnutls_x509_crt_deinit().
+ * In that case the provided @issuer must not be initialized.
+ *
* As with gnutls_x509_trust_list_get_issuer() this function requires
- * the %GNUTLS_TL_GET_COPY flag in order to operate with PKCS #11 trust
- * lists. In that case the issuer must be freed using gnutls_x509_crt_deinit().
+ * the %GNUTLS_TL_GET_COPY flag in order to operate with PKCS#11 trust
+ * lists in a thread-safe way.
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.