Skip to content

Commit

Permalink
Merge pull request #2042 from jgallagher/sys-add-x509-check-fns
Browse files Browse the repository at this point in the history
[openssl-sys] Add X509_check_{host,email,ip,ip_asc} fns
  • Loading branch information
sfackler committed Sep 13, 2023
2 parents b1ac079 + 2dc8f96 commit f990708
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions openssl-sys/src/handwritten/x509v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,22 @@ extern "C" {
pub fn DIST_POINT_free(dist_point: *mut DIST_POINT);
pub fn DIST_POINT_NAME_free(dist_point: *mut DIST_POINT_NAME);
}

#[cfg(ossl102)]
extern "C" {
pub fn X509_check_host(
x: *mut X509,
chk: *const c_char,
chklen: usize,
flags: c_uint,
peername: *mut *mut c_char,
) -> c_int;
pub fn X509_check_email(
x: *mut X509,
chk: *const c_char,
chklen: usize,
flags: c_uint,
) -> c_int;
pub fn X509_check_ip(x: *mut X509, chk: *const c_uchar, chklen: usize, flags: c_uint) -> c_int;
pub fn X509_check_ip_asc(x: *mut X509, ipasc: *const c_char, flags: c_uint) -> c_int;
}

0 comments on commit f990708

Please sign in to comment.