2006-12-20 Daiki Ueno <ueno@unixuser.org>
* epa.el (epa-list-keys): Abolished PROTOCOL arg.
+ (epa-sign-file): Save the output to *.p7s or *.p7m file if
+ epa-protocol is CMS.
+ (epa-encrypt-file): Ditto.
2006-12-19 Daiki Ueno <ueno@unixuser.org>
(t
(throw 'done nil))))))))
(let ((signature (concat file
- (if (or epa-armor
- (not (memq mode '(nil t normal detached))))
- ".asc"
+ (if (eq epa-protocol 'OpenPGP)
+ (if (or epa-armor
+ (not (memq mode
+ '(nil t normal detached))))
+ ".asc"
+ (if (memq mode '(t detached))
+ ".sig"
+ ".gpg"))
(if (memq mode '(t detached))
- ".sig"
- ".gpg"))))
+ ".p7s"
+ ".p7m"))))
(context (epg-make-context epa-protocol)))
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)
(epa-select-keys (epg-make-context epa-protocol)
"Select recipients for encryption.
If no one is selected, symmetric encryption will be performed. ")))
- (let ((cipher (concat file (if epa-armor ".asc" ".gpg")))
+ (let ((cipher (concat file (if (eq epa-protocol 'OpenPGP)
+ (if epa-armor ".asc" ".gpg")
+ ".p7m")))
(context (epg-make-context epa-protocol)))
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)