This function has assumption that the certificate chain has 2 segments.
1) in TestSpdmRequesterGetCertificateCase2()
assert_int_equal (SpdmContext->Transcript.MessageB.BufferSize, sizeof(SPDM_GET_CERTIFICATE_REQUEST)2 + sizeof(SPDM_CERTIFICATE_RESPONSE)2 + DataSize);
2) in "case 0x2:"
TempBufSize = sizeof(SPDM_CERTIFICATE_RESPONSE) + RemainderLength;
This function has assumption that the certificate chain has 2 segments. 1) in TestSpdmRequesterGetCertificateCase2() assert_int_equal (SpdmContext->Transcript.MessageB.BufferSize, sizeof(SPDM_GET_CERTIFICATE_REQUEST)2 + sizeof(SPDM_CERTIFICATE_RESPONSE)2 + DataSize);
2) in "case 0x2:" TempBufSize = sizeof(SPDM_CERTIFICATE_RESPONSE) + RemainderLength;