Tizen 2.0 Release
[external/libgnutls26.git] / guile / modules / gnutls / extra.scm
1 ;;; GnuTLS-extra --- Guile bindings for GnuTLS-EXTRA.
2 ;;; Copyright (C) 2007, 2010 Free Software Foundation, Inc.
3 ;;;
4 ;;; GnuTLS-extra is free software; you can redistribute it and/or modify
5 ;;; it under the terms of the GNU General Public License as published by
6 ;;; the Free Software Foundation; either version 3 of the License, or
7 ;;; (at your option) any later version.
8 ;;;
9 ;;; GnuTLS-extra is distributed in the hope that it will be useful,
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ;;; GNU General Public License for more details.
13 ;;;
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with GnuTLS-EXTRA; if not, write to the Free Software
16 ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 ;;; USA.
18
19 ;;; Written by Ludovic Courtès <ludo@gnu.org>
20
21 (define-module (gnutls extra)
22
23 ;;; Important note: As written above, this part of the code is ditributed
24 ;;; under the GPL, not the LGPL.
25
26   :use-module (gnutls)
27
28   :export (;; OpenPGP keys
29            openpgp-certificate? openpgp-private-key?
30            import-openpgp-certificate import-openpgp-private-key
31            openpgp-certificate-id openpgp-certificate-id!
32            openpgp-certificate-fingerprint openpgp-certificate-fingerprint!
33            openpgp-certificate-name openpgp-certificate-names
34            openpgp-certificate-algorithm openpgp-certificate-version
35            openpgp-certificate-usage
36
37            ;; OpenPGP keyrings
38            openpgp-keyring? import-openpgp-keyring
39            openpgp-keyring-contains-key-id?
40
41            ;; certificate credentials
42            set-certificate-credentials-openpgp-keys!
43
44            ;; enum->string functions
45            openpgp-certificate-format->string
46
47            ;; enum values
48            openpgp-certificate-format/raw
49            openpgp-certificate-format/base64))
50
51
52 (load-extension "libguile-gnutls-extra-v-1" "scm_init_gnutls_extra")
53
54 \f
55 ;;;
56 ;;; Aliases kept for backward compatibility with GnuTLS 2.0.x.  These aliases
57 ;;; are deprecated in 2.2 and should be removed in 2.4.x.
58 ;;;
59
60 (define-public openpgp-public-key? openpgp-certificate?)
61 (define-public import-openpgp-public-key import-openpgp-certificate)
62 (define-public openpgp-public-key-id openpgp-certificate-id)
63 (define-public openpgp-public-key-id! openpgp-certificate-id!)
64 (define-public openpgp-public-key-fingerprint openpgp-certificate-fingerprint)
65 (define-public openpgp-public-key-fingerprint! openpgp-certificate-fingerprint!)
66 (define-public openpgp-public-key-name openpgp-certificate-name)
67 (define-public openpgp-public-key-names openpgp-certificate-names)
68 (define-public openpgp-public-key-algorithm openpgp-certificate-algorithm)
69 (define-public openpgp-public-key-version openpgp-certificate-version)
70 (define-public openpgp-public-key-usage openpgp-certificate-usage)
71
72 (define-public openpgp-key-format->string openpgp-certificate-format->string)
73 (define-public openpgp-key-format/raw openpgp-certificate-format/raw)
74 (define-public openpgp-key-format/base64 openpgp-certificate-format/base64)
75
76
77 ;;; Local Variables:
78 ;;; mode: scheme
79 ;;; coding: latin-1
80 ;;; End: