From d7a433bdef4bd232c00cddff1a18569b23903ba4 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 14 Oct 2016 19:16:08 -0700 Subject: Respect osslconf in systest Also cfg off SSLv3_method, since it's disabled in the OpenSSL that ships with Arch Linux. More such flags can be added on demand - it doesn't seem worth auditing everything for them. --- openssl-sys/src/ossl10x.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'openssl-sys/src') diff --git a/openssl-sys/src/ossl10x.rs b/openssl-sys/src/ossl10x.rs index 86451a0c..16d669b0 100644 --- a/openssl-sys/src/ossl10x.rs +++ b/openssl-sys/src/ossl10x.rs @@ -549,6 +549,7 @@ extern { pub fn OPENSSL_add_all_algorithms_noconf(); pub fn HMAC_CTX_init(ctx: *mut ::HMAC_CTX); pub fn HMAC_CTX_cleanup(ctx: *mut ::HMAC_CTX); + #[cfg(not(osslconf = "OPENSSL_NO_SSL3_METHOD"))] pub fn SSLv3_method() -> *const ::SSL_METHOD; pub fn TLSv1_method() -> *const ::SSL_METHOD; pub fn SSLv23_method() -> *const ::SSL_METHOD; -- cgit v1.2.3