Skip to content

Commit

Permalink
pipeline fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Maier committed Aug 29, 2024
1 parent 75d5cc2 commit cdab526
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 29 deletions.
2 changes: 2 additions & 0 deletions openssl-sys/src/handwritten/x509.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ extern "C" {

pub fn X509_ALGOR_new() -> *mut X509_ALGOR;
pub fn X509_ALGOR_free(x: *mut X509_ALGOR);

#[cfg(ossl101)]
pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD);

pub fn X509_ALGOR_cmp(alg0: *const X509_ALGOR, alg1: *const X509_ALGOR) -> c_int;
Expand Down
27 changes: 2 additions & 25 deletions openssl-sys/src/ts.rs
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
use libc::*;

use crate::{
ASN1_INTEGER, ASN1_OBJECT, ASN1_OCTET_STRING, BIO, EVP_MD, EVP_PKEY, X509, X509_ALGOR,
};

use super::ASN1_STRING;
use super::*;

pub enum TS_MSG_IMPRINT {}
pub enum TS_REQ {}
pub enum TS_RESP {}
pub enum TS_TST_INFO {}
pub enum TS_RESP_CTX {}

cfg_if! {
if #[cfg(ossl110)] {
pub enum TS_VERIFY_CTX {}
} else {
#[repr(C)]
pub struct TS_VERIFY_CTX {
flags: c_uint,
store: *mut X509_STORE,
certs: *mut stack_st_X509,
policy: *mut ASN1_OBJECT,
md_alg: *mut X509_ALGOR,
imprint: *mut c_uchar,
imprint_len: c_uint,
data: *mut BIO,
nonce: *mut ASN1_INTEGER,
tsa_name: *mut GENERAL_NAME,
}
}
}
pub enum TS_VERIFY_CTX {}

pub const TS_VFY_SIGNATURE: c_uint = 0x1;
pub const TS_VFY_VERSION: c_uint = 0x2;
Expand Down
1 change: 1 addition & 0 deletions openssl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ pub mod ssl;
pub mod stack;
pub mod string;
pub mod symm;
#[cfg(all(not(boringssl), not(libressl)))]
pub mod ts;
pub mod version;
pub mod x509;
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl TsRespContext {
}
}

foreign_type_and_impl_send_sync!{
foreign_type_and_impl_send_sync! {
type CType = ffi::TS_TST_INFO;
fn drop = ffi::TS_TST_INFO_free;
pub struct TsTstInfo;
Expand Down
5 changes: 2 additions & 3 deletions openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,7 @@ impl X509AlgorithmRef {
}
}

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

impl PartialEq for X509AlgorithmRef {
fn eq(&self, other: &Self) -> bool {
unsafe {
ffi::X509_ALGOR_cmp(self.as_ptr(), other.as_ptr()) == 0
}
unsafe { ffi::X509_ALGOR_cmp(self.as_ptr(), other.as_ptr()) == 0 }
}
}

Expand Down

0 comments on commit cdab526

Please sign in to comment.