diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-10-04 17:19:34 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-10-04 19:15:12 +0200 |
commit | b57de388c15ddf17deca4d55e35b64d4828637aa (patch) | |
tree | ebada6939452af17513763fc7594c0493bde3f79 /src | |
parent | 426b983180355d741fd4dabb8aa50c36d5d5d412 (diff) | |
download | gnutls-b57de388c15ddf17deca4d55e35b64d4828637aa.tar.gz |
Fix srptool issues
From 1fac0e5352e88addb8bf57dcac126918f19d7303 Mon Sep 17 00:00:00 2001
From: Attila Molnar <attilamolnar@hush.com>
Date: Tue, 1 Oct 2013 13:40:01 +0200
Subject: [PATCH 1/2] srptool: Fix inability to add users to tpasswd and broken
-i switch
Signed-off-by: Attila Molnar <attilamolnar@hush.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/srptool-args.def | 2 | ||||
-rw-r--r-- | src/srptool.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/srptool-args.def b/src/srptool-args.def index 5794ff432a..cb78e3b0a6 100644 --- a/src/srptool-args.def +++ b/src/srptool-args.def @@ -18,6 +18,8 @@ short-usage = "srptool [options]\nsrptool --help for usage instructions.\n"; flag = { name = index; value = i; + arg-type = number; + arg-default = 1; descrip = "specify the index of the group parameters in tpasswd.conf to use."; doc = ""; }; diff --git a/src/srptool.c b/src/srptool.c index 49a62cf296..a0cfef10aa 100644 --- a/src/srptool.c +++ b/src/srptool.c @@ -492,7 +492,7 @@ int main (int argc, char **argv) return crypt_int (username, passwd, salt_size, - fpasswd_conf, fpasswd, VALUE_OPT_INDEX); + fpasswd_conf, fpasswd, OPT_VALUE_INDEX); } |