Skip to content
Snippets Groups Projects
Commit 8c4f3cc7 authored by David Keeler's avatar David Keeler
Browse files

bug 987295 - mozilla::pkix: fix decoding OCSP response extensions r=cviecco

parent b7e2679c
No related branches found
No related tags found
No related merge requests found
...@@ -586,7 +586,8 @@ ResponseData(der::Input& input, Context& context, ...@@ -586,7 +586,8 @@ ResponseData(der::Input& input, Context& context,
} }
if (!input.AtEnd()) { if (!input.AtEnd()) {
if (CheckExtensionsForCriticality(input) != der::Success) { if (der::Nested(input, der::CONTEXT_SPECIFIC | der::CONSTRUCTED | 1,
CheckExtensionsForCriticality) != der::Success) {
return der::Failure; return der::Failure;
} }
} }
...@@ -708,9 +709,9 @@ SingleResponse(der::Input& input, Context& context) ...@@ -708,9 +709,9 @@ SingleResponse(der::Input& input, Context& context)
return der::Fail(SEC_ERROR_OCSP_OLD_RESPONSE); return der::Fail(SEC_ERROR_OCSP_OLD_RESPONSE);
} }
if (!input.AtEnd()) { if (!input.AtEnd()) {
if (CheckExtensionsForCriticality(input) != der::Success) { if (der::Nested(input, der::CONTEXT_SPECIFIC | der::CONSTRUCTED | 1,
CheckExtensionsForCriticality) != der::Success) {
return der::Failure; return der::Failure;
} }
} }
...@@ -860,7 +861,7 @@ CheckExtensionForCriticality(der::Input& input) ...@@ -860,7 +861,7 @@ CheckExtensionForCriticality(der::Input& input)
static der::Result static der::Result
CheckExtensionsForCriticality(der::Input& input) CheckExtensionsForCriticality(der::Input& input)
{ {
return der::NestedOf(input, der::SEQUENCE | 1, der::SEQUENCE, return der::NestedOf(input, der::SEQUENCE, der::SEQUENCE,
der::MustNotBeEmpty, CheckExtensionForCriticality); der::MustNotBeEmpty, CheckExtensionForCriticality);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment