mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-06 12:27:40 +03:00
+ -v
This commit is contained in:
parent
1ccf3eaecb
commit
4f36c573a8
2 changed files with 7 additions and 2 deletions
|
@ -19,9 +19,9 @@
|
||||||
#include "minisign.h"
|
#include "minisign.h"
|
||||||
|
|
||||||
#ifndef VERIFY_ONLY
|
#ifndef VERIFY_ONLY
|
||||||
static const char *getopt_options = "GSVhc:m:p:qs:t:x:";
|
static const char *getopt_options = "GSVhc:m:p:qs:t:vx:";
|
||||||
#else
|
#else
|
||||||
static const char *getopt_options = "Vhm:p:qx:";
|
static const char *getopt_options = "Vhm:p:qvx:";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void usage(void) __attribute__((noreturn));
|
static void usage(void) __attribute__((noreturn));
|
||||||
|
@ -52,6 +52,7 @@ usage(void)
|
||||||
"-t <comment> add a one-line trusted comment\n"
|
"-t <comment> add a one-line trusted comment\n"
|
||||||
#endif
|
#endif
|
||||||
"-q quiet mode, suppress output\n"
|
"-q quiet mode, suppress output\n"
|
||||||
|
"-v display version number\n"
|
||||||
);
|
);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -564,6 +565,9 @@ main(int argc, char **argv)
|
||||||
case 'x':
|
case 'x':
|
||||||
sig_file = optarg;
|
sig_file = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 'v':
|
||||||
|
puts(VERSION_STRING);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sodium_init();
|
sodium_init();
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#define SIG_DEFAULT_PKFILE "minisign.pub";
|
#define SIG_DEFAULT_PKFILE "minisign.pub";
|
||||||
#define SIG_DEFAULT_SKFILE "minisign.key";
|
#define SIG_DEFAULT_SKFILE "minisign.key";
|
||||||
#define SIG_SUFFIX ".minisig"
|
#define SIG_SUFFIX ".minisig"
|
||||||
|
#define VERSION_STRING "minisign 0.1"
|
||||||
|
|
||||||
typedef struct KeynumSK_ {
|
typedef struct KeynumSK_ {
|
||||||
unsigned char keynum[KEYNUMBYTES];
|
unsigned char keynum[KEYNUMBYTES];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue