add ykpiv touchpolicy to ykpiv

This commit is contained in:
Klas Lindfors
2016-03-17 12:29:25 +01:00
parent 189fe723f1
commit f5fab7e962
+2 -1
View File
@@ -885,7 +885,8 @@ ykpiv_rc ykpiv_import_private_key(ykpiv_state *state, const unsigned char key, u
if (touch_policy != YKPIV_TOUCHPOLICY_DEFAULT &&
touch_policy != YKPIV_TOUCHPOLICY_NEVER &&
touch_policy != YKPIV_TOUCHPOLICY_ALWAYS)
touch_policy != YKPIV_TOUCHPOLICY_ALWAYS &&
touch_policy != YKPIV_TOUCHPOLICY_CACHED)
return YKPIV_GENERIC_ERROR;
if (algorithm == YKPIV_ALGO_RSA1024 || algorithm == YKPIV_ALGO_RSA2048) {