aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tlsdate/libressl-sslstate.patch
blob: de8ac98154324132651ecab955729fd18b2ee996 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/tlsdate-helper.c.orig
+++ b/src/tlsdate-helper.c
@@ -374,7 +374,7 @@
 openssl_time_callback (const SSL* ssl, int where, int ret)
 {
   if (where == SSL_CB_CONNECT_LOOP &&
-      (ssl->state == SSL3_ST_CR_SRVR_HELLO_A || ssl->state == SSL3_ST_CR_SRVR_HELLO_B))
+      (SSL_state(ssl) == SSL3_ST_CR_SRVR_HELLO_A || SSL_state(ssl) == SSL3_ST_CR_SRVR_HELLO_B))
   {
     // XXX TODO: If we want to trust the remote system for time,
     // can we just read that time out of the remote system and if the