Skip to content

Commit cdab526

Browse files
author
Jonas Maier
committed
pipeline fixes
1 parent 75d5cc2 commit cdab526

File tree

5 files changed

+8
-29
lines changed

5 files changed

+8
-29
lines changed

openssl-sys/src/handwritten/x509.rs

+2
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(ossl101)]
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-sys/src/ts.rs

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,13 @@
11
use libc::*;
22

3-
use crate::{
4-
ASN1_INTEGER, ASN1_OBJECT, ASN1_OCTET_STRING, BIO, EVP_MD, EVP_PKEY, X509, X509_ALGOR,
5-
};
6-
7-
use super::ASN1_STRING;
3+
use super::*;
84

95
pub enum TS_MSG_IMPRINT {}
106
pub enum TS_REQ {}
117
pub enum TS_RESP {}
128
pub enum TS_TST_INFO {}
139
pub enum TS_RESP_CTX {}
14-
15-
cfg_if! {
16-
if #[cfg(ossl110)] {
17-
pub enum TS_VERIFY_CTX {}
18-
} else {
19-
#[repr(C)]
20-
pub struct TS_VERIFY_CTX {
21-
flags: c_uint,
22-
store: *mut X509_STORE,
23-
certs: *mut stack_st_X509,
24-
policy: *mut ASN1_OBJECT,
25-
md_alg: *mut X509_ALGOR,
26-
imprint: *mut c_uchar,
27-
imprint_len: c_uint,
28-
data: *mut BIO,
29-
nonce: *mut ASN1_INTEGER,
30-
tsa_name: *mut GENERAL_NAME,
31-
}
32-
}
33-
}
10+
pub enum TS_VERIFY_CTX {}
3411

3512
pub const TS_VFY_SIGNATURE: c_uint = 0x1;
3613
pub const TS_VFY_VERSION: c_uint = 0x2;

openssl/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ pub mod ssl;
193193
pub mod stack;
194194
pub mod string;
195195
pub mod symm;
196+
#[cfg(all(not(boringssl), not(libressl)))]
196197
pub mod ts;
197198
pub mod version;
198199
pub mod x509;

openssl/src/ts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ impl TsRespContext {
410410
}
411411
}
412412

413-
foreign_type_and_impl_send_sync!{
413+
foreign_type_and_impl_send_sync! {
414414
type CType = ffi::TS_TST_INFO;
415415
fn drop = ffi::TS_TST_INFO_free;
416416
pub struct TsTstInfo;

openssl/src/x509/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,7 @@ impl X509AlgorithmRef {
22912291
}
22922292
}
22932293

2294+
#[cfg(ossl101)]
22942295
#[corresponds(X509_ALGOR_set_md)]
22952296
pub fn set_md(&mut self, md: MessageDigest) {
22962297
unsafe {
@@ -2301,9 +2302,7 @@ impl X509AlgorithmRef {
23012302

23022303
impl PartialEq for X509AlgorithmRef {
23032304
fn eq(&self, other: &Self) -> bool {
2304-
unsafe {
2305-
ffi::X509_ALGOR_cmp(self.as_ptr(), other.as_ptr()) == 0
2306-
}
2305+
unsafe { ffi::X509_ALGOR_cmp(self.as_ptr(), other.as_ptr()) == 0 }
23072306
}
23082307
}
23092308

0 commit comments

Comments
 (0)