Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Crypto Wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Turris
Crypto Wrapper
Commits
95caf7a7
Verified
Commit
95caf7a7
authored
Feb 03, 2019
by
Vojtech Myslivec
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add serial-number wrapper function
parent
f8fa598a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
crypto-wrapper.sh
crypto-wrapper.sh
+21
-0
No files found.
crypto-wrapper.sh
View file @
95caf7a7
...
...
@@ -292,3 +292,24 @@ get_device_type(){
esac
}
# --------------------------------------------------------------------
do_serial
()
{
local
device_type
cache_init
device_type
=
$(
get_device_type
)
if
[
"
$device_type
"
=
"
$TYPE_ATSHA
"
]
;
then
debug
"Call atsha serial-number"
cached_atsha_serial
elif
[
"
$device_type
"
=
"
$TYPE_OTP
"
]
;
then
debug
"Call otp serial-number"
cached_otp_serial
else
error
"Unsupported device_type '
$device_type
'"
return
2
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment