Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow build libfetch with ancient version of openssl
Baptiste Daroussin committed 11 years ago
commit 57dd0d5073063ec823dcdcc3b34bc3a3d9d5b399
parent cbd59df
1 file changed +4 -0
modified external/libfetch/common.c
@@ -686,10 +686,14 @@ fetch_ssl_setup_transport_layer(SSL_CTX *ctx, int verbose)
		ssl_ctx_options |= SSL_OP_NO_SSLv3;
	if (getenv("SSL_NO_TLS1") != NULL)
		ssl_ctx_options |= SSL_OP_NO_TLSv1;
+
#ifdef SSL_OP_NO_TLSv1_1
	if (getenv("SSL_NO_TLS1_1") != NULL)
		ssl_ctx_options |= SSL_OP_NO_TLSv1_1;
+
#endif
+
#ifdef SSL_OP_NO_TLSv1_2
	if (getenv("SSL_NO_TLS1_2") != NULL)
		ssl_ctx_options |= SSL_OP_NO_TLSv1_2;
+
#endif
	if (verbose)
		fetch_info("SSL options: %lx", ssl_ctx_options);
	SSL_CTX_set_options(ctx, ssl_ctx_options);