openssl^3 (#821)

openssl^3 fails on Linux for some reason ¯\_(ツ)_/¯
This commit is contained in:
Max Howell 2023-03-21 08:24:59 -04:00 committed by GitHub
parent 8f51287c74
commit 6347952015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,3 @@
# NOTE
# on darwin we use Apples provided TLS certs at /etc/certs
# on linux we grab the curl certs (usually these are package as ca-certificates)
distributable: distributable:
url: https://www.openssl.org/source/openssl-{{version.raw}}.tar.gz url: https://www.openssl.org/source/openssl-{{version.raw}}.tar.gz
sha: ${{url}}.sha256 sha: ${{url}}.sha256
@ -9,9 +5,8 @@ distributable:
strip-components: 1 strip-components: 1
versions: versions:
- 1.1.1s github: openssl/openssl
# github: openssl/openssl strip: /^OpenSSL /
# transform: /^OpenSSL_(\d+)_(\d+)_(\d+\w)$/$1.$2.$3/
provides: provides:
- bin/openssl - bin/openssl
@ -53,8 +48,15 @@ test:
script: | script: |
echo "This is a test file" > in echo "This is a test file" > in
openssl dgst -sha256 -out out ./in openssl dgst -sha256 -out out ./in
test "$(cat ./out)" = "$SAMPLE" if test {{version.major}} = 3; then
test "$(cat ./out)" = "SHA2-256(./in)= $SAMPLE"
else
test "$(cat ./out)" = "SHA256(./in)= $SAMPLE"
fi
wget tea.xyz # test the certs work if test {{version.major}} = 1; then
wget tea.xyz # test the certs work
fi
# ^^ can't test openssl 3 yet since like, what uses it even?!
env: env:
SAMPLE: SHA256(./in)= c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35 SAMPLE: c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35