1 ;;; pgg-def.el --- functions/macros for defining PGG functions
3 ;; Copyright (C) 1999 Free Software Foundation, Inc.
5 ;; Author: Daiki Ueno <ueno@unixuser.org>
7 ;; Keywords: PGP, OpenPGP, GnuPG
9 ;; This file is part of SEMI (Secure Emacs MIME Interface).
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
31 "Glue for the various PGP implementations."
34 (defcustom pgg-default-scheme 'gpg
37 :type '(choice (const :tag "GnuPG" gpg)
38 (const :tag "PGP 5" pgp5)
39 (const :tag "PGP" pgp)))
41 (defcustom pgg-default-user-id (user-login-name)
42 "User ID of your default identity."
46 (defcustom pgg-default-keyserver-address "wwwkeys.pgp.net"
47 "Host name of keyserver."
51 (defcustom pgg-encrypt-for-me nil
52 "If t, encrypt all outgoing messages with user's public key."
56 (defcustom pgg-cache-passphrase t
57 "If t, cache passphrase."
61 (defvar pgg-messages-coding-system nil
62 "Coding system used when reading from a PGP external process.")
64 (defvar pgg-status-buffer " *PGG status*")
65 (defvar pgg-errors-buffer " *PGG errors*")
66 (defvar pgg-output-buffer " *PGG output*")
68 (defvar pgg-echo-buffer "*PGG-echo*")
70 (defvar pgg-scheme nil
71 "Current scheme of PGP implementation.")
73 (defmacro pgg-truncate-key-identifier (key)
74 `(if (> (length ,key) 8) (substring ,key 8) ,key))
78 ;;; pgg-def.el ends here