* mime-edit.el (mime-edit-sign-pgp-mime): Bind
[elisp/semi.git] / pgg-def.el
1 ;;; pgg-def.el --- functions/macros for defining PGG functions
2
3 ;; Copyright (C) 1999 Daiki Ueno
4
5 ;; Author: Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6 ;; Created: 1999/11/02
7 ;; Keywords: PGP, OpenPGP, GnuPG
8
9 ;; This file is part of SEMI (Secure Emacs MIME Interface).
10
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.
15
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.
20
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.
25
26 ;;; Code:
27
28 (require 'pcustom)
29
30 (defgroup pgg ()
31   "Glue for the various PGP implementations."
32   :group 'mime)
33
34 (defcustom pgg-default-scheme 'gpg
35   "Default PGP scheme"
36   :group 'symbol
37   :type 'string)
38
39 (defcustom pgg-default-user-id (user-login-name)
40   "User ID of your default identity."
41   :group 'pgg
42   :type 'string)
43
44 (defcustom pgg-default-keyserver-address "wwwkeys.pgp.net"
45   "Host name of keyserver."
46   :group 'pgg
47   :type 'string)
48
49 (defcustom pgg-encrypt-for-me nil
50   "Encrypt all outgoing messages with user's public key."
51   :group 'pgg
52   :type 'boolean)
53
54 (defcustom pgg-cache-passphrase t
55   "Cache passphrase"
56   :group 'pgg
57   :type 'boolean)
58
59 (defvar pgg-status-buffer " *PGG status*")
60 (defvar pgg-errors-buffer " *PGG errors*")
61 (defvar pgg-output-buffer " *PGG output*")
62
63 (defvar pgg-echo-buffer "*PGG-echo*")
64
65 (defvar pgg-scheme nil
66   "Current scheme of PGP implementation")
67
68 (defmacro pgg-truncate-key-identifier (key)
69   `(if (> (length ,key) 8) (substring ,key 8) ,key))
70
71 (provide 'pgg-def)
72
73 ;;; pgg-def.el ends here