Skip to content

Commit 5fddfda

Browse files
author
Jonas Maier
committed
make TS_VERIFY_CTX struct opaque such that it compiles everywhere
1 parent 75d5cc2 commit 5fddfda

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

openssl-sys/src/ts.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,7 @@ pub enum TS_REQ {}
1111
pub enum TS_RESP {}
1212
pub enum TS_TST_INFO {}
1313
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-
}
14+
pub enum TS_VERIFY_CTX {}
3415

3516
pub const TS_VFY_SIGNATURE: c_uint = 0x1;
3617
pub const TS_VFY_VERSION: c_uint = 0x2;

0 commit comments

Comments
 (0)