Skip to content

Commit 8a4db4b

Browse files
committed
X509_PURPOSE_get0() will return a const pointer
1 parent ec2a8c4 commit 8a4db4b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

openssl-sys/build/cfgs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
6262
if libressl_version >= 0x3_08_02_00_0 {
6363
cfgs.push("libressl382");
6464
}
65+
if libressl_version >= 0x3_09_00_00_0 {
66+
cfgs.push("libressl390");
67+
}
6568
} else {
6669
let openssl_version = openssl_version.unwrap();
6770

openssl-sys/src/handwritten/x509.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,9 @@ const_ptr_api! {
703703
extern "C" {
704704
pub fn X509_PURPOSE_get_by_sname(sname: #[const_ptr_if(any(ossl110, libressl280))] c_char) -> c_int;
705705
pub fn X509_PURPOSE_get_id(purpose: #[const_ptr_if(any(ossl110, libressl280))] X509_PURPOSE) -> c_int;
706+
pub fn X509_PURPOSE_get0(idx: c_int) -> #[const_ptr_if(libressl390)] X509_PURPOSE;
706707
}
707708
}
708-
extern "C" {
709-
pub fn X509_PURPOSE_get0(idx: c_int) -> *mut X509_PURPOSE;
710-
}
711709

712710
extern "C" {
713711
pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE;

0 commit comments

Comments
 (0)