]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 29 Mar 2002 18:41:19 +0000 (18:41 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 29 Mar 2002 18:41:19 +0000 (18:41 +0000)
lib/auth_cert.c

index a6933dd08bb81e53ecc9fbd6f2de6fadbff1a2d4..2b95903257a78d43b88173fa2bb8f21b31d294e9 100644 (file)
@@ -158,7 +158,7 @@ inline
 }
 
 /* Locates the most appropriate x509 certificate using the
- * given DN
+ * given DN. If indx == -1 then no certificate was found.
  */
 static int _find_x509_cert(const GNUTLS_CERTIFICATE_CREDENTIALS cred,
                           opaque * _data, int _data_size,
@@ -236,6 +236,8 @@ static int _find_openpgp_cert(const GNUTLS_CERTIFICATE_CREDENTIALS cred,
 {
        int i, j;
 
+       *indx = -1;
+
        for (i = 0; i < cred->ncerts; i++) {
                for (j = 0; j < cred->cert_list_length[i]; j++) {