Update `NEWS'.
[gnutls.git] / src / crypt.gaa
blob11b461e3673e2c56f37480895339a68961f9db45
1 #{
3 /* C declarations */
5 #include <config.h>
6 #ifdef _WIN32
7 # include <io.h>
8 #endif
10 void srptool_version(void);
14 helpnode "Srptool help\nUsage : srptool [options]"
16 #char *username;
17 option (u,username) STR "username" { $username = $1 } "specify username."
19 #char *passwd;
20 option (p, passwd) STR "FILE" { $passwd = $1 } "specify a password file."
22 #int index;
23 option (i, index) INT "INDEX" { $index = $1 } "specify the index of the parameters in tpasswd.conf to use."
25 #int salt;
26 option (s, salt) INT "SALT" { $salt = $1 } "specify salt size for crypt algorithm."
28 #int verify;
29 option (verify) { $verify = 1 } "just verify password."
31 #char *passwd_conf;
32 option (c, passwd-conf) STR "FILE" { $passwd_conf = $1 } "specify a password conf file."
34 #char *create_conf;
35 option ( create-conf) STR "FILE" { $create_conf = $1 } "Generate a tpasswd.conf file."
37 option (v, version) { srptool_version(); exit(0); } "prints the program's version number"
38 option (h, help) { gaa_help(); exit(0); } "shows this help text"
40 init { $username=NULL; $passwd=NULL; $salt=0;
41        $create_conf=NULL; $passwd_conf=NULL; $verify = 0; 
42        $index = 1; }