View | Details | Raw Unified | Return to bug 218736
Collapse All | Expand All

(-)postgresql92-server/files/patch-src_backend_libpq_be-secure.c (+22 lines)
Line 0 Link Here
1
--- src/backend/libpq/be-secure.c.orig	2017-04-18 17:44:04 UTC
2
+++ src/backend/libpq/be-secure.c
3
@@ -338,13 +338,13 @@ secure_write(Port *port, void *ptr, size
4
 				ereport(COMMERROR,
5
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
6
 						 errmsg("SSL renegotiation failure")));
7
-			if (port->ssl->state != SSL_ST_OK)
8
+			if (SSL_state(port->ssl) != SSL_ST_OK)
9
 				ereport(COMMERROR,
10
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
11
 						 errmsg("SSL failed to send renegotiation request")));
12
-			port->ssl->state |= SSL_ST_ACCEPT;
13
+			SSL_set_state(port->ssl, SSL_state(port->ssl) | SSL_ST_ACCEPT);
14
 			SSL_do_handshake(port->ssl);
15
-			if (port->ssl->state != SSL_ST_OK)
16
+			if (SSL_state(port->ssl) != SSL_ST_OK)
17
 				ereport(COMMERROR,
18
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
19
 						 errmsg("SSL renegotiation failure")));
20
yes
21
native
22
text/plain
(-)postgresql93-server/files/patch-src_backend_libpq_be-secure.c (+22 lines)
Line 0 Link Here
1
--- src/backend/libpq/be-secure.c.orig	2017-04-18 16:20:06 UTC
2
+++ src/backend/libpq/be-secure.c
3
@@ -338,13 +338,13 @@ secure_write(Port *port, void *ptr, size
4
 				ereport(COMMERROR,
5
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
6
 						 errmsg("SSL renegotiation failure")));
7
-			if (port->ssl->state != SSL_ST_OK)
8
+			if (SSL_state(port->ssl) != SSL_ST_OK)
9
 				ereport(COMMERROR,
10
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
11
 						 errmsg("SSL failed to send renegotiation request")));
12
-			port->ssl->state |= SSL_ST_ACCEPT;
13
+			SSL_set_state(port->ssl, SSL_state(port->ssl) | SSL_ST_ACCEPT);
14
 			SSL_do_handshake(port->ssl);
15
-			if (port->ssl->state != SSL_ST_OK)
16
+			if (SSL_state(port->ssl) != SSL_ST_OK)
17
 				ereport(COMMERROR,
18
 						(errcode(ERRCODE_PROTOCOL_VIOLATION),
19
 						 errmsg("SSL renegotiation failure")));
20
yes
21
native
22
text/plain

Return to bug 218736