Welcome! Log In Create A New Profile

Advanced

[PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora
October 24, 2014 07:30AM
# HG changeset patch
# User Piotr Sikora <piotr@cloudflare.com>
# Date 1414150080 25200
# Fri Oct 24 04:28:00 2014 -0700
# Node ID f71b843694fc2be7eabb9313aa82fb87e83210d6
# Parent 973fded4f461f3a397779b3a1dc80881b1b34974
SSL: make ssl_password_file work with recent OpenSSL releases.

Multiple passwords in a single ssl_password_file feature was broken after
recent OpenSSL changes (commit 4aac102f75b517bdb56b1bcfd0a856052d559f6e).

Affected OpenSSL releases: 0.9.8zc, 1.0.0o, 1.0.1j and 1.0.2-beta3.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>

diff -r 973fded4f461 -r f71b843694fc src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c Wed Oct 15 22:57:23 2014 +0400
+++ b/src/event/ngx_event_openssl.c Fri Oct 24 04:28:00 2014 -0700
@@ -410,8 +410,10 @@ ngx_ssl_certificate(ngx_conf_t *cf, ngx_
if (ERR_GET_LIB(n) == ERR_LIB_CIPHER
&& ERR_GET_REASON(n) == CIPHER_R_BAD_DECRYPT)
#else
- if (ERR_GET_LIB(n) == ERR_LIB_EVP
- && ERR_GET_REASON(n) == EVP_R_BAD_DECRYPT)
+ if ((ERR_GET_LIB(n) == ERR_LIB_PEM
+ && ERR_GET_REASON(n) == PEM_R_BAD_DECRYPT)
+ || (ERR_GET_LIB(n) == ERR_LIB_EVP
+ && ERR_GET_REASON(n) == EVP_R_BAD_DECRYPT))
#endif
{
ERR_clear_error();

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 810 October 24, 2014 07:30AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 348 October 27, 2014 09:56AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Maxim Dounin 306 October 27, 2014 12:30PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 288 October 27, 2014 05:40PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 367 October 29, 2014 02:12PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 390 October 29, 2014 03:12PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 321 October 29, 2014 03:28PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 284 October 30, 2014 05:42AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 378 October 30, 2014 10:42AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 301 October 29, 2014 03:20PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 324 October 30, 2014 12:16AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 312 October 27, 2014 07:52PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready