summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <nonso@insicuri.net>2016-11-29 21:59:11 +0100
committerSeppia <nonso@insicuri.net>2016-11-29 21:59:11 +0100
commit0701d155932e19bea1bc425f5e5a5bbfd3989c79 (patch)
tree9fe5f56c13525dbc00763cf64b2d4faaa13d046a
parentbfca5fa4b485d9c3b4e8d67755268b2eeb69ee0c (diff)
downloadonetimebluh-0701d155932e19bea1bc425f5e5a5bbfd3989c79.tar.gz
onetimebluh-0701d155932e19bea1bc425f5e5a5bbfd3989c79.tar.bz2
onetimebluh-0701d155932e19bea1bc425f5e5a5bbfd3989c79.zip
changed options key-get to gen-key and short for nbytes from b to n
-rw-r--r--src/onetimebluh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index 877de29..0823f4d 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -30,21 +30,18 @@ int main(int argc, char* argv[]) {
{"decrypt", required_argument, 0, 'd'},
{"encrypt", required_argument, 0, 'e'},
{"key-file", required_argument, 0, 'k'},
- {"key-gen", no_argument, 0, 'g'},
+ {"gen-key", no_argument, 0, 'g'},
{"help", no_argument, 0, 'h'},
- {"nbytes", required_argument, 0, 'b'},
+ {"nbytes", required_argument, 0, 'n'},
{"output", required_argument, 0, 'o'},
{"tear-page", no_argument, 0, 't'},
{0, 0, 0, 0},
};
- if ((opt = getopt_long(argc, argv, "b:d:e:ghk:o:t", options, &option_index)) == -1)
+ if ((opt = getopt_long(argc, argv, "d:e:ghk:n:o:t", options, &option_index)) == -1)
break;
switch (opt) {
- case 'b':
- nbytes = atoi(argv[optind-1]);
- break;
case 'd':
message = argv[optind-1];
command++;
@@ -72,6 +69,9 @@ int main(int argc, char* argv[]) {
error(errno, errno, keyfile);
}
break;
+ case 'n':
+ nbytes = atoi(argv[optind-1]);
+ break;
case 'o':
output = argv[optind-1];
break;