aboutsummaryrefslogtreecommitdiffstats
path: root/src/apps/apps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/apps.cpp')
-rw-r--r--src/apps/apps.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/apps/apps.cpp b/src/apps/apps.cpp
new file mode 100644
index 000000000..120457cb1
--- /dev/null
+++ b/src/apps/apps.cpp
@@ -0,0 +1,27 @@
+#include "apps.h"
+
+int apps_main(const std::string& cmd, int argc, char* argv[])
+ {
+#define CALL_APP(cmdsym) \
+ do { if(cmd == #cmdsym) { return cmdsym ##_main (argc - 1, argv + 1); } } while(0)
+
+ CALL_APP(asn1);
+ CALL_APP(base64);
+ CALL_APP(bcrypt);
+ CALL_APP(bzip);
+ CALL_APP(ca);
+ CALL_APP(factor);
+ CALL_APP(fpe);
+ CALL_APP(hash);
+ CALL_APP(keygen);
+ CALL_APP(dsa_sign);
+ CALL_APP(dsa_verify);
+ CALL_APP(pkcs10);
+ CALL_APP(read_ssh);
+ CALL_APP(self_sig);
+ CALL_APP(tls_client);
+ CALL_APP(tls_server);
+ CALL_APP(x509);
+
+ return -1;
+ }