Loading openssl-sys/src/handwritten/x509.rs +19 −0 Original line number Diff line number Diff line Loading @@ -645,3 +645,22 @@ extern "C" { pub fn X509_print(bio: *mut BIO, x509: *mut X509) -> c_int; pub fn X509_REQ_print(bio: *mut BIO, req: *mut X509_REQ) -> c_int; } #[repr(C)] pub struct X509_PURPOSE { pub purpose: c_int, pub trust: c_int, // Default trust ID pub flags: c_int, pub check_purpose: Option<unsafe extern "C" fn(*const X509_PURPOSE, *const X509, c_int) -> c_int>, pub name: *mut c_char, pub sname: *mut c_char, pub usr_data: *mut c_void, } const_ptr_api! { extern "C" { pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int; pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE; } } openssl-sys/src/handwritten/x509_vfy.rs +0 −19 Original line number Diff line number Diff line Loading @@ -4,18 +4,6 @@ use *; #[cfg(any(libressl, all(ossl102, not(ossl110))))] pub enum X509_VERIFY_PARAM_ID {} #[repr(C)] pub struct X509_PURPOSE { pub purpose: c_int, pub trust: c_int, // Default trust ID pub flags: c_int, pub check_purpose: Option<unsafe extern "C" fn(*const X509_PURPOSE, *const X509, c_int) -> c_int>, pub name: *mut c_char, pub sname: *mut c_char, pub usr_data: *mut c_void, } extern "C" { #[cfg(ossl110)] pub fn X509_LOOKUP_meth_free(method: *mut X509_LOOKUP_METHOD); Loading Loading @@ -142,10 +130,3 @@ extern "C" { #[cfg(ossl102)] pub fn X509_VERIFY_PARAM_set_purpose(param: *mut X509_VERIFY_PARAM, purpose: c_int) -> c_int; } const_ptr_api! { extern "C" { pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int; pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE; } } Loading
openssl-sys/src/handwritten/x509.rs +19 −0 Original line number Diff line number Diff line Loading @@ -645,3 +645,22 @@ extern "C" { pub fn X509_print(bio: *mut BIO, x509: *mut X509) -> c_int; pub fn X509_REQ_print(bio: *mut BIO, req: *mut X509_REQ) -> c_int; } #[repr(C)] pub struct X509_PURPOSE { pub purpose: c_int, pub trust: c_int, // Default trust ID pub flags: c_int, pub check_purpose: Option<unsafe extern "C" fn(*const X509_PURPOSE, *const X509, c_int) -> c_int>, pub name: *mut c_char, pub sname: *mut c_char, pub usr_data: *mut c_void, } const_ptr_api! { extern "C" { pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int; pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE; } }
openssl-sys/src/handwritten/x509_vfy.rs +0 −19 Original line number Diff line number Diff line Loading @@ -4,18 +4,6 @@ use *; #[cfg(any(libressl, all(ossl102, not(ossl110))))] pub enum X509_VERIFY_PARAM_ID {} #[repr(C)] pub struct X509_PURPOSE { pub purpose: c_int, pub trust: c_int, // Default trust ID pub flags: c_int, pub check_purpose: Option<unsafe extern "C" fn(*const X509_PURPOSE, *const X509, c_int) -> c_int>, pub name: *mut c_char, pub sname: *mut c_char, pub usr_data: *mut c_void, } extern "C" { #[cfg(ossl110)] pub fn X509_LOOKUP_meth_free(method: *mut X509_LOOKUP_METHOD); Loading Loading @@ -142,10 +130,3 @@ extern "C" { #[cfg(ossl102)] pub fn X509_VERIFY_PARAM_set_purpose(param: *mut X509_VERIFY_PARAM, purpose: c_int) -> c_int; } const_ptr_api! { extern "C" { pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int; pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE; } }