summaryrefslogtreecommitdiff
path: root/tools/assert_verify.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
commit05fa6dd7724ccfd1c183e6e4bf9d22eb12abea8c (patch)
tree71d3eccc33c93c230b021c72f1fb9cf2247bf6c0 /tools/assert_verify.c
parentb77d6ed4d47acbc836f05be0e9f4abeb104e21ff (diff)
parent173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (diff)
Update upstream source from tag 'upstream/1.5.0'
Update to upstream version '1.5.0' with Debian dir 102fd7ed15b138200444754d256b136933185ec2
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