Skip to content

Commit

Permalink
print openssl version, and message when curl is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous committed Aug 29, 2023
1 parent 6cf05e4 commit 5ae5297
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions systest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ use std::ffi::CStr;
fn main() {
#[cfg(feature = "curl")]
println!("curl version is {:?}!", curl::Version::get().version());
#[cfg(not(feature = "curl"))]
println!("curl test disabled in this build!");

unsafe {
println!(
Expand All @@ -19,9 +21,13 @@ fn main() {
);
}

//unsafe{ println!("openssl version is {:?}!", CStr::from_ptr(openssl_sys::SSLEAY_VERSION));}
openssl_sys::init();
// println!("openssl version is {}!", openssl_sys::OPENSSL_VERSION);
unsafe {
println!(
"openssl version is {:?}!",
CStr::from_ptr(openssl_sys::OpenSSL_version(openssl_sys::OPENSSL_VERSION))
);
}

// unsafe {let ctx = zmq_sys::zmq_init(1); }

Expand Down

0 comments on commit 5ae5297

Please sign in to comment.