[gnutls-dev] [PATCH] fix doc string to match parameter order and add a const

Evan Martin martine at danga.com
Sun Nov 11 03:19:58 CET 2007


gnutls_certificate_client_set_retrieve_function: the callback prototype
listed was missing a "const".  Changed the document's parameter order to
match the prototype parameter order.
---
 lib/gnutls_cert.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index 3eb7c2b..6e81372 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -314,19 +314,19 @@ gnutls_certificate_server_set_request
(gnutls_session_t session,
   * to be used in the handshake.
   * The callback's function prototype is:
   * int (*callback)(gnutls_session_t, const gnutls_datum_t*
req_ca_dn, int nreqs,
-  * gnutls_pk_algorithm_t* pk_algos, int pk_algos_length, gnutls_retr_st* st);
+  * const gnutls_pk_algorithm_t* pk_algos, int pk_algos_length,
gnutls_retr_st* st);
   *
-  * @st should contain the certificates and private keys.
-  *
-  * @req_ca_cert, is only used in X.509 certificates.
+  * @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
   * meaningful value use the function gnutls_x509_rdn_get().
   *
-  * @pk_algos, contains a list with server's acceptable signature algorithms.
+  * @pk_algos contains a list with server's acceptable signature algorithms.
   * The certificate returned should support the server's given algorithms.
   *
+  * @st should contain the certificates and private keys.
+  *
   * If the callback function is provided then gnutls will call it, in the
   * handshake, after the certificate request message has been received.
   *
--
1.5.3.GIT




More information about the Gnutls-devel mailing list