From: Simon Josefsson Date: Mon, 30 Nov 2009 18:02:26 +0000 (+0100) Subject: Doc fix. X-Git-Tag: gnutls_2_9_10~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ae95bfe200b6a39bd3908bf5b74f84c643bd5e3;p=thirdparty%2Fgnutls.git Doc fix. --- diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c index 810a569796..482c7f6964 100644 --- a/lib/gnutls_x509.c +++ b/lib/gnutls_x509.c @@ -730,7 +730,9 @@ gnutls_certificate_set_x509_key_mem (gnutls_certificate_credentials_t res, * This function sets a certificate/private key pair in the * gnutls_certificate_credentials_t structure. This function may be * called more than once (in case multiple keys/certificates exist - * for the server). + * for the server). For clients that wants to send more than its own + * end entity certificate (e.g., also an intermediate CA cert) then + * put the certificate chain in @cert_list. * * Returns: %GNUTLS_E_SUCCESS on success, or an error code. * @@ -744,7 +746,7 @@ gnutls_certificate_set_x509_key (gnutls_certificate_credentials_t res, { int ret, i; - /* this should be first + /* this should be first */ res->pkey = @@ -817,8 +819,10 @@ gnutls_certificate_set_x509_key (gnutls_certificate_credentials_t res, * * This function sets a certificate/private key pair in the * gnutls_certificate_credentials_t structure. This function may be - * called more than once (in case multiple keys/certificates exist - * for the server). + * called more than once (in case multiple keys/certificates exist for + * the server). For clients that wants to send more than its own end + * entity certificate (e.g., also an intermediate CA cert) then put + * the certificate chain in @certfile. * * Currently only PKCS-1 encoded RSA and DSA private keys are accepted by * this function. @@ -833,7 +837,7 @@ gnutls_certificate_set_x509_key_file (gnutls_certificate_credentials_t res, { int ret; - /* this should be first + /* this should be first */ if ((ret = read_key_file (res, keyfile, type)) < 0) return ret;