]> git.ipfire.org Git - thirdparty/suricata.git/commit
hash/sha1: optimize by avoiding mem alloc
authorVictor Julien <victor@inliniac.net>
Tue, 9 Oct 2018 07:25:20 +0000 (09:25 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 9 Oct 2018 15:22:01 +0000 (17:22 +0200)
commit7bf71805b839df0d9d07a05687d630287755547c
treec902407595f9788911613943ab6624d5ef991121
parentc54acd3a6e9a772ae781247fe838e376393bc263
hash/sha1: optimize by avoiding mem alloc

Don't allocate an output buffer for each call. These buffers
would have the exact same size every time.
src/app-layer-ssl.c
src/util-crypt.c
src/util-crypt.h