We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e10400 commit b2cbe5fCopy full SHA for b2cbe5f
1 file changed
src/commands/measurements/request.rs
@@ -47,6 +47,7 @@ use crate::{
47
/// - Connection state must be >= AlgorithmsNegotiated
48
///
49
/// # Transcript
50
+/// - Resets M1/M2 message transcript
51
/// - Appends request to the L1 transcript context
52
pub fn generate_get_measurements<'a>(
53
ctx: &mut SpdmContext<'a>,
@@ -148,6 +149,7 @@ pub fn generate_get_measurements<'a>(
148
149
.push_data(payload_len)
150
.map_err(|_| (false, CommandError::BufferTooSmall))?;
151
152
+ ctx.transcript_mgr.reset_context(TranscriptContext::M1);
153
ctx.append_message_to_transcript(req_buf, TranscriptContext::L1)
154
}
155
0 commit comments