(pgg-scheme): Remove all slots.
authorueno <ueno>
Wed, 3 Nov 1999 06:53:14 +0000 (06:53 +0000)
committerueno <ueno>
Wed, 3 Nov 1999 06:53:14 +0000 (06:53 +0000)
(pgg-decrypt-codition): Rename tag `cipher-algorithm' to
`symmetric-key-algorithm'.
(lookup-key): Add documentation to the new generic function.

pgg.el

diff --git a/pgg.el b/pgg.el
index dbd6bf1..cc9dde3 100644 (file)
--- a/pgg.el
+++ b/pgg.el
@@ -68,7 +68,7 @@
 
 (ctree-set-calist-strictly
  'pgg-decrypt-codition
- '((cipher-algorithm IDEA)(public-key-algorithm RSA)
+ '((public-key-algorithm RSA)(symmetric-key-algorithm IDEA)
    (scheme . pgp)))
 
 (ctree-set-calist-strictly
@@ -80,8 +80,8 @@
 
 (ctree-set-calist-strictly
  'pgg-decrypt-codition
- '((cipher-algorithm 3DES CAST5 IDEA)
-   (public-key-algorithm RSA ELG DSA)
+ '((public-key-algorithm RSA ELG DSA)
+   (symmetric-key-algorithm 3DES CAST5 IDEA)
    (scheme . pgp5)))
 
 (ctree-set-calist-strictly
 (ctree-set-calist-strictly
  'pgg-decrypt-codition
  '((public-key-algorithm ELG-E DSA ELG)
-   (cipher-algorithm 3DES CAST5 BLOWFISH TWOFISH)
+   (symmetric-key-algorithm 3DES CAST5 BLOWFISH TWOFISH)
    (scheme . gpg)))
 
 ;;; @ definition of the implementation scheme
 ;;;
 
 (eval-and-compile
-  (luna-define-class pgg-scheme ()
-                    (message-beginning-line
-                     message-end-line
-                     signed-beginning-line
-                     signed-end-line
-                     key-beginning-line
-                     key-end-line
-                     ))
+  (luna-define-class pgg-scheme ())
 
   (luna-define-internal-accessors 'pgg-scheme)
   )
 
+(luna-define-generic lookup-key (scheme string)
+  "Search keys associated with STRING")
+
 (luna-define-generic encrypt-region (scheme start end recipients)
   "Encrypt the current region between START and END.")
 
@@ -133,28 +129,6 @@ as the detached signature SIGNATURE.")
   "Add all public keys in region between START 
 and END to the keyring.")
 
-(defvar pgg-scheme-message-delimiters
-  '(:message-beginning-line 
-    "^-----BEGIN PGP MESSAGE-----\r?$"
-    :message-end-line 
-    "^-----END PGP MESSAGE-----\r?$"
-    :signed-beginning-line 
-    "^-----BEGIN PGP SIGNED MESSAGE-----\r?$"
-    :signed-end-line
-    "^-----END PGP SIGNATURE-----\r?$"
-    :key-beginning-line 
-    "^-----BEGIN PGP PUBLIC KEY BLOCK-----\r?$"
-    :key-end-line 
-    "^-----END PGP PUBLIC KEY BLOCK-----\r?$")
-  "Message delimiters")
-
-(luna-define-method initialize-instance :before ((scheme pgg-scheme) 
-                                                &rest init-args)
-  (let ((luna-current-method-arguments 
-        (cons scheme (or init-args  
-                         pgg-scheme-message-delimiters))))
-    (luna-call-next-method)))
-
 ;;; @ interface functions
 ;;;