[prev in list] [next in list] [prev in thread] [next in thread]
List: gnutls-dev
Subject: [gnutls-devel] [PATCH 1/2] Fix srptool issues
From: "Attila Molnar" <attilamolnar () hush ! com>
Date: 2013-10-04 15:19:34
Message-ID: 20131004151934.EF6DF6018E () smtp ! hushmail ! com
[Download RAW message or body]
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>
---
src/srptool-args.def | 2 ++
src/srptool.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/srptool-args.def b/src/srptool-args.def
index 5794ff4..cb78e3b 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 b653034..7955b49 100644
--- a/src/srptool.c
+++ b/src/srptool.c
@@ -496,7 +496,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);
}
--
_______________________________________________
Gnutls-devel mailing list
Gnutls-devel@lists.gnutls.org
http://lists.gnupg.org/mailman/listinfo/gnutls-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic