pub struct KeyManager(/* private fields */);Expand description
The KeyManager holds all of the keys that are generated by the key logging callbacks. This has been primarily designed to work with s2n-tls’s key logging, but should work with other implementations as well.
The KeyManager is internally reference counter and can be safely shared across connections.
Notes that a single KeyManager is generally set on a config but decrypting is done per-connection, so that is a one-to-many relationship.
The Pin is necessary for safe use with s2n-tls, which will case the reference
to a c_void pointer.
Implementations§
Source§impl KeyManager
impl KeyManager
pub fn new() -> Self
pub fn enable_s2n_logging(&self, config: &mut Builder)
Sourcepub fn parse_key_log_line(&self, line: &[u8])
pub fn parse_key_log_line(&self, line: &[u8])
This signature is required by OpenSSL
pub fn register_key(&self, key: NssLog)
Trait Implementations§
Source§impl Clone for KeyManager
impl Clone for KeyManager
Source§fn clone(&self) -> KeyManager
fn clone(&self) -> KeyManager
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyManager
impl Debug for KeyManager
Source§impl Default for KeyManager
impl Default for KeyManager
Auto Trait Implementations§
impl Freeze for KeyManager
impl RefUnwindSafe for KeyManager
impl Send for KeyManager
impl Sync for KeyManager
impl Unpin for KeyManager
impl UnwindSafe for KeyManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)