We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ba5b2 commit 5686e16Copy full SHA for 5686e16
openssl-sys/src/lib.rs
@@ -41,8 +41,18 @@ mod aws_lc {
41
#[cfg(not(feature = "aws-lc"))]
42
include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
43
44
+ use libc::{c_char, c_void, c_long};
45
+
46
// AWS-LC does not require initialization.
- pub fn init() {}
47
+ pub fn init() {
48
+ unsafe { CRYPTO_library_init() }
49
+ }
50
51
+ // BIO_get_mem_data is a C preprocessor macro by definition
52
+ #[allow(non_snake_case, clippy::not_unsafe_ptr_arg_deref)]
53
+ pub fn BIO_get_mem_data(b: *mut BIO, pp: *mut *mut c_char) -> c_long {
54
+ unsafe { BIO_ctrl(b, BIO_CTRL_INFO, 0, pp.cast::<c_void>()) }
55
56
}
57
#[cfg(awslc)]
58
pub use aws_lc::*;
0 commit comments