mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-20 17:52:47 +00:00
Found the actual issue. The problem is with the previous status update
not being implemented properly.
This commit is contained in:
parent
87eabc7e23
commit
ee4530cce2
@ -198,16 +198,18 @@ int provision() {
|
||||
= provisioner.sendAttestationCertificateRequest(certificateRequest);
|
||||
|
||||
hirs::pb::CertificateResponse cr;
|
||||
if (!cr.ParseFromString(akCertificateByteString) && cr.has_status()) {
|
||||
cr.ParseFromString(akCertificateByteString);
|
||||
if (cr.has_status()) {
|
||||
if (cr.status() == hirs::pb::ResponseStatus::FAIL) {
|
||||
cout << "----> Provisioning the quote failed.";
|
||||
cout << "----> Provisioning the quote failed. ";
|
||||
cout << "Please refer to the Attestation CA for details." << endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (akCertificateByteString == "") {
|
||||
cout << "----> Provisioning the quote failed.";
|
||||
cout << "----> Provisioning the quote failed. "
|
||||
<< "Certificate returned is empty. ";
|
||||
cout << "Please refer to the Attestation CA for details." << endl;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user