aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-19 09:47:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-19 09:47:56 +0000
commitf9cbf5de555b7307b60652e3965577ddbe7fa021 (patch)
treeb64c67e5f50f22405a4c4e12d062b7b7407d483d
parent5c9863bc75d178f9625964e456a95ec1d82dceeb (diff)
downloadaports-f9cbf5de555b7307b60652e3965577ddbe7fa021.tar.bz2
aports-f9cbf5de555b7307b60652e3965577ddbe7fa021.tar.xz
main/tlsdate: add missing patch
-rw-r--r--main/tlsdate/libressl-sslstate.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/tlsdate/libressl-sslstate.patch b/main/tlsdate/libressl-sslstate.patch
new file mode 100644
index 0000000000..de8ac98154
--- /dev/null
+++ b/main/tlsdate/libressl-sslstate.patch
@@ -0,0 +1,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