View | Details | Raw Unified | Return to bug 218590 | Differences between
and this patch

Collapse All | Expand All

(-)mail/qmail/files/patch-LibreSSL (+26 lines)
Line 0 Link Here
1
--- qmail-remote.c.orig	2017-05-14 13:50:09 UTC
2
+++ qmail-remote.c
3
@@ -266,7 +266,7 @@ char *append;
4
 {
5
 #ifdef TLS
6
   /* shouldn't talk to the client unless in an appropriate state */
7
-  int state = ssl ? ssl->state : SSL_ST_BEFORE;
8
+  int state = SSL_get_state(ssl);
9
   if (state & SSL_ST_OK || (!smtps && state & SSL_ST_BEFORE))
10
 #endif
11
   substdio_putsflush(&smtpto,"QUIT\r\n");
12
--- ssl_timeoutio.c.orig	2017-05-14 13:50:09 UTC
13
+++ ssl_timeoutio.c
14
@@ -74,10 +74,10 @@ int ssl_timeoutrehandshake(int t, int rf
15
 
16
   SSL_renegotiate(ssl);
17
   r = ssl_timeoutio(SSL_do_handshake, t, rfd, wfd, ssl, NULL, 0);
18
-  if (r <= 0 || ssl->type == SSL_ST_CONNECT) return r;
19
+  if (r <= 0 || SSL_get_state(ssl) == SSL_ST_CONNECT) return r;
20
 
21
   /* this is for the server only */
22
-  ssl->state = SSL_ST_ACCEPT;
23
+  SSL_set_connect_state(ssl);
24
   return ssl_timeoutio(SSL_do_handshake, t, rfd, wfd, ssl, NULL, 0);
25
 }
26
 

Return to bug 218590