aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-01-31 14:03:22 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-31 20:04:46 +0000
commit36f5cf8e4bbe863a5bcfaf33f5f0a460993a339f (patch)
tree9e9f2c15036f7e11da7e1251a0ea70835e94e832
parentd52285c9aa6f9c76e03f1001e7920ddeb6f6203f (diff)
downloadaports-36f5cf8e4bbe863a5bcfaf33f5f0a460993a339f.tar.bz2
aports-36f5cf8e4bbe863a5bcfaf33f5f0a460993a339f.tar.xz
libfetch: support OpenSSL
TLS_client_method is a LibreSSL extension. SSLv23_client_method is generic, and doesn't mean SSL v2/v3 only.
-rw-r--r--libfetch/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfetch/common.c b/libfetch/common.c
index 3bd8a536f4..e237828736 100644
--- a/libfetch/common.c
+++ b/libfetch/common.c
@@ -504,7 +504,7 @@ fetch_ssl(conn_t *conn, const struct url *URL, int verbose)
SSL_load_error_strings();
- conn->ssl_meth = TLS_client_method();
+ conn->ssl_meth = SSLv23_client_method();
conn->ssl_ctx = SSL_CTX_new(conn->ssl_meth);
SSL_CTX_set_mode(conn->ssl_ctx, SSL_MODE_AUTO_RETRY);