Skip to content

Commit ef70768

Browse files
author
Jonas Maier
committed
feature gate X509_ALGOR_set_md for openssl only
1 parent 971b7fc commit ef70768

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

openssl-sys/src/handwritten/x509.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ extern "C" {
212212

213213
pub fn X509_ALGOR_new() -> *mut X509_ALGOR;
214214
pub fn X509_ALGOR_free(x: *mut X509_ALGOR);
215+
216+
#[cfg(ossl110)]
215217
pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD);
216218

217219
pub fn X509_ALGOR_cmp(alg0: *const X509_ALGOR, alg1: *const X509_ALGOR) -> c_int;

openssl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub mod ssl;
193193
pub mod stack;
194194
pub mod string;
195195
pub mod symm;
196-
#[cfg(not(boringssl))]
196+
#[cfg(all(not(boringssl), not(libressl)))]
197197
pub mod ts;
198198
pub mod version;
199199
pub mod x509;

openssl/src/x509/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,7 @@ impl X509AlgorithmRef {
22912291
}
22922292
}
22932293

2294+
#[cfg(ossl110)]
22942295
#[corresponds(X509_ALGOR_set_md)]
22952296
pub fn set_md(&mut self, md: MessageDigest) {
22962297
unsafe {

0 commit comments

Comments
 (0)