diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-04-15 10:11:35 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-04-15 10:11:35 +0200 |
commit | 65a0ae8546af765adf7081c68c5824a6e5233a86 (patch) | |
tree | 9b8c1c5d58516599076da478163a55042fee37fa | |
parent | ad6140a8bef0f28aa2b1caeb915ebb91591524b8 (diff) | |
download | gnutls-65a0ae8546af765adf7081c68c5824a6e5233a86.tar.gz |
Improve error messages.
See <http://trac.gnutls.org/cgi-bin/trac.cgi/ticket/26>.
-rw-r--r-- | lib/openpgp/pgp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/openpgp/pgp.c b/lib/openpgp/pgp.c index 8397676a08..7f9489ea0e 100644 --- a/lib/openpgp/pgp.c +++ b/lib/openpgp/pgp.c @@ -117,7 +117,10 @@ gnutls_openpgp_crt_import (gnutls_openpgp_crt_t key, cdk_stream_close (inp); if (rc) { - rc = _gnutls_map_cdk_rc (rc); + if (rc == CDK_Inv_Packet) + rc = GNUTLS_E_OPENPGP_GETKEY_FAILED; + else + rc = _gnutls_map_cdk_rc (rc); gnutls_assert (); return rc; } |