summaryrefslogtreecommitdiff
path: root/src/psk.gaa
blob: 9b4cc31f5a42c739c0548cedce8f192f1e2d42d2 (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
30
31
#{

/* 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."

#char *netconf_hint;
option (n, netconf-hint) STR "HINT" { $netconf_hint = $1 } "derive key from Netconf password, using HINT as the psk_identity_hint."

#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 = 0; $netconf_hint = NULL; }