Source release 19.4.0
This commit is contained in:
25
oemcrypto/util/src/prov4_validation_helper.cpp
Normal file
25
oemcrypto/util/src/prov4_validation_helper.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user