Avoid OpenSSL header dependencies

This commit is contained in:
Dominik Charousset 2023-11-03 15:54:46 +01:00
parent 4eb1b71d1b
commit c500370563
13 changed files with 370 additions and 204 deletions

View file

@ -403,7 +403,7 @@ BitVector::size_type BitVector::FindNext(size_type i) const {
uint64_t BitVector::Hash() const {
u_char buf[SHA256_DIGEST_LENGTH];
uint64_t digest;
EVP_MD_CTX* ctx = zeek::detail::hash_init(zeek::detail::Hash_SHA256);
auto* ctx = zeek::detail::hash_init(zeek::detail::Hash_SHA256);
for ( size_type i = 0; i < Blocks(); ++i )
zeek::detail::hash_update(ctx, &bits[i], sizeof(bits[i]));