summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos <nmav@crystal.(none)>2008-01-14 21:46:46 +0200
committerNikos <nmav@crystal.(none)>2008-01-14 21:46:46 +0200
commit96e185dfa51c7a3b12be3e6f0235bfc290518d2d (patch)
treee9e863213dd734e9204b8acbe9a67009f8b9e80a
parentecc8945d6535d47f08177ef545a9aff52063dff7 (diff)
downloadgnutls-96e185dfa51c7a3b12be3e6f0235bfc290518d2d.tar.gz
print more debugging info
-rw-r--r--libextra/gnutls_openpgp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c
index a3b0f7ef50..4503b2253c 100644
--- a/libextra/gnutls_openpgp.c
+++ b/libextra/gnutls_openpgp.c
@@ -82,7 +82,6 @@ _gnutls_map_cdk_rc (int rc)
}
}
-
static unsigned long
buftou32 (const uint8_t * buf)
{
@@ -110,7 +109,10 @@ openpgp_pk_to_gnutls_cert (gnutls_cert * cert, cdk_pkt_pubkey_t pk)
/* GnuTLS OpenPGP does not support ELG keys */
if (is_ELG (pk->pubkey_algo))
- return GNUTLS_E_UNWANTED_ALGORITHM;
+ {
+ gnutls_assert();
+ return GNUTLS_E_UNWANTED_ALGORITHM;
+ }
algo = is_DSA (pk->pubkey_algo) ? GNUTLS_PK_DSA : GNUTLS_PK_RSA;
cert->subject_pk_algorithm = algo;