1 ;;; pgg-def.el --- functions/macros for defining PGG functions
3 ;; Copyright (C) 1999, 2002, 2003, 2004, 2005,
4 ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 ;; Author: Daiki Ueno <ueno@unixuser.org>
8 ;; Keywords: PGP, OpenPGP, GnuPG
10 ;; Obsolete-since: 24.1
12 ;; This file is part of GNU Emacs.
14 ;; GNU Emacs is free software: you can redistribute it and/or modify
15 ;; it under the terms of the GNU General Public License as published by
16 ;; the Free Software Foundation, either version 3 of the License, or
17 ;; (at your option) any later version.
19 ;; GNU Emacs is distributed in the hope that it will be useful,
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;; GNU General Public License for more details.
24 ;; You should have received a copy of the GNU General Public License
25 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
30 "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 "subkeys.pgp.net"
47 "Host name of keyserver."
51 (defcustom pgg-query-keyserver nil
52 "Whether PGG queries keyservers for missing keys when verifying messages."
57 (defcustom pgg-encrypt-for-me t
58 "If t, encrypt all outgoing messages with user's public key."
62 (defcustom pgg-cache-passphrase t
63 "If t, cache passphrase."
67 (defcustom pgg-passphrase-cache-expiry 16
68 "How many seconds the passphrase is cached.
69 Whether the passphrase is cached at all is controlled by
70 `pgg-cache-passphrase'."
74 (defcustom pgg-passphrase-coding-system nil
75 "Coding system to encode passphrase."
79 (defvar pgg-messages-coding-system nil
80 "Coding system used when reading from a PGP external process.")
82 (defvar pgg-status-buffer " *PGG status*")
83 (defvar pgg-errors-buffer " *PGG errors*")
84 (defvar pgg-output-buffer " *PGG output*")
86 (defvar pgg-echo-buffer "*PGG-echo*")
88 (defvar pgg-scheme nil
89 "Current scheme of PGP implementation.")
91 (defvar pgg-text-mode nil
92 "If t, inform the recipient that the input is text.")
94 (defmacro pgg-truncate-key-identifier (key)
95 `(if (> (length ,key) 8) (substring ,key -8) ,key))
99 ;;; pgg-def.el ends here