check-hashes.sh test in src/share/yang fails on systems with OpenSSL 3
We use openssl dgst -sha256
to generate hashes for YANG modules. With OpenSSL 3, that command prepends SHA2-256
to the hash. The hash ends up different than the hashes generated prior to OpenSSL 3.
- 15 x
hash mismatch on <module> expected SHA2-256f4a46d17ce7791f9d12d0906e1ed8c4b424b29146b5fd5e097663a6d9d388264 in hashes/<module>.hash
FAIL: check-hashes.sh
Adding | sed 's/SHA2-256//'
solves the problem.