Index: lisp/ChangeLog =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v retrieving revision 7.721 diff -u -p -r7.721 ChangeLog --- lisp/ChangeLog 16 Jun 2005 06:01:42 -0000 7.721 +++ lisp/ChangeLog 16 Jun 2005 08:27:12 -0000 @@ -1,3 +1,8 @@ +2005-06-16 Arne J,Ax(Brgensen + + * smime.el (smime-cert-by-ldap-1): Detect PEM format without + header by looking for magic "MII" at the beginnig. + 2005-06-16 Miles Bader * gnus-xmas.el (gnus-xmas-group-startup-message): Index: lisp/smime.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/smime.el,v retrieving revision 7.14 diff -u -p -r7.14 smime.el --- lisp/smime.el 31 May 2005 13:01:59 -0000 7.14 +++ lisp/smime.el 16 Jun 2005 08:27:13 -0000 @@ -599,9 +599,8 @@ A string or a list of strings is returne ;; header/footer) so we try to handle them anyway. (if (or (string= (substring (cadaar ldapresult) 0 27) "-----BEGIN CERTIFICATE-----") - (condition-case nil - (base64-decode-string (cadaar ldapresult)) - (error nil))) + (string= (substring (cadaar ldapresult) 0 3) + "MII")) (setq cert (smime-replace-in-string (cadaar ldapresult)