add touch-policy cached
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ option "valid-days" - "Time (in days) until the self-signed certificate expires"
|
||||
option "pin" P "Pin/puk code for verification" string optional
|
||||
option "new-pin" N "New pin/puk code for changing" string optional dependon="pin"
|
||||
option "pin-policy" - "Set pin policy for action generate or import-key" values="never","once","always" enum optional
|
||||
option "touch-policy" - "Set touch policy for action generate, import-key or set-mgm-key" values="never","always" enum optional
|
||||
option "touch-policy" - "Set touch policy for action generate, import-key or set-mgm-key" values="never","always","cached" enum optional
|
||||
option "id" - "Id of object for write/read object" int optional
|
||||
option "format" f "Format of data for write/read object" values="hex","base64","binary" enum optional default="hex"
|
||||
option "sign" - "Sign data" flag off hidden
|
||||
|
||||
@@ -604,6 +604,8 @@ unsigned char get_touch_policy(enum enum_touch_policy policy) {
|
||||
return YKPIV_TOUCHPOLICY_NEVER;
|
||||
case touch_policy_arg_always:
|
||||
return YKPIV_TOUCHPOLICY_ALWAYS;
|
||||
case touch_policy_arg_cached:
|
||||
return YKPIV_TOUCHPOLICY_CACHED;
|
||||
case touch_policy__NULL:
|
||||
default:
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user