Loading security/keymint/support/include/keymint_support/keymint_tags.h +3 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,9 @@ template <TagType tag_type, Tag tag> inline std::optional< std::reference_wrapper<const typename TypedTag2ValueType<TypedTag<tag_type, tag>>::type>> authorizationValue(TypedTag<tag_type, tag> ttag, const KeyParameter& param) { if (TypedTag2ValueType<TypedTag<tag_type, tag>>::unionTag != param.value.getTag()) return {}; // We only check if the parameter has the correct tag here; accessTagValue checks if the correct // union field was initialized. if (tag != param.tag) return {}; return accessTagValue(ttag, param); } Loading Loading
security/keymint/support/include/keymint_support/keymint_tags.h +3 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,9 @@ template <TagType tag_type, Tag tag> inline std::optional< std::reference_wrapper<const typename TypedTag2ValueType<TypedTag<tag_type, tag>>::type>> authorizationValue(TypedTag<tag_type, tag> ttag, const KeyParameter& param) { if (TypedTag2ValueType<TypedTag<tag_type, tag>>::unionTag != param.value.getTag()) return {}; // We only check if the parameter has the correct tag here; accessTagValue checks if the correct // union field was initialized. if (tag != param.tag) return {}; return accessTagValue(ttag, param); } Loading