pki tool supports single letter short options
This commit is contained in:
@@ -28,7 +28,7 @@ static int gen(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
return command_usage(NULL);
|
||||
|
||||
@@ -53,7 +53,7 @@ static int issue(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
goto usage;
|
||||
@@ -275,7 +275,7 @@ static int issue(int argc, char *argv[])
|
||||
|
||||
not_before = time(NULL);
|
||||
not_after = not_before + lifetime * 24 * 60 * 60;
|
||||
|
||||
|
||||
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
|
||||
BUILD_SIGNING_KEY, private, BUILD_SIGNING_CERT, ca,
|
||||
BUILD_PUBLIC_KEY, public, BUILD_SUBJECT, id,
|
||||
|
||||
@@ -34,7 +34,7 @@ static int keyid(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
return command_usage(NULL);
|
||||
|
||||
@@ -35,7 +35,7 @@ static int pub(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
return command_usage(NULL);
|
||||
|
||||
@@ -48,7 +48,7 @@ static int self(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
goto usage;
|
||||
|
||||
@@ -29,7 +29,7 @@ static int verify(int argc, char *argv[])
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
switch (getopt_long(argc, argv, "", command_opts, NULL))
|
||||
switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
|
||||
{
|
||||
case 'h':
|
||||
return command_usage(NULL);
|
||||
|
||||
Reference in New Issue
Block a user