Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rushilmehra
Copy link
Collaborator

No description provided.

@rushilmehra rushilmehra marked this pull request as draft August 3, 2023 09:10
@rushilmehra rushilmehra force-pushed the rpk-bump branch 2 times, most recently from a010918 to 3fc8e5c Compare August 3, 2023 09:17
tokio-boring/tests/rpk.rs Outdated Show resolved Hide resolved
boring/src/ssl/mod.rs Outdated Show resolved Hide resolved
@rushilmehra rushilmehra force-pushed the rpk-bump branch 3 times, most recently from 483cf08 to db520ac Compare August 9, 2023 20:43
@rushilmehra rushilmehra marked this pull request as ready for review August 9, 2023 21:10
boring/src/ssl/mod.rs Outdated Show resolved Hide resolved
boring/src/ssl/callbacks.rs Outdated Show resolved Hide resolved
al: *mut u8,
) -> ffi::ssl_verify_result_t
where
F: Fn(&mut SslRef, &mut u8) -> bool + 'static + Sync + Send,
Copy link
Collaborator

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

boring/src/ssl/mod.rs Outdated Show resolved Hide resolved
boring/src/ssl/mod.rs Show resolved Hide resolved
@rushilmehra rushilmehra force-pushed the rpk-bump branch 3 times, most recently from 78a4cee to 4d46d27 Compare August 15, 2023 21:00
boring/src/ssl/mod.rs Outdated Show resolved Hide resolved
boring/src/ssl/mod.rs Outdated Show resolved Hide resolved
key.as_ptr(),
ptr::null_mut(),
))
.map(|_| ())
}
}

pub fn configure_default_rpk_custom_verify(&mut self, cert: &[u8]) -> Result<(), ErrorStack> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is undocumented.

/// [`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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&mut SslAlert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants