summaryrefslogtreecommitdiff
path: root/lib/verify-tofu.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-17 21:39:57 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-17 21:40:19 +0200
commit76629f3b1995f626c46c2c6f97f73dd8c84ba0e5 (patch)
tree29f19daeec50b75543b7ad9a43d691f910e03c48 /lib/verify-tofu.c
parent20ccd1e7b0d639ea23f1c3cfad2bb4ecf906bbca (diff)
downloadgnutls-76629f3b1995f626c46c2c6f97f73dd8c84ba0e5.tar.gz
Use openpgp if enabled.
Diffstat (limited to 'lib/verify-tofu.c')
-rw-r--r--lib/verify-tofu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c
index b2a34af2bf..5b2ce17205 100644
--- a/lib/verify-tofu.c
+++ b/lib/verify-tofu.c
@@ -440,6 +440,7 @@ cleanup:
static int pgp_crt_to_raw_pubkey(const gnutls_datum_t * cert, gnutls_datum_t *rpubkey)
{
+#ifdef ENABLE_OPENPGP
gnutls_openpgp_crt_t crt = NULL;
gnutls_pubkey_t pubkey = NULL;
size_t size;
@@ -503,6 +504,9 @@ cleanup:
gnutls_pubkey_deinit(pubkey);
return ret;
+#else
+ return GNUTLS_E_UNIMPLEMENTED_FEATURE;
+#endif
}
static