From 1166a6c3bf2185c83a19399cf69f7500e781d5c6 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 26 Dec 2017 14:54:45 -0700 Subject: [PATCH] Flag off constant --- openssl-sys/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 2040358a..eafda590 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1305,6 +1305,7 @@ pub const X509_FILETYPE_DEFAULT: c_int = 3; pub const X509_FILETYPE_PEM: c_int = 1; pub const X509_V_OK: c_int = 0; +#[cfg(not(libressl))] pub const X509_V_ERR_UNSPECIFIED: c_int = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: c_int = 2; pub const X509_V_ERR_UNABLE_TO_GET_CRL: c_int = 3;