Skip to content

x509: add missing X509 dup functions#9353

Closed
mspncp wants to merge 3 commits intoopenssl:masterfrom
mspncp:pr-x509-add-missing-dup-functions
Closed

x509: add missing X509 dup functions#9353
mspncp wants to merge 3 commits intoopenssl:masterfrom
mspncp:pr-x509-add-missing-dup-functions

Conversation

@mspncp
Copy link
Contributor

@mspncp mspncp commented Jul 12, 2019

Note: Some of these missing 'duplicators' are urgently needed by me for backporting some company code from 1.0.2 to 1.1.1.

That's why backporting this change to 1.1.1 (as a separate pull request) is my primary target. Since the backport is based on #9347, it will depend on the OMC decision about the constification policy.

If backporting will not be possible, well, then I'll have to live with my downstream patches....

Checklist
  • documentation is added or updated

@mspncp mspncp added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels Jul 12, 2019
@mattcaswell
Copy link
Member

That's why backporting this change to 1.1.1 (as a separate pull request) is my primary target. Since the backport is based on #9347, it will depend on the OMC decision about the constification policy.

We've generally allowed constification backports where it doesn't break API/ABI compat.

@mspncp
Copy link
Contributor Author

mspncp commented Jul 12, 2019

That's why backporting this change to 1.1.1 (as a separate pull request) is my primary target. Since the backport is based on #9347, it will depend on the OMC decision about the constification policy.

We've generally allowed constification backports where it doesn't break API/ABI compat.

Actually, this pull request here is a 'missing accessor' pull request. Number #9347 is the 'constification' pull request which is currently being discussed. Because we learned that in some specific cases, constifications can cause compiler warnings or even errors. Please take a look at the discussion at #9347 (review).

@mspncp
Copy link
Contributor Author

mspncp commented Jul 12, 2019

Kicking Travis...

@mspncp mspncp closed this Jul 12, 2019
@mspncp mspncp reopened this Jul 12, 2019
Copy link
Member

Choose a reason for hiding this comment

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

Maybe some unit tests would be good - coverage is already bad enough :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you serious? Or is this just your tit-for-tat response to my last overly pedantic comments? ;-)

Copy link
Member

Choose a reason for hiding this comment

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

up to you - at some point coverage will be looked at.. maybe..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you that the ASN1 parser could need some more covering by unit tests. But I am not the person who would be able to implement them. Also, I am already punished enough with all those missing accessors and const incorrectnesses encountered while porting code from 1.0.2 to 1.1.1.

@mspncp mspncp force-pushed the pr-x509-add-missing-dup-functions branch from a91f75a to f5c88ef Compare July 17, 2019 21:45
@mspncp
Copy link
Contributor Author

mspncp commented Jul 17, 2019

Rebased without further changes to fix conflict in util/libcrypto.num.

@mspncp mspncp added the approval: review pending This pull request needs review by a committer label Jul 17, 2019
@levitte levitte added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jul 18, 2019
@mspncp
Copy link
Contributor Author

mspncp commented Jul 21, 2019

That's why backporting this change to 1.1.1 (as a separate pull request) is my primary target. Since the backport is based on #9347, it will depend on the OMC decision about the constification policy.

Ideally, I would like to merge this pull request together with its 1.1.1 backport. The latter however depends on #9347. Is there any upate on #9347?

@mspncp mspncp removed the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label Jul 22, 2019
@mspncp
Copy link
Contributor Author

mspncp commented Jul 22, 2019

There will be no cherry-pick to 1.1.1, since #9347 has been rejected.

@mspncp mspncp closed this Jul 22, 2019
@mspncp
Copy link
Contributor Author

mspncp commented Jul 22, 2019

Ups, did not mean to close the entire pull request.

@mspncp mspncp reopened this Jul 22, 2019
@mspncp mspncp force-pushed the pr-x509-add-missing-dup-functions branch from f5c88ef to 6ce1078 Compare July 22, 2019 05:35
@mspncp
Copy link
Contributor Author

mspncp commented Jul 22, 2019

Rebased and autosquashed without further changes to resolve conflict in libcrypto.num.

@mspncp
Copy link
Contributor Author

mspncp commented Jul 22, 2019

Merged to master, thank you!

a8f1aab x509: publish X509_PUBKEY_dup
9b97767 x509: add missing X509 dup functions
227d426 x509: sort X509 dup functions alphabetically

@mspncp mspncp closed this Jul 22, 2019
@mspncp mspncp deleted the pr-x509-add-missing-dup-functions branch July 22, 2019 05:41
levitte pushed a commit that referenced this pull request Jul 22, 2019
Reviewed-by: Richard Levitte <[email protected]>
(Merged from #9353)
levitte pushed a commit that referenced this pull request Jul 22, 2019
Reviewed-by: Richard Levitte <[email protected]>
(Merged from #9353)
levitte pushed a commit that referenced this pull request Jul 22, 2019
Reviewed-by: Richard Levitte <[email protected]>
(Merged from #9353)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants