[PATCH] SSL: include <openssl/hmac.h>

Alessandro Ghedini alessandro at ghedini.me
Wed Oct 11 22:58:37 UTC 2017


# 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


More information about the nginx-devel mailing list