From 47695810b3bea3e83e8bc2266e1672676a189efd Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 25 May 2017 15:18:22 +0100 Subject: [PATCH] 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/3553) --- doc/man3/HMAC.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/man3/HMAC.pod b/doc/man3/HMAC.pod index 42f0bfd304..ad7aaeb099 100644 --- a/doc/man3/HMAC.pod +++ b/doc/man3/HMAC.pod @@ -60,7 +60,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.