more cleanups
[gnutls.git] / src / crypt.gaa
blobfc5b5e0dbd26effce5c90a52546f75e490dcc71d
1 helpnode "Srpcrypt help\nUsage : srpcrypt [options]"
3 #char *username;
4 option (u,username) STR "username" { $username = $1 } "specify username."
6 #char *passwd;
7 option (p, passwd) STR "FILE" { $passwd = $1 } "specify a password file."
9 #int index;
10 option (i, index) INT "INDEX" { $index = $1 } "specify the index of the parameters in tpasswd.conf to use."
12 #char *crypt;
13 option (c, crypt) STR "CRYPT" { $crypt = $1 } "specify crypt algorithm (bcrypt/srpsha)."
15 #int salt;
16 option (s, salt) INT "SALT" { $salt = $1 } "specify salt/cost size for crypt algorithm."
18 #int verify;
19 option (verify) { $verify = 1 } "just verify password."
21 #char *passwd_conf;
22 option ( passwd_conf) STR "FILE" { $passwd_conf = $1 } "specify a password conf file."
24 #char *create_conf;
25 option ( create_conf) STR "FILE" { $create_conf = $1 } "Generate a tpasswd.conf file."
27 #int bits;
28 option (bits) INT "BITS" { $bits = $1 } "specify the number of bits for prime numbers (used only when create_conf option is specified)."
30 option (h, help) { gaa_help(); exit(0); } "shows this help text"
32 init { $username=NULL; $passwd=NULL; $crypt=NULL; $salt=0;
33        $create_conf=NULL; $passwd_conf=NULL; $verify = 0; $bits=1040; 
34        $index = 1; }