Ver código fonte

opensc: fix help output of openpgp-tool

A comma sign was left-out when re-basing the GnuK patch on top of opensc.
Also order options more intuitively, put --do last.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle 10 anos atrás
pai
commit
678fc8edc6

+ 6
- 6
utils/opensc/patches/0006-openpgp-tool-Support-deleting-key-in-Gnuk.patch Ver arquivo

@@ -28,22 +28,22 @@ index de1c9d4..374819a 100644
28 28
  
29 29
  static const char *app_name = "openpgp-tool";
30 30
  
31
-@@ -99,6 +101,7 @@ static const struct option options[] = {
31
+@@ -98,6 +100,7 @@ static const struct option options[] = {
32
+ 	{ "erase",     no_argument,       NULL, 'E'        },
32 33
  	{ "verify",    required_argument, NULL, OPT_VERIFY },
33 34
  	{ "pin",       required_argument, NULL, OPT_PIN },
34
- 	{ "do",        required_argument, NULL, 'd' },
35 35
 +	{ "del-key",   required_argument, NULL, OPT_DELKEY },
36
+ 	{ "do",        required_argument, NULL, 'd' },
36 37
  	{ NULL, 0, NULL, 0 }
37 38
  };
38
- 
39
-@@ -119,6 +122,7 @@ static const char *option_help[] = {
39
+@@ -118,6 +121,7 @@ static const char *option_help[] = {
40
+ /* E */	"Erase (reset) the card",
40 41
  	"Verify PIN (CHV1, CHV2, CHV3...)",
41 42
  	"PIN string",
43
++	"Delete key (1, 2, 3 or all)",
42 44
  /* d */ "Dump private data object number <arg> (i.e. PRIVATE-DO-<arg>)"
43
-+	"Delete key (1, 2, 3 or all)"
44 45
  };
45 46
  
46
- static const struct ef_name_map openpgp_data[] = {
47 47
 @@ -302,6 +306,14 @@ static int decode_options(int argc, char **argv)
48 48
  		case 'E':
49 49
  			opt_erase++;