From: Matt Caswell Date: Thu, 25 May 2017 14:18:22 +0000 (+0100) Subject: Document that HMAC() with a NULL md is not thread safe X-Git-Tag: OpenSSL_1_1_0g~204 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6ec6773c4ad10d6b4f260b3a2086547f2153ef1;p=oweals%2Fopenssl.git Document that HMAC() with a NULL md is not thread safe Fixes #3541 Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3554) --- diff --git a/doc/crypto/HMAC.pod b/doc/crypto/HMAC.pod index 87f7e33086..219c9ba208 100644 --- a/doc/crypto/HMAC.pod +++ b/doc/crypto/HMAC.pod @@ -57,7 +57,8 @@ B bytes long. It places the result in B (which must have space for the output of the hash function, which is no more than B bytes). If B is NULL, the digest is placed in a static array. The size of -the output is placed in B, unless it is B. +the output is placed in B, unless it is B. Note: passing a NULL +value for B to use the static array is not thread safe. B can be EVP_sha1(), EVP_ripemd160() etc.