summaryrefslogtreecommitdiff
path: root/lib/gnutls_cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-22 13:49:10 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-22 13:50:46 +0200
commit6decea43c5ddb11c1c34801073e012671e8baf81 (patch)
tree35df8b7d2c5fb863636a1f204a29105c92ab8cd1 /lib/gnutls_cert.c
parentc7899cb647712273a31c91edb75c7653e8e17066 (diff)
downloadgnutls-6decea43c5ddb11c1c34801073e012671e8baf81.tar.gz
doc update
Diffstat (limited to 'lib/gnutls_cert.c')
-rw-r--r--lib/gnutls_cert.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index c8776b5a91..f33dfcf684 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -325,8 +325,8 @@ gnutls_certificate_server_set_request(gnutls_session_t session,
*
* @req_ca_dn is only used in X.509 certificates.
* Contains a list with the CA names that the server considers trusted.
- * Normally we should send a certificate that is signed
- * by one of these CAs. These names are DER encoded. To get a more
+ * This is a hint and typically the client should send a certificate that is signed
+ * by one of these CAs. These names, when available, are DER encoded. To get a more
* meaningful value use the function gnutls_x509_rdn_get().
*
* @pk_algos contains a list with server's acceptable signature algorithms.
@@ -348,7 +348,8 @@ gnutls_certificate_server_set_request(gnutls_session_t session,
**/
void gnutls_certificate_set_retrieve_function
(gnutls_certificate_credentials_t cred,
- gnutls_certificate_retrieve_function * func) {
+ gnutls_certificate_retrieve_function * func)
+{
cred->get_cert_callback = func;
}
@@ -367,8 +368,8 @@ void gnutls_certificate_set_retrieve_function
*
* @req_ca_dn is only used in X.509 certificates.
* Contains a list with the CA names that the server considers trusted.
- * Normally we should send a certificate that is signed
- * by one of these CAs. These names are DER encoded. To get a more
+ * This is a hint and typically the client should send a certificate that is signed
+ * by one of these CAs. These names, when available, are DER encoded. To get a more
* meaningful value use the function gnutls_x509_rdn_get().
*
* @pk_algos contains a list with server's acceptable signature algorithms.
@@ -396,7 +397,8 @@ void gnutls_certificate_set_retrieve_function
**/
void gnutls_certificate_set_retrieve_function2
(gnutls_certificate_credentials_t cred,
- gnutls_certificate_retrieve_function2 * func) {
+ gnutls_certificate_retrieve_function2 * func)
+{
cred->get_cert_callback2 = func;
}
@@ -426,7 +428,8 @@ void gnutls_certificate_set_retrieve_function2
void
gnutls_certificate_set_verify_function
(gnutls_certificate_credentials_t cred,
- gnutls_certificate_verify_function * func) {
+ gnutls_certificate_verify_function * func)
+{
cred->verify_callback = func;
}