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

Maxim Dounin mdounin at mdounin.ru
Thu Oct 12 15:12:36 UTC 2017

details:   http://hg.nginx.org/nginx/rev/8076ba459f05
changeset: 7132:8076ba459f05
user:      Alessandro Ghedini <alessandro at ghedini.me>
date:      Wed Oct 11 15:43:50 2017 -0700
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.


 src/event/ngx_event_openssl.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
--- a/src/event/ngx_event_openssl.h
+++ b/src/event/ngx_event_openssl.h
@@ -22,6 +22,7 @@
 #include <openssl/engine.h>
 #include <openssl/evp.h>
+#include <openssl/hmac.h>
 #include <openssl/ocsp.h>

More information about the nginx-devel mailing list