Line 0
Link Here
|
|
|
1 |
From cc92c25a5fcbc1d3e4ebb8771fe87d961f2079bf Mon Sep 17 00:00:00 2001 |
2 |
From: Vanilla Hsu <vanilla@fatpipi.com> |
3 |
Date: Sat, 14 Jan 2017 09:36:57 +0800 |
4 |
Subject: [PATCH] Fix building with libressl. |
5 |
|
6 |
--- |
7 |
src/hitch.c | 2 +- |
8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
9 |
|
10 |
diff --git a/src/hitch.c b/src/hitch.c |
11 |
index 5b48680..03b4580 100644 |
12 |
--- src/hitch.c.orig 2016-12-22 13:48:49 UTC |
13 |
+++ src/hitch.c |
14 |
@@ -683,7 +683,7 @@ load_privatekey(SSL_CTX *ctx, const char |
15 |
return NULL; |
16 |
} |
17 |
|
18 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
19 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
20 |
#define SSL_CTX_get_default_passwd_cb(ctx) (ctx->default_passwd_callback) |
21 |
#define SSL_CTX_get_default_passwd_cb_userdata(ctx) (ctx->default_passwd_callback_userdata) |
22 |
#endif |