Added macro that indicates presence of the time callback feature. Also added C++...
[BearSSL] / tools / brssl.c
index 76f7539..91372b0 100644 (file)
@@ -51,6 +51,7 @@ usage(void)
        fprintf(stderr, "   ta           decode trust anchors\n");
        fprintf(stderr, "   chain        make C code for certificate chains\n");
        fprintf(stderr, "   twrch        run the Twrch protocol\n");
+       fprintf(stderr, "   impl         report on implementations\n");
 }
 
 int
@@ -108,6 +109,10 @@ main(int argc, char *argv[])
                } else {
                        return ret;
                }
+       } else if (eqstr(cmd, "impl")) {
+               if (do_impl(argc - 2, argv + 2) < 0) {
+                       return EXIT_FAILURE;
+               }
        } else {
                fprintf(stderr, "unknown command: '%s'\n", cmd);
                usage();