Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for protected and unprotected headers #100

Merged
merged 15 commits into from
Aug 19, 2024

Conversation

msftsettiy
Copy link
Collaborator

This PR contains code and tests to allow users to supply protected and un-protected headers in the tool. Two options are provided for specifying headers. They are as follows:

  1. A JSON file containing the collection of headers.
  2. Command-line flags to specify a collection of name-value pairs that represent the headers.

In this iteration, headers containing either an int32 value or a string value are supported.

Help text for the sign command and CoseSignTool.md are updated.

docs/CoseSignTool.md Outdated Show resolved Hide resolved
Copy link
Contributor

@lemccomb lemccomb left a comment

Choose a reason for hiding this comment

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

Looks good overall.
I have a couple suggested tweaks.

CoseSign1.Headers.Tests/CoseHeaderFactoryTests.cs Fixed Show resolved Hide resolved
CoseSign1.Headers/CoseHeaderFactory.cs Fixed Show resolved Hide resolved
CoseSign1.Headers/CoseHeaderFactory.cs Fixed Show resolved Hide resolved
CoseSignTool.Tests/MainTests.cs Fixed Show resolved Hide resolved
Copy link
Contributor

@lemccomb lemccomb left a comment

Choose a reason for hiding this comment

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

Looks good.

@msftsettiy msftsettiy merged commit 9c6de13 into main Aug 19, 2024
10 checks passed
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.

4 participants