From 9fadd6f9e539d7f702e099f180c6dbe4d82b9659 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 20 Oct 2023 01:33:10 +0200 Subject: [PATCH] Make X509_ALGOR opaque for LibreSSL The struct is still public because that is also the case in OpenSSL, but it should no longer be accessed directly. --- openssl-sys/src/handwritten/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-sys/src/handwritten/types.rs b/openssl-sys/src/handwritten/types.rs index 06354728f2..f4e9106432 100644 --- a/openssl-sys/src/handwritten/types.rs +++ b/openssl-sys/src/handwritten/types.rs @@ -329,7 +329,7 @@ cfg_if! { } } cfg_if! { - if #[cfg(ossl110)] { + if #[cfg(any(ossl110, libressl350))] { pub enum X509_ALGOR {} } else { #[repr(C)]