Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
nginx-module-sticky-ng
openssl-headers.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-headers.patch of Package nginx-module-sticky-ng
From b08b243363ffc833d7ea0c7412d28167c0955e48 Mon Sep 17 00:00:00 2001 From: Michal Rostecki <mrostecki@suse.com> Date: Fri, 13 Apr 2018 17:15:43 +0200 Subject: [PATCH] misc: Include openssh headers when *_DIGEST_LENGTH are undefined ngx_md5.h and ngx_sha1.h headers in different nginx versions may or may not include openssl headers. To ensure that we have all the constants related to md5 and sha1, the appropriate ifndef clauses and headers were added. --- ngx_http_sticky_misc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ngx_http_sticky_misc.c b/ngx_http_sticky_misc.c index 0a3548c..54d5840 100644 --- a/ngx_http_sticky_misc.c +++ b/ngx_http_sticky_misc.c @@ -9,6 +9,12 @@ #include <ngx_http.h> #include <ngx_md5.h> #include <ngx_sha1.h> +#ifndef MD5_DIGEST_LENGTH +#include <openssl/md5.h> +#endif +#ifndef SHA_DIGEST_LENGTH +#include <openssl/sha.h> +#endif #include "ngx_http_sticky_misc.h" @@ -16,11 +22,6 @@ #define ngx_str_set(str, text) (str)->len = sizeof(text) - 1; (str)->data = (u_char *) text #endif -/* - fix for 1.11.2 removes include <openssl/md5.h> in ngx_md5.h */ -#define MD5_CBLOCK 64 -#define MD5_LBLOCK (MD5_CBLOCK/4) -#define MD5_DIGEST_LENGTH 16 - // /* - bugfix for compiling on sles11 - needs gcc4.6 or later*/ // #pragma GCC diagnostic ignored "-Wuninitialized"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor