summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-07-30 21:57:49 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-07-30 21:57:49 +0000
commit137d8c711053184dab90b83c98418016ae17eb48 (patch)
treec6e7c79f3605e5965137df5c51b52cba71d324ac
parent8f4fa71291abf20f366a62a3458a2401424c6580 (diff)
downloadgnutls-137d8c711053184dab90b83c98418016ae17eb48.tar.gz
corrected documentation.
-rw-r--r--doc/tex/ex-cert-select.tex6
-rw-r--r--lib/gnutls_cert.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/doc/tex/ex-cert-select.tex b/doc/tex/ex-cert-select.tex
index 35b829c524..5b3803349f 100644
--- a/doc/tex/ex-cert-select.tex
+++ b/doc/tex/ex-cert-select.tex
@@ -25,9 +25,9 @@
#define CAFILE "ca.pem"
static int cert_callback(gnutls_session session,
- const gnutls_datum* req_ca_rdn, int nreqs,
- const gnutls_pk_algorithm* sign_algos, int sign_algos_length,
- gnutls_retr_st * st);
+ const gnutls_datum* req_ca_rdn, int nreqs,
+ const gnutls_pk_algorithm* sign_algos, int sign_algos_length,
+ gnutls_retr_st * st);
gnutls_x509_crt crt;
gnutls_x509_privkey key;
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index 038cedc796..5c1ca58869 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -390,7 +390,7 @@ void gnutls_certificate_server_set_select_function(gnutls_session session,
* to be used in the handshake.
* The callback's function prototype is:
* int (*callback)(gnutls_session, const gnutls_datum* req_ca_dn, int nreqs,
- * gnutls_pk_algorithm* pk_algos, int pk_algos_length, gnutls_retr_st st);
+ * gnutls_pk_algorithm* pk_algos, int pk_algos_length, gnutls_retr_st* st);
*
* @st should contain the certificates and private keys.
*
@@ -425,8 +425,7 @@ void gnutls_certificate_client_set_retrieve_function(gnutls_certificate_credenti
* This function sets a callback to be called in order to retrieve the certificate
* to be used in the handshake.
* The callback's function prototype is:
- * int (*callback)(gnutls_session, const gnutls_datum* req_ca_dn, int nreqs,
- * gnutls_pk_algorithm* pk_algos, int pk_algos_length, gnutls_retr_st st);
+ * int (*callback)(gnutls_session, gnutls_retr_st* st);
*
* @st should contain the certificates and private keys.
*