]> git.ipfire.org Git - thirdparty/ldns.git/commit
Don't rely on libcrypto returning static buffers 240/head
authorTheo Buehler <tb@openbsd.org>
Thu, 30 May 2024 16:52:21 +0000 (18:52 +0200)
committerTheo Buehler <tb@openbsd.org>
Thu, 30 May 2024 16:52:21 +0000 (18:52 +0200)
commit86629fe73fbe05dc5a907479fe4ad86ecc4b9a20
tree65ddc6fc4ed222be98e904254adaf4f867408010
parent2c7d3929905f3d39bbfedb3120d62cdb96916c54
Don't rely on libcrypto returning static buffers

ldns is one of very few applications relying on being able to pass
NULL as last argument to the one-step hashing functions. BoringSSL
has removed this functionality in 2017 [1] and LibreSSL 4.0 will do
the same. Applications can pass in a correctly-sized buffer on the
stack.

[1]: https://boringssl-review.googlesource.com/14528
dnssec_sign.c