summaryrefslogtreecommitdiff
path: root/tools/assert_verify.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
commit173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (patch)
treeb97833d8754f257f92d99dd2f5c9e9d557e3f689 /tools/assert_verify.c
parent75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff)
New upstream version 1.5.0
Diffstat (limited to 'tools/assert_verify.c')
-rw-r--r--tools/assert_verify.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/tools/assert_verify.c b/tools/assert_verify.c
index ccff57a..fb96b65 100644
--- a/tools/assert_verify.c
+++ b/tools/assert_verify.c
@@ -175,16 +175,8 @@ assert_verify(int argc, char **argv)
175 175
176 in_f = open_read(in_path); 176 in_f = open_read(in_path);
177 177
178 if (argc > 1) { 178 if (argc > 1 && cose_type(argv[1], &type) < 0)
179 if (strcmp(argv[1], "es256") == 0) 179 errx(1, "unknown type %s", argv[1]);
180 type = COSE_ES256;
181 else if (strcmp(argv[1], "rs256") == 0)
182 type = COSE_RS256;
183 else if (strcmp(argv[1], "eddsa") == 0)
184 type = COSE_EDDSA;
185 else
186 errx(1, "unknown type %s", argv[1]);
187 }
188 180
189 fido_init((flags & FLAG_DEBUG) ? FIDO_DEBUG : 0); 181 fido_init((flags & FLAG_DEBUG) ? FIDO_DEBUG : 0);
190 182