8000
Skip to content

Fix for very old openssl: try sha256 and sha256sum before "openssl sha256"#1068

Merged
zachriggle merged 6 commits intoGallopsled:stablefrom
cgsecurity:stable
Jan 24, 2018
Merged

Fix for very old openssl: try sha256 and sha256sum before "openssl sha256"#1068
zachriggle merged 6 commits intoGallopsled:stablefrom
cgsecurity:stable

Conversation

@cgsecurity
Copy link
Copy Markdown
Contributor

Check for sha256 and sha256sum commands before trying openssl as "openssl sha256" doesn't return an error code in some old versions of openssl (OpenSSL 0.9.8g 19 Oct 2007 at least) that doesn't support sha256.

@zachriggle
Copy link
Copy Markdown
Member
zachriggle commented Nov 21, 2017 via email

@cgsecurity
Copy link
Copy Markdown
Contributor Author

There are some traces from c438893
If you know how to fix the PR, please let me know, I am not very good with git...

@zachriggle
Copy link
Copy Markdown
Member

LGTM, and I also just ran into this. The other issue is that openssl sha256 exits with code 0 even though it failed.

@zachriggle zachriggle merged commit 3ff7a9e into Gallopsled:stable Jan 24, 2018
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.

2 participants

0