Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
http-testing
>
nginx-boringssl
> boringssl.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File boringssl.patch of Package nginx-boringssl
From ec439c41f45ce01f0f5e03b8df58f0148e108f83 Mon Sep 17 00:00:00 2001 From: Yves Laroche <yves.laroche@bluecoala.com> Date: Fri, 24 Apr 2015 12:57:48 +0100 Subject: [PATCH] BoringSSL --- src/core/nginx.c | 8 ++++++++ src/event/ngx_event_openssl.c | 2 ++ src/event/ngx_event_openssl.h | 1 + 3 files changed, 11 insertions(+) diff --git a/src/core/nginx.c b/src/core/nginx.c index 4702d28..9a0cc89 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -254,6 +254,7 @@ main(int argc, char *const *argv) #endif #if (NGX_SSL) +#ifdef SSLEAY_VERSION_NUMBER if (SSLeay() == SSLEAY_VERSION_NUMBER) { ngx_write_stderr("built with " OPENSSL_VERSION_TEXT NGX_LINEFEED); @@ -264,6 +265,13 @@ main(int argc, char *const *argv) SSLeay_version(SSLEAY_VERSION)); ngx_write_stderr(")" NGX_LINEFEED); } +#else + ngx_write_stderr("built with " OPENSSL_VERSION_TEXT + " (running with "); + ngx_write_stderr((char *) (uintptr_t) + SSLeay_version(SSLEAY_VERSION)); + ngx_write_stderr(")" NGX_LINEFEED); +#endif #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME ngx_write_stderr("TLS SNI support enabled" NGX_LINEFEED); #else diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 1b789e6..00d2448 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1905,7 +1905,9 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err, /* handshake failures */ if (n == SSL_R_BAD_CHANGE_CIPHER_SPEC /* 103 */ +#ifdef SSL_R_BLOCK_CIPHER_PAD_IS_WRONG || n == SSL_R_BLOCK_CIPHER_PAD_IS_WRONG /* 129 */ +#endif || n == SSL_R_DIGEST_CHECK_FAILED /* 149 */ || n == SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST /* 151 */ || n == SSL_R_EXCESSIVE_MESSAGE_SIZE /* 152 */ diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h index 08eff64..cc48bb4 100644 --- a/src/event/ngx_event_openssl.h +++ b/src/event/ngx_event_openssl.h @@ -29,6 +29,7 @@ #include <openssl/rsa.h> #include <openssl/x509.h> #include <openssl/x509v3.h> +#include <openssl/mem.h> #define NGX_SSL_NAME "OpenSSL" -- 2.1.4