* epg.el (epg-signature-to-string): Decode DN.
authorueno <ueno>
Sat, 29 Apr 2006 21:29:41 +0000 (21:29 +0000)
committerueno <ueno>
Sat, 29 Apr 2006 21:29:41 +0000 (21:29 +0000)
ChangeLog
epg.el

index f0b649b..d941792 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        creation-time, expiration-time, pubkey-algorithm,
        digest-algorithm.
        (epg-process-sentinel): Abolished.
+       (epg-signature-to-string): Decode DN.
 
 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
 
diff --git a/epg.el b/epg.el
index 672a7a9..bcf3675 100644 (file)
--- a/epg.el
+++ b/epg.el
                                   compress-algorithm)
   "Return a context object."
   (cons 'epg-context
-       (vector protocol armor textmode include-certs
+       (vector (or protocol 'OpenPGP) armor textmode include-certs
                cipher-algorithm digest-algorithm compress-algorithm
                #'epg-passphrase-callback-function
                #'epg-progress-callback-function
@@ -594,7 +594,11 @@ This function is for internal use only."
            "No public key for "))
      (epg-signature-key-id signature)
      (if user-id
-        (concat " from " user-id " ")
+        (concat " from "
+                (if (stringp user-id)
+                    user-id
+                  (epg-decode-dn user-id))
+                " ")
        "")
      (if (epg-signature-validity signature)
         (format "(trust %s)"  (epg-signature-validity signature))