Don't parse username as DN in USERID_HINT and IMPORTED status handlers.
authorueno <ueno>
Thu, 8 Mar 2007 03:04:01 +0000 (03:04 +0000)
committerueno <ueno>
Thu, 8 Mar 2007 03:04:01 +0000 (03:04 +0000)
epg.el

diff --git a/epg.el b/epg.el
index 0b4d7ca..659912a 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -1199,9 +1199,7 @@ This function is for internal use only."
             (user-id (match-string 2 string))
             (entry (assoc key-id epg-user-id-alist)))
        (condition-case nil
-           (if (eq (epg-context-protocol context) 'CMS)
-               (setq user-id (epg-dn-from-string user-id))
-             (setq user-id (epg--decode-coding-string user-id 'utf-8)))
+           (setq user-id (epg--decode-coding-string user-id 'utf-8))
          (error))
        (if entry
            (setcdr entry user-id)
@@ -1586,9 +1584,7 @@ This function is for internal use only."
             (user-id (match-string 2 string))
             (entry (assoc key-id epg-user-id-alist)))
        (condition-case nil
-           (if (eq (epg-context-protocol context) 'CMS)
-               (setq user-id (epg-dn-from-string user-id))
-             (setq user-id (epg--decode-coding-string user-id 'utf-8)))
+           (setq user-id (epg--decode-coding-string user-id 'utf-8))
          (error))
        (if entry
            (setcdr entry user-id)