From: Nikos Date: Thu, 10 Apr 2008 18:40:19 +0000 (+0300) Subject: do not return any subkey if an authentication subkey is not found X-Git-Tag: gnutls_2_3_5~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14e6ad515cd4bca5cee68efba35b7827badc2eb4;p=thirdparty%2Fgnutls.git do not return any subkey if an authentication subkey is not found --- diff --git a/lib/openpgp/pgp.c b/lib/openpgp/pgp.c index 09402ebd59..6ab31c1fa1 100644 --- a/lib/openpgp/pgp.c +++ b/lib/openpgp/pgp.c @@ -1531,5 +1531,5 @@ int gnutls_openpgp_crt_get_auth_subkey( gnutls_openpgp_crt_t crt, gnutls_openpgp } } - return 0; + return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE; }