]> The Tcpdump Group git mirrors - tcpdump/commit
Cleanups.
authorGuy Harris <[email protected]>
Wed, 30 Aug 2017 18:18:17 +0000 (11:18 -0700)
committerDenis Ovsienko <[email protected]>
Fri, 1 Sep 2017 21:31:14 +0000 (22:31 +0100)
commitf08288f5a932c263aad34f1fa9cdbc00bb9edf7b
tree90fd2a50c0e35dd6a08b7551f94eb4c29539bfc0
parentc93fb5fd55cbbc0faa3d9ba651fe42b284705367
Cleanups.

Attempt to allocate the buffer before doing any decryption calls and, if
the attempt fails, report an error and return an error indication.

Make sizes unsigned, as they can't be negative;
EVP_CIPHER_CTX_block_size() returns an int, but that's just because they
picked the wrong data type in OpenSSL.

No need to use calloc() for the output buffer - just use malloc().
print-esp.c