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