| 1 |
;;; GnuTLS-extra --- Guile bindings for GnuTLS-EXTRA. |
| 2 |
;;; Copyright (C) 2007-2025 Free Software Foundation, Inc. |
| 3 |
;;; |
| 4 |
;;; This file is part of Guile-GnuTLS. |
| 5 |
;;; |
| 6 |
;;; This program is free software: you can redistribute it and/or modify |
| 7 |
;;; it under the terms of the GNU General Public License as published by |
| 8 |
;;; the Free Software Foundation, either version 3 of the License, or |
| 9 |
;;; (at your option) any later version. |
| 10 |
;;; |
| 11 |
;;; This program is distributed in the hope that it will be useful, |
| 12 |
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
;;; GNU General Public License for more details. |
| 15 |
;;; |
| 16 |
;;; You should have received a copy of the GNU General Public License |
| 17 |
;;; along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
;;; Written by Ludovic Courtès <[email protected]> |
| 20 |
|
| 21 |
(define-module (gnutls extra) |
| 22 |
|
| 23 |
:use-module (gnutls) |
| 24 |
|
| 25 |
:re-export (;; OpenPGP keys |
| 26 |
openpgp-certificate? |
| 27 |
openpgp-private-key? |
| 28 |
import-openpgp-certificate |
| 29 |
import-openpgp-private-key |
| 30 |
openpgp-certificate-id |
| 31 |
openpgp-certificate-id! |
| 32 |
openpgp-certificate-fingerprint |
| 33 |
openpgp-certificate-fingerprint! |
| 34 |
openpgp-certificate-name |
| 35 |
openpgp-certificate-names |
| 36 |
openpgp-certificate-algorithm |
| 37 |
openpgp-certificate-version |
| 38 |
openpgp-certificate-usage |
| 39 |
|
| 40 |
;; OpenPGP keyrings |
| 41 |
openpgp-keyring? |
| 42 |
import-openpgp-keyring |
| 43 |
openpgp-keyring-contains-key-id? |
| 44 |
|
| 45 |
;; certificate credentials |
| 46 |
set-certificate-credentials-openpgp-keys! |
| 47 |
|
| 48 |
;; enum->string functions |
| 49 |
openpgp-certificate-format->string |
| 50 |
|
| 51 |
;; enum values |
| 52 |
openpgp-certificate-format/raw |
| 53 |
openpgp-certificate-format/base64)) |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
;;; |
| 58 |
;;; This module will be removed in a future version. |
| 59 |
;;; |
| 60 |
|
| 61 |
(issue-deprecation-warning |
| 62 |
"The (gnutls extra) module is deprecated; use (gnutls) instead") |
| 63 |
|
| 64 |
|
| 65 |
;;; |
| 66 |
;;; Aliases kept for backward compatibility with GnuTLS 2.0.x. These aliases |
| 67 |
;;; are deprecated in 2.2 and should be removed in 2.4.x. |
| 68 |
;;; |
| 69 |
|
| 70 |
(define-public openpgp-public-key? openpgp-certificate?) |
| 71 |
(define-public import-openpgp-public-key import-openpgp-certificate) |
| 72 |
(define-public openpgp-public-key-id openpgp-certificate-id) |
| 73 |
(define-public openpgp-public-key-id! openpgp-certificate-id!) |
| 74 |
(define-public openpgp-public-key-fingerprint openpgp-certificate-fingerprint) |
| 75 |
(define-public openpgp-public-key-fingerprint! openpgp-certificate-fingerprint!) |
| 76 |
(define-public openpgp-public-key-name openpgp-certificate-name) |
| 77 |
(define-public openpgp-public-key-names openpgp-certificate-names) |
| 78 |
(define-public openpgp-public-key-algorithm openpgp-certificate-algorithm) |
| 79 |
(define-public openpgp-public-key-version openpgp-certificate-version) |
| 80 |
(define-public openpgp-public-key-usage openpgp-certificate-usage) |
| 81 |
|
| 82 |
(define-public openpgp-key-format->string openpgp-certificate-format->string) |
| 83 |
(define-public openpgp-key-format/raw openpgp-certificate-format/raw) |
| 84 |
(define-public openpgp-key-format/base64 openpgp-certificate-format/base64) |
| 85 |
|
| 86 |
|
| 87 |
;;; Local Variables: |
| 88 |
;;; mode: scheme |
| 89 |
;;; coding: utf-8 |
| 90 |
;;; End: |