Skip to content

Use the Original Length - #75

Open
JoeyShapiro wants to merge 1 commit into
bodgit:masterfrom
JoeyShapiro:original-length
Open

JoeyShapiro wants to merge 1 commit into
bodgit:masterfrom
JoeyShapiro:original-length

Conversation

@JoeyShapiro

Copy link
Copy Markdown

The wrap function needs to set OriginalContent.Length to the length of the original content. The code in Client.wrap was doing the length of the sealed+length+sig.

This change follows what the spec requires on Section 2.2.9.1.1.2.1 of MS-WSMV

I changed the parameters of the public function Wrap. Let me know if you want it to use a deprecation style because it is no longer backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant