Skip to content

Unittests and fixed issue where with parsing of digest challenge - opaque fails with empty string#32983

Merged
davidsh merged 1 commit intodotnet:masterfrom
microkatz:mikatz-httpdigest-parse
Mar 1, 2020
Merged

Unittests and fixed issue where with parsing of digest challenge - opaque fails with empty string#32983
davidsh merged 1 commit intodotnet:masterfrom
microkatz:mikatz-httpdigest-parse

Conversation

@microkatz
Copy link
Contributor

@microkatz microkatz commented Feb 28, 2020

Added two digest unittests that test that whether or not opaque is an empty string, the qop value is read to incorporate the correct hash algorithm for the digest challenge. Also adjusted the conditional in the challenge parse function to allow the opaque value to be an empty string and continue parsing.

Fixes #32943

…g, the qop value is read to incorporate the correct hash algorithm for the digest challenge. Also adjusted the conditional in the challenge parse function to allow the opaque value to be an empty string
@dnfclas
Copy link

dnfclas commented Feb 28, 2020

CLA assistant check
All CLA requirements met.

@microkatz microkatz changed the title Unittests and fixed issue where with digest - opaque fails with empty string Unittests and fixed issue where with in parsing the digest challenge - opaque fails with empty string Feb 28, 2020
@microkatz microkatz changed the title Unittests and fixed issue where with in parsing the digest challenge - opaque fails with empty string Unittests and fixed issue where with parsing of digest challenge - opaque fails with empty string Feb 28, 2020
@davidsh davidsh added this to the 5.0 milestone Feb 28, 2020
@davidsh davidsh requested review from a team and mconnew February 28, 2020 20:45
Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@davidsh davidsh merged commit 2898e1e into dotnet:master Mar 1, 2020
@microkatz microkatz deleted the mikatz-httpdigest-parse branch March 2, 2020 17:32
@microkatz microkatz restored the mikatz-httpdigest-parse branch March 2, 2020 19:13
@davidsh
Copy link
Contributor

davidsh commented Mar 2, 2020

Planned to backport for .NET Core 3.1 servicing release. PR: dotnet/corefx#42877

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Digest challenge - opaque fails with empty string

5 participants