* epg.el (epg-start-encrypt): RECIPIENTS is now a list of key objects.
authorueno <ueno>
Thu, 20 Apr 2006 08:21:32 +0000 (08:21 +0000)
committerueno <ueno>
Thu, 20 Apr 2006 08:21:32 +0000 (08:21 +0000)
pgg-epg.el

index 39167da..345cc7c 100644 (file)
@@ -67,9 +67,12 @@ passphrase cache or user."
        (setq cipher
              (epg-encrypt-string context
                                  (buffer-substring start end)
-                                 (if pgg-encrypt-for-me
-                                     (cons pgg-default-user-id recipients)
-                                   recipients)
+                                 (mapcar
+                                  (lambda (recipient)
+                                    (car (epg-list-keys recipient)))
+                                  (if pgg-encrypt-for-me
+                                      (cons pgg-default-user-id recipients)
+                                    recipients))
                                  sign t)
              pgg-epg-secret-key-id-list nil)
       (error