keygen is configure option

This commit is contained in:
NIIBE Yutaka
2012-06-13 09:07:26 +09:00
parent ec0297050a
commit 956e89d10a
10 changed files with 56 additions and 6 deletions

View File

@@ -483,8 +483,12 @@ 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
}
}