Init
This commit is contained in:
19
src/handshake/encrypted_extensions.rs
Normal file
19
src/handshake/encrypted_extensions.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use core::marker::PhantomData;
|
||||
|
||||
use crate::extensions::messages::EncryptedExtensionsExtension;
|
||||
|
||||
use crate::ProtocolError;
|
||||
use crate::parse_buffer::ParseBuffer;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub struct EncryptedExtensions<'a> {
|
||||
_todo: PhantomData<&'a ()>,
|
||||
}
|
||||
|
||||
impl<'a> EncryptedExtensions<'a> {
|
||||
pub fn parse(buf: &mut ParseBuffer<'a>) -> Result<EncryptedExtensions<'a>, ProtocolError> {
|
||||
EncryptedExtensionsExtension::parse_vector::<16>(buf)?;
|
||||
Ok(EncryptedExtensions { _todo: PhantomData })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user