[PATCH] SSL: include <openssl/hmac.h>
Maxim Dounin
mdounin at mdounin.ru
Thu Oct 12 15:13:29 UTC 2017
Hello!
On Wed, Oct 11, 2017 at 03:58:37PM -0700, Alessandro Ghedini wrote:
> # HG changeset patch
> # User Alessandro Ghedini <alessandro at ghedini.me>
> # Date 1507761830 25200
> # Wed Oct 11 15:43:50 2017 -0700
> # Node ID fe296bd63e074759392076a2bb6b36f77301227d
> # Parent fe7d9e3987d40f16d86fd01d94ad16ff58467af2
> SSL: include <openssl/hmac.h>
>
> This header carries the definition of HMAC_Init_ex(). In OpenSSL this
> header is included by <openssl/ssl.h>, but it's not so in BoringSSL.
>
> It's probably a good idea to explicitly include this header anyway,
> regardless of whether it's included by other headers or not.
>
> diff -r fe7d9e3987d4 -r fe296bd63e07 src/event/ngx_event_openssl.h
> --- a/src/event/ngx_event_openssl.h Wed Sep 28 14:54:44 2016 +0100
> +++ b/src/event/ngx_event_openssl.h Wed Oct 11 15:43:50 2017 -0700
> @@ -22,6 +22,7 @@
> #include <openssl/engine.h>
> #endif
> #include <openssl/evp.h>
> +#include <openssl/hmac.h>
> #ifndef OPENSSL_NO_OCSP
> #include <openssl/ocsp.h>
> #endif
Committed (with a dot added to the summary line), thanks.
http://hg.nginx.org/nginx/rev/8076ba459f05
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list