From: Nikos Mavrogiannopoulos Date: Sat, 31 Dec 2011 17:32:30 +0000 (+0200) Subject: CDK_EOF error code now returns GNUTLS_E_PARSING_ERROR X-Git-Tag: gnutls_3_0_10~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d07a85c2437d5ce1c197d692ce9052eedff1f488;p=thirdparty%2Fgnutls.git CDK_EOF error code now returns GNUTLS_E_PARSING_ERROR --- diff --git a/lib/openpgp/gnutls_openpgp.c b/lib/openpgp/gnutls_openpgp.c index 0ceca8faa5..d344b18225 100644 --- a/lib/openpgp/gnutls_openpgp.c +++ b/lib/openpgp/gnutls_openpgp.c @@ -44,6 +44,8 @@ _gnutls_map_cdk_rc (int rc) { case CDK_Success: return 0; + case CDK_EOF: + return GNUTLS_E_PARSING_ERROR; case CDK_Too_Short: return GNUTLS_E_SHORT_MEMORY_BUFFER; case CDK_General_Error: