Change release version from 21.4 to 22.1 throughout.
[emacs.git] / lisp / gnus / pgg-def.el
blobab82126f32e129e6bbe35d1f6c04e8da685b9e60
1 ;;; pgg-def.el --- functions/macros for defining PGG functions
3 ;; Copyright (C) 1999, 2003 Free Software Foundation, Inc.
5 ;; Author: Daiki Ueno <ueno@unixuser.org>
6 ;; Created: 1999/11/02
7 ;; Keywords: PGP, OpenPGP, GnuPG
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU 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.
26 ;;; Code:
28 (require 'custom)
30 (defgroup pgg ()
31 "Glue for the various PGP implementations."
32 :group 'mime
33 :version "22.1")
35 (defcustom pgg-default-scheme 'gpg
36 "Default PGP scheme."
37 :group 'pgg
38 :type '(choice (const :tag "GnuPG" gpg)
39 (const :tag "PGP 5" pgp5)
40 (const :tag "PGP" pgp)))
42 (defcustom pgg-default-user-id (user-login-name)
43 "User ID of your default identity."
44 :group 'pgg
45 :type 'string)
47 (defcustom pgg-default-keyserver-address "subkeys.pgp.net"
48 "Host name of keyserver."
49 :group 'pgg
50 :type 'string)
52 (defcustom pgg-query-keyserver nil
53 "Whether PGG queries keyservers for missing keys when verifying messages."
54 :version "22.1"
55 :group 'pgg
56 :type 'boolean)
58 (defcustom pgg-encrypt-for-me t
59 "If t, encrypt all outgoing messages with user's public key."
60 :group 'pgg
61 :type 'boolean)
63 (defcustom pgg-cache-passphrase t
64 "If t, cache passphrase."
65 :group 'pgg
66 :type 'boolean)
68 (defcustom pgg-passphrase-cache-expiry 16
69 "How many seconds the passphrase is cached.
70 Whether the passphrase is cached at all is controlled by
71 `pgg-cache-passphrase'."
72 :group 'pgg
73 :type 'integer)
75 (defvar pgg-messages-coding-system nil
76 "Coding system used when reading from a PGP external process.")
78 (defvar pgg-status-buffer " *PGG status*")
79 (defvar pgg-errors-buffer " *PGG errors*")
80 (defvar pgg-output-buffer " *PGG output*")
82 (defvar pgg-echo-buffer "*PGG-echo*")
84 (defvar pgg-scheme nil
85 "Current scheme of PGP implementation.")
87 (defmacro pgg-truncate-key-identifier (key)
88 `(if (> (length ,key) 8) (substring ,key 8) ,key))
90 (provide 'pgg-def)
92 ;;; arch-tag: c425f3ab-ed75-4055-bb46-431a418c94b7
93 ;;; pgg-def.el ends here