Files
ce_cdm/oemcrypto/util/src/prov4_validation_helper.cpp
2024-11-27 00:07:23 +00:00

26 lines
625 B
C++

// Copyright 2024 Google LLC. All Rights Reserved. This file and proprietary
// source code may only be used and distributed under the Widevine License
// Agreement.
//
#include "prov4_validation_helper.h"
namespace wvoec {
namespace util {
std::string StatusToString(FieldStatus status) {
if (status == FieldStatus::kAbsent) {
return "<absent>";
}
if (status == FieldStatus::kEmpty) {
return "<empty>";
}
return "present";
}
void ApplyStatus(CborMessageStatus& status, CborMessageStatus new_status) {
if (new_status > status) {
status = new_status;
}
}
} // namespace util
} // namespace wvoec