summaryrefslogtreecommitdiff
path: root/src/psk.gaa
blob: 24660b14871173057767a76fea5e542669230f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#{

/* C declarations */

#include <config.h>
#ifdef _WIN32
# include <io.h>
#endif

void psktool_version(void);

#}

helpnode "PSKtool help\nUsage : psktool [options]"

#char *username;
option (u,username) STR "username" { $username = $1 } "specify username."

#char *passwd;
option (p, passwd) STR "FILE" { $passwd = $1 } "specify a password file."

#int key_size;
option (s, keysize) INT "SIZE" { $key_size = $1 } "specify the key size in bytes."

option (v, version) { psktool_version(); exit(0); } "prints the program's version number"
option (h, help) { gaa_help(); exit(0); } "shows this help text"

init { $username=NULL; $passwd=NULL; $key_size = NULL; }