You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
The spec requires the message concatenation performed only after a successful completion response.
258 Concatenate() is the standard concatenation function that is performed only after a successful
completion response on the entire request and response contents.
265 ◦ If a response contains an ErrorCode other than ResponseNotReady :
266 No concatenation function is performed on the contents of both the original request and
response.
But the behavior of the current Responder is typically:
This model didn't handle the scenario when some errors occur after 2), the request shouldn't be appended into the buffer.
It might be better to change the behavior as:
SpdmGetResponseFoo()
{
1. validate request
2. generate response
3. if everything is okay, concatenate request and response and append it into the managed buffer together.
}
(Note that lower layer failures, e.g. errors in MCTP or SMBus causing the response not sent to the requester, are ignored here.)
The current responder code for MEASUREMENT signature generation in the other hand implemented the similar requirement.
SpdmGetResponseMeasurement()
{
1. validate request
2. append request into managed buffer
3. generate response
3-1. reset the buffer if error X occurs
3-2. reset the buffer if error Y occurs
... and so on.
}
But it should be simpler to also apply the proposed model to simplify the flow.
The text was updated successfully, but these errors were encountered:
The spec requires the message concatenation performed only after a successful completion response.
258 Concatenate() is the standard concatenation function that is performed only after a successful
completion response on the entire request and response contents.
265 ◦ If a response contains an ErrorCode other than ResponseNotReady :
266 No concatenation function is performed on the contents of both the original request and
response.
But the behavior of the current Responder is typically:
This model didn't handle the scenario when some errors occur after 2), the request shouldn't be appended into the buffer.
It might be better to change the behavior as:
(Note that lower layer failures, e.g. errors in MCTP or SMBus causing the response not sent to the requester, are ignored here.)
The current responder code for MEASUREMENT signature generation in the other hand implemented the similar requirement.
But it should be simpler to also apply the proposed model to simplify the flow.
The text was updated successfully, but these errors were encountered: