summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-25 09:10:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-25 09:10:15 +0200
commitc10d5b6fc8cee4c4ef9a5f113ebd71d1402e208b (patch)
treecb87f5ca840ef032fc06fe8e8c43786f910e65d1
parentda135479eba8a1c3c6f4535f1acf8ad675f2735a (diff)
downloadgnutls-c10d5b6fc8cee4c4ef9a5f113ebd71d1402e208b.tar.gz
updated doc for retrieve function
-rw-r--r--lib/gnutls_cert.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index 59b219487a..c467d4bc96 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -315,7 +315,8 @@ gnutls_certificate_server_set_request(gnutls_session_t session,
* @func: is the callback function
*
* This function sets a callback to be called in order to retrieve the
- * certificate to be used in the handshake. You are advised
+ * certificate to be used in the handshake. The callback will take control
+ * only if a certificate is requested by the peer. You are advised
* to use gnutls_certificate_set_retrieve_function2() because it
* is much more efficient in the processing it requires from gnutls.
*
@@ -361,7 +362,8 @@ void gnutls_certificate_set_retrieve_function
* @func: is the callback function
*
* This function sets a callback to be called in order to retrieve the
- * certificate to be used in the handshake.
+ * certificate to be used in the handshake. The callback will take control
+ * only if a certificate is requested by the peer.
*
* The callback's function prototype is:
* int (*callback)(gnutls_session_t, const gnutls_datum_t* req_ca_dn, int nreqs,