From 40f971b823f66cce90d3bcbc6ad2fc275522926d Mon Sep 17 00:00:00 2001 From: Duncaen Date: Thu, 13 Apr 2017 00:42:32 +0200 Subject: [PATCH] tlsdate: fix build with libressl-2.5 --- srcpkgs/tlsdate/patches/libressl-sslstate.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/tlsdate/patches/libressl-sslstate.patch diff --git a/srcpkgs/tlsdate/patches/libressl-sslstate.patch b/srcpkgs/tlsdate/patches/libressl-sslstate.patch new file mode 100644 index 00000000000..5207753222b --- /dev/null +++ b/srcpkgs/tlsdate/patches/libressl-sslstate.patch @@ -0,0 +1,11 @@ +--- src/tlsdate-helper.c.orig ++++ 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