diff options
author | Darren Tucker <dtucker@dtucker.net> | 2023-07-27 02:46:45 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-07-27 02:46:45 +1000 |
commit | 9855f9178b454bfb5215efa4e9dcb001dc5198a1 (patch) | |
tree | 0fa60a4a89db9d885f02fde3462c041361a7cdf1 /buffer.h | |
parent | 8fdca57039476178392660439ff1e715d0efbcb7 (diff) |
Prefer OpenSSL's SHA256 in sk-dummy.soV_9_3
Previously sk-dummy.so used libc's (or compat's) SHA256 since it may be
built without OpenSSL. In many cases, however, including both libc's
and OpenSSL's headers together caused conflicting definitions.
We tried working around this (on OpenSSL <1.1 you could define
OPENSSL_NO_SHA, NetBSD had USE_LIBC_SHA2, various #define hacks) with
varying levels of success. Since OpenSSL >=1.1 removed OPENSSL_NO_SHA
and including most OpenSSL headers would bring sha.h in, even if it
wasn't used directly this was a constant hassle.
Admit defeat and use OpenSSL's SHA256 unless we aren't using OpenSSL
at all. ok djm@
Diffstat (limited to 'buffer.h')
0 files changed, 0 insertions, 0 deletions