]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
do not return any subkey if an authentication subkey is not found
authorNikos <nmav@crystal.(none)>
Thu, 10 Apr 2008 18:40:19 +0000 (21:40 +0300)
committerNikos <nmav@crystal.(none)>
Thu, 10 Apr 2008 18:40:19 +0000 (21:40 +0300)
lib/openpgp/pgp.c

index 09402ebd59b64ec90650f970d13b1104d372e9e8..6ab31c1fa10441b7ae84bf0573b003d6d08525b0 100644 (file)
@@ -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;
 }