New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts(1): digest option is mandatory #8421
Conversation
It kind of sounds like this option is somewhere between optional and mandatory! i.e. its optional on the command line if you've specified it in the config file and vice versa. So describing these options as mandatory doesn't quite sound right either. |
well other options that need to be specified, but don't have to be specified in a specific place, are also listed as |
Well, AFAICT, that man page only lists 3 options as mandatory at the moment:
|
hmm, true. Any suggestions? |
I'd suggest marking it as "Optional" in the config file, and then mark the command line option as "Optional unless not specified in the configuration file" (or possibly the other way around "Mandatory unless specified in the configuration file"). |
@mattcaswell updated |
doc/man1/ts.pod
Outdated
@@ -460,7 +460,7 @@ command line option. (Optional) | |||
=item B<signer_digest> | |||
|
|||
Signing digest to use. The same as the | |||
B<-I<digest>> command line option. (Optional) | |||
B<-I<digest>> command line option. (Mandatory unless specified on command line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just leave this as Optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I feel like it better reflects the reality - it needs to be specified somewhere, so specifying it is mandatory
also, specifying it in both places will give less unexpected result than not specifying it at all
i.e. "Mandatory" better manages user expectations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: specified on the command line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Mandatory" better manages user expectations
I agree with @tomato42 in this matter.
Approved, provided the two grammar nits are fixed.
doc/man1/ts.pod
Outdated
@@ -460,7 +460,7 @@ command line option. (Optional) | |||
=item B<signer_digest> | |||
|
|||
Signing digest to use. The same as the | |||
B<-I<digest>> command line option. (Optional) | |||
B<-I<digest>> command line option. (Mandatory unless specified on command line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: specified on the command line
doc/man1/ts.pod
Outdated
@@ -262,7 +262,7 @@ specified, the argument is given to the engine as a key identifier. | |||
=item B<-I<digest>> | |||
|
|||
Signing digest to use. Overrides the B<signer_digest> config file | |||
option. (Optional) | |||
option. (Mandatory unless specified in config file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar: specified in the config file
not specifying the digest both on command line and in the config file will lead to response generation aborting with 140617514493760:error:2F098088:time stamp routines:ts_CONF_lookup_fail:cannot find config variable:crypto/ts/ts_conf.c:106:tsr_test::signer_digest
"the" added in both places |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reconfirmed
not specifying the digest both on command line and in the config file will lead to response generation aborting with 140617514493760:error:2F098088:time stamp routines:ts_CONF_lookup_fail: \ cannot find config variable:crypto/ts/ts_conf.c:106:tsr_test::signer_digest Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from #8421) (cherry picked from commit 29716a0)
not specifying the digest both on command line and in the config file will lead to response generation aborting with 140617514493760:error:2F098088:time stamp routines:ts_CONF_lookup_fail: \ cannot find config variable:crypto/ts/ts_conf.c:106:tsr_test::signer_digest Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from #8421)
not specifying the digest both on command line and in the config file
will lead to response generation aborting with
140617514493760:error:2F098088:time stamp routines:ts_CONF_lookup_fail:cannot find config variable:crypto/ts/ts_conf.c:106:tsr_test::signer_digest
Checklist