-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update RPK patch to latest patchset #138
base: master
Are you sure you want to change the base?
Conversation
a010918
to
3fc8e5c
Compare
483cf08
to
db520ac
Compare
boring/src/ssl/callbacks.rs
Outdated
al: *mut u8, | ||
) -> ffi::ssl_verify_result_t | ||
where | ||
F: Fn(&mut SslRef, &mut u8) -> bool + 'static + Sync + Send, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth making API safer here by making the closure accept a mut ref to https://docs.rs/boring/latest/boring/ssl/struct.SslAlert.html instead of raw u8
78a4cee
to
4d46d27
Compare
key.as_ptr(), | ||
ptr::null_mut(), | ||
)) | ||
.map(|_| ()) | ||
} | ||
} | ||
|
||
pub fn configure_default_rpk_custom_verify(&mut self, cert: &[u8]) -> Result<(), ErrorStack> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is undocumented.
boring/src/ssl/mod.rs
Outdated
/// [`SSL_CTX_set_custom_verify`]: https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#SSL_CTX_set_custom_verify | ||
pub fn set_custom_verify<F>(&mut self, mode: SslVerifyMode, verify: F) | ||
where | ||
F: Fn(&mut SslRef, &mut u8) -> bool + 'static + Sync + Send, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&mut SslAlert
No description provided.