From: Johannes Bauer Date: Thu, 3 Aug 2017 19:07:21 +0000 (+0200) Subject: Fix typo in HKDF example documentation X-Git-Tag: OpenSSL_1_1_1-pre1~893 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c67a2f80ec933465c54138fe829433d535651349;p=oweals%2Fopenssl.git Fix typo in HKDF example documentation Out-of-bounds array access in the example documentation of EVP_PKEY_CTX_set_hkdf_md fixed. Reviewed-by: Andy Polyakov Reviewed-by: Stephen Henson (Merged from https://github.com/openssl/openssl/pull/4081) --- diff --git a/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod b/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod index 12843d014e..333b8da0fd 100644 --- a/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod +++ b/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod @@ -139,7 +139,7 @@ salt value "salt" and info value "label": /* Error */ if (EVP_PKEY_CTX_set1_hkdf_key(pctx, "secret", 6) <= 0) /* Error */ - if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 6) <= 0) + if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 5) <= 0) /* Error */ if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) /* Error */