From: Nikos Mavrogiannopoulos Date: Tue, 17 Apr 2012 19:39:57 +0000 (+0200) Subject: Use openpgp if enabled. X-Git-Tag: gnutls_3_0_21~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfedb373f4b53da3380d29177b3a20e8d133589a;p=thirdparty%2Fgnutls.git Use openpgp if enabled. --- 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