Skip to content

Fix GH-7759: Incorrect return types for hash() and hash_hmac() #7760

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

Closed
wants to merge 2 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Dec 11, 2021

hash() and hash_hmac() never return false; only hash_file() and
hash_hmac_file() return false in case the data cannot be read.

`hash()` and `hash_hmac()` never return `false`; only `hash_file()` and
`hash_hmac_file()` return `false` in case the data cannot be read.
@nikic
Copy link
Member

nikic commented Dec 11, 2021

You also need to adjust optimizer func info.

@cmb69
Copy link
Member Author

cmb69 commented Dec 11, 2021

$ ..\deps-8.0\bin\openssl.exe x509 -in ext\openssl\tests\san-cert.pem -text | findstr /i after
            Not After : Dec 11 08:05:51 2021 GMT

Welp.

@nikic
Copy link
Member

nikic commented Dec 11, 2021

Ah yes, the good old expiring certificates in tests... if possible, these should be switched over to CertificateGenerator to avoid this for good.

@cmb69 cmb69 closed this in 0b3a937 Dec 12, 2021
@cmb69 cmb69 deleted the cmb/gh-7759 branch December 12, 2021 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants