1 |
nmav |
1.1 |
helpnode "Usage : shash [options] file1 file2 ...\n" |
2 |
|
|
|
3 |
|
|
#int quiet; |
4 |
nmav |
1.3 |
option (V, verbose) { $quiet = 0 } "some more information is displayed." |
5 |
nmav |
1.1 |
option (q, quiet) { $quiet = 2 } "suppress some non critical warnings." |
6 |
|
|
|
7 |
|
|
#int nosalt; |
8 |
|
|
option (nosalt) { $nosalt = 1 } "Do not use salt." |
9 |
|
|
|
10 |
nmav |
1.2 |
#int show_time; |
11 |
|
|
option (time) { $show_time = 1 } "Show time elapsed." |
12 |
|
|
|
13 |
nmav |
1.1 |
#int hmac; |
14 |
|
|
option (m, hmac) { $hmac = 1 } "Use password to hash (hmac)." |
15 |
|
|
|
16 |
|
|
#int double_check; |
17 |
|
|
option (d, doublecheck) { $double_check = 1 } "Double check passwords." |
18 |
|
|
|
19 |
|
|
#int check; |
20 |
|
|
option (c, check) { $check = 1 } "check files." |
21 |
|
|
|
22 |
|
|
#int binary; |
23 |
|
|
option (b, binary) { $binary = 1 } "treat input files as binary." |
24 |
|
|
|
25 |
|
|
#int text; |
26 |
|
|
option (t, text) { $text = 1 } "treat input files as text." |
27 |
|
|
|
28 |
|
|
#char *kmode; |
29 |
|
|
option (o, keymode) STR "kmode" { $kmode = $1 } "keyword mode" |
30 |
|
|
"Use the --listkeygen parameter to view all supported modes." |
31 |
|
|
|
32 |
|
|
#int config; |
33 |
|
|
#char *config_file; |
34 |
|
|
option (i, config) STR "config" { $config=1; if (@1==1) $config_file = $1 } "Use configuration file FILE." |
35 |
|
|
|
36 |
|
|
#char *algorithm; |
37 |
|
|
option (a, algorithm) STR "algorithm" { $algorithm = $1 } "specify the algorithm. " |
38 |
|
|
"Use the --list parameter to show the supported algorithms." |
39 |
|
|
|
40 |
|
|
option (l, list) { hash_list(); } "Prints a list of the algorithms supported." |
41 |
|
|
|
42 |
|
|
#char *keys; |
43 |
|
|
option (k, key) STR "key" { $keys = $1; } "specify the key" |
44 |
|
|
|
45 |
|
|
|
46 |
|
|
option (listkeygen) { list_keygen_algorithms(); exit(0); } "Prints a list of the key generation algorithms supported." |
47 |
|
|
option (h, help) { gaa_help(); exit(0); } "prints this help" |
48 |
nmav |
1.3 |
option (v, version) { hash_version(); exit(0); } "prints the version number" |
49 |
nmav |
1.1 |
option (L, license) { hash_license(); exit(0); } "displays license information." |
50 |
|
|
|
51 |
|
|
#int size; |
52 |
|
|
#char **input; |
53 |
|
|
rest optional *STR "file1 file2...fileN" { $input = $1; $size = @1 } |
54 |
|
|
|
55 |
|
|
init { $quiet=1; $config=0; $kmode = NULL; $hmac = 0; |
56 |
|
|
$algorithm=NULL; $keys=NULL; $config_file=NULL; $input=NULL; |
57 |
nmav |
1.3 |
$double_check=0; $nosalt=0; $check=0; $text=0; |
58 |
nmav |
1.2 |
$binary=0; $show_time=0; } |
59 |
nmav |
1.1 |
|
60 |
|
|
INCOMP bt |