`smime-ldap-search' returns results without userCertificates.
+2006-02-14 Arne J\e,Ax\e(Brgensen <arne@arnested.dk>
+
+ * smime.el (smime-cert-by-ldap-1): Fix bug where
+ `smime-ldap-search' returns results without userCertificates.
+
2006-02-15 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-util.el (mm-make-temp-file): Don't catch file-error in Emacs.
host '("userCertificate") nil))
(retbuf (generate-new-buffer (format "*certificate for %s*" mail)))
cert)
- (if (>= (length ldapresult) 1)
+ (if (and (>= (length ldapresult) 1)
+ (> (length (cadaar ldapresult)) 0))
(with-current-buffer retbuf
;; Certificates on LDAP servers _should_ be in DER format,
;; but there are some servers out there that distributes the