diff options
author | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
commit | 8b0cbccc7b11e545ed27bc6d7bda04b5cf632e60 (patch) | |
tree | 7ea9368d6ccaa85337a63b55e8bd15efa46fd357 /src/cmd/bcrypt.cpp | |
parent | 67161b91163afad417f9483cb557b26c5f5f4bc0 (diff) |
Command line prog cleanup
Diffstat (limited to 'src/cmd/bcrypt.cpp')
-rw-r--r-- | src/cmd/bcrypt.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cmd/bcrypt.cpp b/src/cmd/bcrypt.cpp index 2b4b4e61d..30b0c425a 100644 --- a/src/cmd/bcrypt.cpp +++ b/src/cmd/bcrypt.cpp @@ -3,7 +3,9 @@ #if defined(BOTAN_HAS_BCRYPT) #include <botan/bcrypt.h> -int bcrypt_main(int argc, char* argv[]) +namespace { + +int bcrypt(int argc, char* argv[]) { if(argc == 2) { @@ -32,6 +34,9 @@ int bcrypt_main(int argc, char* argv[]) << " " << argv[0] << " password passhash\n"; return 1; } -#else -UNIMPLEMENTED(bcrypt_main, "bcrypt"); + +REGISTER_APP(bcrypt); + +} + #endif |