pub struct DecryptingTlsStreamParser { /* private fields */ }Expand description
TLS stream parser with decryption support.
When constructed with a KeyLog, this parser will attempt to decrypt
TLS application data and return it via StreamParseResult::Transform
for further parsing by child protocol parsers (e.g., HTTP/2).
Implementations§
Source§impl DecryptingTlsStreamParser
impl DecryptingTlsStreamParser
Sourcepub fn with_keylog(keylog: Arc<KeyLog>) -> Self
pub fn with_keylog(keylog: Arc<KeyLog>) -> Self
Create from an already-wrapped keylog.
Sourcepub fn remove_connection(&self, connection_id: u64)
pub fn remove_connection(&self, connection_id: u64)
Remove state for a closed connection.
Trait Implementations§
Source§impl StreamParser for DecryptingTlsStreamParser
impl StreamParser for DecryptingTlsStreamParser
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable name.
Source§fn can_parse_stream(&self, context: &StreamContext) -> bool
fn can_parse_stream(&self, context: &StreamContext) -> bool
Check if this parser can handle the stream based on context.
Source§fn parse_stream(
&self,
data: &[u8],
context: &StreamContext,
) -> StreamParseResult
fn parse_stream( &self, data: &[u8], context: &StreamContext, ) -> StreamParseResult
Parse from reassembled stream bytes. Read more
Source§fn message_schema(&self) -> Vec<FieldDescriptor>
fn message_schema(&self) -> Vec<FieldDescriptor>
Schema for messages produced by this parser.
Auto Trait Implementations§
impl Freeze for DecryptingTlsStreamParser
impl RefUnwindSafe for DecryptingTlsStreamParser
impl Send for DecryptingTlsStreamParser
impl Sync for DecryptingTlsStreamParser
impl Unpin for DecryptingTlsStreamParser
impl UnwindSafe for DecryptingTlsStreamParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more