* For DSA the bits returned are of the public exponent.
*
* Returns: a member of the #gnutls_pk_algorithm_t enumeration on
- * success, or a negative value on error.
+ * success, or GNUTLS_PK_UNKNOWN on error.
**/
gnutls_pk_algorithm_t
gnutls_openpgp_crt_get_pk_algorithm (gnutls_openpgp_crt_t key,
* For DSA the bits returned are of the public exponent.
*
* Returns: a member of the #gnutls_pk_algorithm_t enumeration on
- * success, or a negative value on error.
+ * success, or GNUTLS_PK_UNKNOWN on error.
*
* Since: 2.4.0
**/
*/
for (i = 0; i < subkeys; i++)
{
-
+ ret = gnutls_openpgp_crt_get_subkey_pk_algorithm(crt, i, NULL);
+ if (ret == GNUTLS_PK_UNKNOWN)
+ continue;
+
ret = gnutls_openpgp_crt_get_subkey_revoked_status (crt, i);
if (ret != 0) /* it is revoked. ignore it */
continue;