summaryrefslogtreecommitdiff
path: root/tools/assert_verify.c
diff options
context:
space:
mode:
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