summaryrefslogtreecommitdiff
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
parentc7899cb647712273a31c91edb75c7653e8e17066 (diff)
downloadgnutls-6decea43c5ddb11c1c34801073e012671e8baf81.tar.gz
doc update
-rw-r--r--lib/gnutls_auth.c2
-rw-r--r--lib/gnutls_cert.c17
2 files changed, 12 insertions, 7 deletions
diff --git a/lib/gnutls_auth.c b/lib/gnutls_auth.c
index 3a8170524c..1238da8d5c 100644
--- a/lib/gnutls_auth.c
+++ b/lib/gnutls_auth.c
@@ -161,6 +161,8 @@ gnutls_credentials_set(gnutls_session_t session,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned,
* otherwise a negative error code is returned.
+ *
+ * Since: 3.3.3
**/
int
gnutls_credentials_get(gnutls_session_t session,
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;
}