Skip to content
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

ext/openssl: Prevent exposed error when using a PEM public key #11055

Closed
wants to merge 6 commits into from
Closed

ext/openssl: Prevent exposed error when using a PEM public key #11055

wants to merge 6 commits into from

Conversation

famoser
Copy link
Contributor

@famoser famoser commented Apr 10, 2023

Issue: #11054

Note that:

  • I had to adapt existing tests.
  • There is one test failing on windows (FAIL openssl_pkey_derive() ECDH [D:\a\php-src\php-src\ext\openssl\tests\openssl_pkey_derive-ecdh.phpt]); I do not see how this change had an impact there.

Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

It looks reasonable. Just few changes needed.

ext/openssl/openssl.c Show resolved Hide resolved
ext/openssl/openssl.c Outdated Show resolved Hide resolved
ext/openssl/openssl.c Outdated Show resolved Hide resolved
ext/openssl/openssl.c Outdated Show resolved Hide resolved
famoser and others added 4 commits April 17, 2023 17:38
Co-authored-by: Jakub Zelenka <bukka@php.net>
Co-authored-by: Jakub Zelenka <bukka@php.net>
@famoser
Copy link
Contributor Author

famoser commented Apr 17, 2023

Thank you for the review, much appreciated. I applied the requested changes.

@famoser famoser requested a review from bukka April 17, 2023 15:57
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

This looks good now. Just approved pipeline so if it passes, then it should be all good. It is actually technically an ABI break so I cannot merge it to anything else than master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants