From 9763686ccc2647f4ecd85a7de05915af37d6e851 Mon Sep 17 00:00:00 2001 From: Hakase Date: Wed, 26 Sep 2018 07:25:47 +0900 Subject: [PATCH] Latest update - 7363 --- .hgtags | 1 + docs/xml/nginx/changes.xml | 90 +++++++++++++++++++++++++++++++++++ src/core/nginx.h | 4 +- src/event/ngx_event_openssl.c | 12 +++++ 4 files changed, 105 insertions(+), 2 deletions(-) diff --git a/.hgtags b/.hgtags index a4f1a21..6b97c0f 100644 --- a/.hgtags +++ b/.hgtags @@ -429,3 +429,4 @@ fb1212c7eca4c5328fe17d6cd95b010c67336aac release-1.13.9 4189160cb946bb38d0bc0a452b5eb4cdd8979fb5 release-1.15.1 b234199c7ed8a156a6bb98f7ff58302c857c954f release-1.15.2 28b3e17ca7eba1e6a0891afde0e4bc5bcc99c861 release-1.15.3 +49d49835653857daa418e68d6cbfed4958c78fca release-1.15.4 diff --git a/docs/xml/nginx/changes.xml b/docs/xml/nginx/changes.xml index d1e37e8..02c4b3c 100644 --- a/docs/xml/nginx/changes.xml +++ b/docs/xml/nginx/changes.xml @@ -5,6 +5,96 @@ + + + + +теперь директиву ssl_early_data можно использовать с OpenSSL. + + +now the "ssl_early_data" directive can be used with OpenSSL. + + + + + +в модуле ngx_http_uwsgi_module.
+Спасибо Chris Caputo. +
+ +in the ngx_http_uwsgi_module.
+Thanks to Chris Caputo. +
+
+ + + +соединения к некоторым gRPC-бэкендам могли не кэшироваться +при использовании директивы keepalive. + + +connections with some gRPC backends might not be cached +when using the "keepalive" directive. + + + + + +при использовании директивы error_page для перенаправления ошибок, +возникающих на ранних этапах обработки запроса, +в частности ошибок с кодом 400, +могла происходить утечка сокетов. + + +a socket leak might occur +when using the "error_page" directive +to redirect early request processing errors, +notably errors with code 400. + + + + + +директива return при возврате ошибок не изменяла код ответа, +если запрос был перенаправлен с помощью директивы error_page. + + +the "return" directive did not change the response code when returning errors +if the request was redirected by the "error_page" directive. + + + + + +стандартные сообщения об ошибках и ответы модуля ngx_http_autoindex_module +содержали атрибут bgcolor, что могло приводить к их некорректному отображению +при использовании пользовательских настроек цветов в браузерах.
+Спасибо Nova DasSarma. +
+ +standard error pages and responses of the ngx_http_autoindex_module module +used the "bgcolor" attribute, and might be displayed incorrectly when using +custom color settings in browsers.
+Thanks to Nova DasSarma. +
+
+ + + +уровень логгирования ошибок SSL "no suitable key share" и +"no suitable signature algorithm" +понижен с уровня crit до info. + + +the logging level of the "no suitable key share" and +"no suitable signature algorithm" SSL errors +has been lowered from "crit" to "info". + + + +
+ + diff --git a/src/core/nginx.h b/src/core/nginx.h index 66a9261..edaa2a9 100644 --- a/src/core/nginx.h +++ b/src/core/nginx.h @@ -9,8 +9,8 @@ #define _NGINX_H_INCLUDED_ -#define nginx_version 1015004 -#define NGINX_VERSION "1.15.4" +#define nginx_version 1015005 +#define NGINX_VERSION "1.15.5" #define NGINX_VER "nginx/" NGINX_VERSION " by Hakase" #define NGINX_SERVER_FULL NGINX_SERVER "/" NGINX_VERSION #define NGINX_ORIG "nginx/" NGINX_VERSION diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 0ccc5a8..4f9da0b 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -2624,6 +2624,12 @@ 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_NO_SUITABLE_KEY_SHARE + || n == SSL_R_NO_SUITABLE_KEY_SHARE /* 101 */ +#endif +#ifdef SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM + || n == SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM /* 118 */ +#endif || n == SSL_R_BLOCK_CIPHER_PAD_IS_WRONG /* 129 */ || n == SSL_R_DIGEST_CHECK_FAILED /* 149 */ || n == SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST /* 151 */ @@ -2645,7 +2651,13 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err, || n == SSL_R_UNEXPECTED_RECORD /* 245 */ || n == SSL_R_UNKNOWN_ALERT_TYPE /* 246 */ || n == SSL_R_UNKNOWN_PROTOCOL /* 252 */ +#ifdef SSL_R_NO_COMMON_SIGNATURE_ALGORITHMS + || n == SSL_R_NO_COMMON_SIGNATURE_ALGORITHMS /* 253 */ +#endif || n == SSL_R_UNSUPPORTED_PROTOCOL /* 258 */ +#ifdef SSL_R_NO_SHARED_GROUP + || n == SSL_R_NO_SHARED_GROUP /* 266 */ +#endif || n == SSL_R_WRONG_VERSION_NUMBER /* 267 */ || n == SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC /* 281 */ #ifdef SSL_R_RENEGOTIATE_EXT_TOO_LONG