Skip to content

Commit

Permalink
SecurityPkg/DeviceSecurity: Record Nonc for No Trust Anchor case.
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <qi1.zhang@intel.com>
  • Loading branch information
qizhangz authored and jyao1 committed Dec 19, 2022
1 parent 30d09a7 commit 8453ff0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,7 @@ DoDeviceAuthentication (
*AuthState = TCG_DEVICE_SECURITY_EVENT_DATA_DEVICE_AUTH_STATE_NO_AUTH;
SecurityState->AuthenticationState = EDKII_DEVICE_SECURITY_STATE_ERROR_NO_CERT_PROVISION;
Status = ExtendCertificate (SpdmDeviceContext, *AuthState, CertChainSize, CertChain, NULL, 0, *ValidSlotId, SecurityState);
return Status;
}

if (IsValidCertChain && IsValidChallengeAuthSig && RootCertMatch) {
} else if (IsValidCertChain && IsValidChallengeAuthSig && RootCertMatch) {
*AuthState = TCG_DEVICE_SECURITY_EVENT_DATA_DEVICE_AUTH_STATE_SUCCESS;
SecurityState->AuthenticationState = EDKII_DEVICE_SECURITY_STATE_SUCCESS;
Status = ExtendCertificate (SpdmDeviceContext, *AuthState, CertChainSize, CertChain, TrustAnchor, TrustAnchorSize, *ValidSlotId, SecurityState);
Expand Down

0 comments on commit 8453ff0

Please sign in to comment.