Skip to content

Conversation

@gustafn
Copy link
Contributor

@gustafn gustafn commented Jun 29, 2020

This is a revised version of the pull requests #12299 where US/UK discrepancies are left out. The changes affect only documentation files (.pod, .pod.in, .md)

CLA: trivial

Checklist
  • [x ] documentation is added or updated

@openssl-machine openssl-machine added the hold: cla required The contributor needs to submit a license agreement label Jun 29, 2020
Copy link
Contributor

@mspncp mspncp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Just some little corrections.

Personally, I would prefer if you wouldn't change aka to a.k.a. (see inline comment below), but if the others are o.k. with this change, I won't be dogmatic about it.

pkcs-tng mailing list using triple DES, DES and RC2 with high iteration
counts, several people confirmed that they could decrypt the private
keys produced and Therefore it can be assumed that the PKCS#5 v2.0
keys produced and Therefore, it can be assumed that the PKCS#5 v2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Therefore -> therefore

=item B<-status>

Enables certificate status request support (aka OCSP stapling).
Enables certificate status request support (a.k.a. OCSP stapling).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a.k.a. used to be a normal abbreviation with three dots. However, it seems that since then it has become such a famous abbreviation that the undotted version aka is more famous and modern. Since even Merriam-Webster prefer's the latter, and since it looks less awkward, I would prefer to keep the aka.

Comment on lines 74 to +75
for an IA5String the data will be ASCII, for a BMPString two bytes per
character in big endian format, and for an UTF8String it will be in UTF8 format.
character in big endian format, and for a UTF8String it will be in UTF8 format.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch: it's an IA5String, but a UTF8String, because it depends on how it is pronounced (yu̇-ˈnī-təd), not how it is spelled. :-)

While a candidate for q is tested by Miller-Rabin primality tests,
B<BN_GENCB_call(cb, 1, i)> is called in the outer loop
(once for each witness that confirms that the candidate may be prime);
(once for each withess that confirms that the candidate may be prime);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mistake and needs to be reverted.

While it is tested by the Miller-Rabin primality test,
B<BN_GENCB_call(cb, 1, i)> is called in the outer loop
(once for each witness that confirms that the candidate may be prime).
(once for each withess that confirms that the candidate may be prime).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Comment on lines 71 to 73
If the B<rbio> and B<wbio> parameters are different and the B<wbio> is the
same as the previously set value and the old B<rbio> and B<wbio> values
were the same as each other then one reference is consumed for the B<rbio>
same as the previously set value, and the old B<rbio> and B<wbio> values
were the same as each other, then one reference is consumed for the B<rbio>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether inserting a comma before the and is correct: why did you insert a comma at ...value, and... but not at ...different and...?

If ... are different and the wbio ... set value, and the old ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commas were added to improve separation of clauses.... but you are right, given the construction of the other clauses (https://www.openssl.org/docs/manmaster/man3/SSL_set_bio.html), all or none of these should be adjusted. Adjusting would require to check the sources in detail since we do not want to clarify in the wrong direction. Since the function should be avoided, it is probably the best not to touch it at all.

Many thanks for the constructive feedback, will update soon (this night or tomorrow).

Comment on lines 78 to +82
If the B<rbio> and B<wbio> parameters are different and the B<wbio>
is the same as the
previously set value and the old B<rbio> and B<wbio> values were different
to each
other then one reference is consumed for the B<rbio> and one reference
is consumed
for the B<wbio>.
to each other, then one reference is consumed for the B<rbio> and one
reference is consumed for the B<wbio>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence here is similar, but here you didn't insert any commas before and.

@mspncp
Copy link
Contributor

mspncp commented Jun 29, 2020

In case you are wondering why the cla-check is still failing: You placed the CLA: trivial tag in the subject line of the commit message

fixed typos and repeated words CLA: trivial

but the CLA bot expects it to be in the body of the commit message, which needs to be separated from the title by an empty line, like this:

Fixed typos and repeated words

CLA: trivial

But don't worry, I can fix that when the commits get merged.

For the records: I agree that it's a (legally) trivial change.

@mspncp mspncp added cla: trivial One of the commits is marked as 'CLA: trivial' and removed hold: cla required The contributor needs to submit a license agreement labels Jun 29, 2020
@mspncp mspncp self-assigned this Jun 29, 2020
@romen
Copy link
Member

romen commented Jun 30, 2020

@mspncp could you also backport the relevant ones to 1.1.1?

Assuming your feedback is addressed, my approval would stand for both master and 1.1.1 (assuming the backport is going to be clean or as trivial as name files changes/dropped changes for missing functions).

@romen romen added branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) branch: master Applies to master branch labels Jun 30, 2020
@romen
Copy link
Member

romen commented Jun 30, 2020

Thanks @gustafn for this contribution, it's always nice to have documentation improvements!

@gustafn
Copy link
Contributor Author

gustafn commented Jul 1, 2020

All changes are addressed. Should I make a separate pull request for branch "OpenSSL_1_1_1-stable"?

There are many similar spelling inconsistencies in the source code. Is there some interest to reduce these as well, or is the overall opinion that this makes tracking of substantial changes more complex?

@mspncp
Copy link
Contributor

mspncp commented Jul 1, 2020

All changes are addressed. Should I make a separate pull request for branch "OpenSSL_1_1_1-stable"?

Thanks for the offer. I would suggest that you wait a little bit until this pull request has the required two approvals. After that, I would attempt a simple cherry-pick and if that succeeds without conflicts, no separate pull requests would be necessary. If not, I would ping you and kindly ask you for the separate pull request.

There are many similar spelling inconsistencies in the source code. Is there some interest to reduce these as well, or is the overall opinion that this makes tracking of substantial changes more complex?

Since your changes affect mostly the documentation and not the source code, and since 1.1.1 is an LTS version, I think it's worth doing it.

Copy link
Contributor

@mspncp mspncp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If you don't mind i would like to squash the three commits, using your initial commit message (in present tense and with a capital letter at the beginning). Is that ok for you?

Fix typos and repeated words

CLA: trivial

@mspncp
Copy link
Contributor

mspncp commented Jul 1, 2020

LGTM. If you don't mind i would like to squash the three commits, using your initial commit message (in present tense and with a capital letter at the beginning). Is that ok for you?

If not, feel free to propose your preferred wording.

P.S: I attempted a cherry-pick to OpenSSL_1_1_1-stable, it failed miserably (47 conflicting files).

Copy link
Member

@slontis slontis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slontis slontis added the approval: done This pull request has the required number of approvals label Jul 2, 2020
@slontis
Copy link
Member

slontis commented Jul 2, 2020

When it touches more than 100 files do you still consider this to be trivial?

@mspncp
Copy link
Contributor

mspncp commented Jul 2, 2020

Not trivial to do (if you script it), but trivial in a legal sense, because correcting spell errors does not add any copyrightable value IMO. But of course, IANAL.

@gustafn
Copy link
Contributor Author

gustafn commented Jul 2, 2020

From my point of view, squashing theses commits is the right thing. I see that present tense is the usual convention in OpenSSL, so please go ahead with this.

Cherry picking a high number of changes can be a pain, several things have changed, so let me know, whether you prefer a separate pull requests for OpenSSL_1_1_1-stable.

Would you prefer spelling changes on source on the master branch or on 1.1.1? Working though the source code files is a larger project, this will take some time.

@mspncp
Copy link
Contributor

mspncp commented Jul 2, 2020

From my point of view, squashing theses commits is the right thing. I see that present tense is the usual convention in OpenSSL, so please go ahead with this.

Ok, I'll do that. Your pull request has the necessary number of approvals, but the 24h grace period has not expired yet. So I'll squash and merge it tomorrow.

Cherry picking a high number of changes can be a pain, several things have changed, so let me know, whether you prefer a separate pull requests for OpenSSL_1_1_1-stable.

Yes please, go ahead and raise a separate pull request against OpenSSL_1_1_1-stable. When you are ready, just post it's number here in this thread (e.g., See #xxxxx ) to draw my attention to it.

Would you prefer spelling changes on source on the master branch or on 1.1.1? Working though the source code files is a larger project, this will take some time.

We also appreciate spelling corrections in the source code. Corrections in comments are no problem at all, and the same holds for corrections of internal function or variable names in most cases. But of course, misspellings in the public API require special treatment (like deprecation of the old name) for compatibility reasons.

@openssl-machine
Copy link
Collaborator

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually.

@gustafn
Copy link
Contributor Author

gustafn commented Jul 4, 2020

The backport of this pull request for OpenSSL_1_1_1-stable is now on Github:
#12370

openssl-machine pushed a commit that referenced this pull request Jul 4, 2020
CLA: trivial

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from #12320)
@mspncp
Copy link
Contributor

mspncp commented Jul 4, 2020

Merged to master in 8c1cbc7. Thank you @gustafn!

@mspncp mspncp closed this Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) cla: trivial One of the commits is marked as 'CLA: trivial'

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants