Browse Source

gfsec-use: Document the new options.

Complete gfsec-use's man page with a description of the
restore/destroy-cmd options, and the corresponding keywords
in the configuration file.
master
Damien Goutte-Gattat 4 years ago
parent
commit
cc5c818fb2
  1. 21
      man/gfsec-use.1.in
  2. 4
      src/gfsec-use.c

21
man/gfsec-use.1.in

@ -12,6 +12,10 @@ gfsec-use \- Make use of a shared secret
.RB [ \-k | --keep ]
.RB [ \-o | --output
.IR file ]
.RB [ \-r | --restore-cmd
.IR command ]
.RB [ \-d | --destroy-cmd
.IR command ]
.RB [ command... ]
.YS
@ -52,6 +56,15 @@ of the specified command.
Write the reconstructed secret in the specified
file. This overrides the OUTFILE parameter in the
configuration file.
.TP
.BR -r ", " --restore-cmd " " \fIcommand\fR
Execute the specified command instead of writing
the reconstructed secret to a file. The secret is
sent to the command's standard input.
.TP
.BR -d ", " --destroy-cmd " " \fIcommand\fR
Execute the specified command instead of deleting
the reconstructed secret file upon termination.
.SH CONFIGURATION FILE
.PP
@ -63,6 +76,14 @@ The following directives can be used:
OUTFILE=\fIfile\fR
Specify the file to write the reconstructed secret into.
.TP
RESTORE=\fIcommand\fR
Specify the command to execute once the secret has been
reconstructed.
.TP
DESTROY=\fIcommand\fR
Specify the command to execute to destroy the secret upon
termination.
.TP
MINSHARES=\fIn\fR
Specify the minimal number of shares needed to reconstruct
the secret. The default if unspecified is 2.

4
src/gfsec-use.c

@ -65,7 +65,7 @@ secret is destroyed when the command or the shell terminates.\n"));
writing the reconstructed secret to disk.\n\
The secret will be send to the standard\n\
input of the command.\n\
-d, --delete-cmd CMD Execute the specified command instead of\n\
-d, --destroy-cmd CMD Execute the specified command instead of\n\
deleting the reconstructed file.\n"));
printf(_("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT);
@ -189,7 +189,7 @@ main(int argc, char **argv)
{ "keep", 0, NULL, 'k' },
{ "output", 1, NULL, 'o' },
{ "restore-cmd", 1, NULL, 'r' },
{ "delete-cmd", 1, NULL, 'd' },
{ "destroy-cmd", 1, NULL, 'd' },
{ NULL, 0, NULL, 0 }
};

Loading…
Cancel
Save