diff options
author | Nikos <nmav@crystal.(none)> | 2008-01-14 21:46:46 +0200 |
---|---|---|
committer | Nikos <nmav@crystal.(none)> | 2008-01-14 21:46:46 +0200 |
commit | 96e185dfa51c7a3b12be3e6f0235bfc290518d2d (patch) | |
tree | e9e863213dd734e9204b8acbe9a67009f8b9e80a | |
parent | ecc8945d6535d47f08177ef545a9aff52063dff7 (diff) | |
download | gnutls-96e185dfa51c7a3b12be3e6f0235bfc290518d2d.tar.gz |
print more debugging info
-rw-r--r-- | libextra/gnutls_openpgp.c | 6 |
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; |