bool AttestationParameters::Validate()

in client-library/src/Attestation/AttestationClient/lib/AttestationParameters.cpp [24:44]


bool AttestationParameters::Validate() const {
    // Check if the member variable values are as expected.

    // Validate the tpminfo valus.
    if(!tpm_info_.Validate()) {
        return false;
    }

    if (!isolation_info_.Validate()) {
        return false;
    }

    if(os_info_.type == OsType::INVALID ||
       os_info_.build.empty() ||
       os_info_.distro_name.empty() ||
       os_info_.distro_version_major == 0 ||
       attestation_protocol_ver_.empty()) {
        return false;
    }
    return true;
}