]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Doc fix.
authorSimon Josefsson <simon@josefsson.org>
Mon, 30 Nov 2009 18:02:26 +0000 (19:02 +0100)
committerSimon Josefsson <simon@josefsson.org>
Mon, 30 Nov 2009 18:02:26 +0000 (19:02 +0100)
lib/gnutls_x509.c

index 810a5697966105ef3dbbb1c73312df477ef9b437..482c7f6964dd460ae742ab75f45478981c7da87e 100644 (file)
@@ -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;