always enable keygen

This commit is contained in:
NIIBE Yutaka
2015-07-18 13:55:01 +09:00
parent be5c052531
commit edf1a0cdd7
8 changed files with 15 additions and 35 deletions

View File

@@ -620,12 +620,7 @@ cmd_pgp_gakp (void)
{
if (!ac_check_status (AC_ADMIN_AUTHORIZED))
GPG_SECURITY_FAILURE ();
#ifdef KEYGEN_SUPPORT
/* Generate key pair */
gpg_do_keygen (apdu.cmd_apdu_data[0]);
#else
GPG_FUNCTION_NOT_SUPPORTED ();
#endif
}
}