pub struct CmpRequest {
pub message_type: CmpMessageType,
pub transaction_id: Vec<u8>,
pub sender_nonce: Vec<u8>,
pub sender: String,
pub protection: CmpProtectionType,
pub body_der: Vec<u8>,
}Expand description
Parsed CMP request message.
Represents the essential fields extracted from a PKIMessage DER encoding for dispatch and processing.
Fields§
§message_type: CmpMessageTypeThe request message type (ir, cr, kur, rr, genm, certConf).
transaction_id: Vec<u8>Transaction identifier (RFC 9810 §5.1.1).
Used to correlate request-response pairs. The server copies this value into the response.
sender_nonce: Vec<u8>Sender nonce (RFC 9810 §5.1.1).
Provides replay protection. The server returns this as
recipNonce in the response.
sender: StringSender general name (RFC 9810 §5.1.1).
For signature-protected messages: the certificate subject DN. For MAC-protected messages: the reference number.
protection: CmpProtectionTypeProtection mechanism and credentials.
body_der: Vec<u8>DER-encoded PKIBody content for the specific message type.
Trait Implementations§
Source§impl Clone for CmpRequest
impl Clone for CmpRequest
Source§fn clone(&self) -> CmpRequest
fn clone(&self) -> CmpRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CmpRequest
impl RefUnwindSafe for CmpRequest
impl Send for CmpRequest
impl Sync for CmpRequest
impl Unpin for CmpRequest
impl UnsafeUnpin for CmpRequest
impl UnwindSafe for CmpRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more