From cd648a8bb7522088118ae0f1c8269c0afab19f38 Mon Sep 17 00:00:00 2001 From: Vojtech Myslivec Date: Tue, 29 Jan 2019 01:33:25 +0100 Subject: [PATCH] Add cached Omnia file-challenge-response command --- crypto-wrapper.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crypto-wrapper.sh b/crypto-wrapper.sh index 97bfa0b..6e193a7 100755 --- a/crypto-wrapper.sh +++ b/crypto-wrapper.sh @@ -197,3 +197,10 @@ cached_command() { cached_atsha_serial() { cached_command string 'serial' 'atsha204cmd' 'serial-number' } + + +cached_atsha_challenge_response_file() { + local file="$1" + # this is wierd atsha204cmd interface... + echo "$file" | cached_command file "$file" 'atsha204cmd' 'file-challenge-response' +} -- GitLab