Skip to content

Expose KeyPurposeId::to_decoded_oid()#385

Merged
ctz merged 3 commits intomainfrom
decoded-oi
Oct 1, 2025
Merged

Expose KeyPurposeId::to_decoded_oid()#385
ctz merged 3 commits intomainfrom
decoded-oi

Conversation

@djc
Copy link
Copy Markdown
Member

@djc djc commented Sep 16, 2025

To help external ExtendedKeyUsageValidators fill RequiredEkuNotFoundContext::present.

@djc djc requested review from cpu and ctz September 16, 2025 08:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.44%. Comparing base (b88328a) to head (7640e87).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #385   +/-   ##
=======================================
  Coverage   97.43%   97.44%           
=======================================
  Files          20       20           
  Lines        4101     4104    +3     
=======================================
+ Hits         3996     3999    +3     
  Misses        105      105           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

IMO it'd be nice to wait for conclusive end to end confirmation this is the last bit of tweaking needed for the OP that kicked off this work before we publish another release.

@djc
Copy link
Copy Markdown
Member Author

djc commented Sep 16, 2025

IMO it'd be nice to wait for conclusive end to end confirmation this is the last bit of tweaking needed for the OP that kicked off this work before we publish another release.

That was my plan exactly!

@djc
Copy link
Copy Markdown
Member Author

djc commented Sep 24, 2025

@sgrams ping? Any thoughts?

@sgrams
Copy link
Copy Markdown

sgrams commented Sep 26, 2025

I was able to populate RequiredEkuNotFoundContext::present without the need of this commit.

@djc
Copy link
Copy Markdown
Member Author

djc commented Sep 26, 2025

I was able to populate RequiredEkuNotFoundContext::present without the need of this commit.

How did you write it?

@djc
Copy link
Copy Markdown
Member Author

djc commented Oct 1, 2025

@ctz @cpu should we still take this?

@cpu
Copy link
Copy Markdown
Member

cpu commented Oct 1, 2025

@ctz @cpu should we still take this?

It's small enough I have no strong opinions.

@ctz
Copy link
Copy Markdown
Member

ctz commented Oct 1, 2025

I was able to populate RequiredEkuNotFoundContext::present without the need of this commit.

I think I tracked down the code where you did that, and unfortunately it's not correct. I think you really do want this PR instead.

To expand: if you round-trip your EKU_SPDM_REQUESTER_AUTH (ie. 1.3.6.1.4.1.412.274.4) through your code, it will get printed as 43.6.1.4.1.131.28.130.18.4

@ctz ctz added this pull request to the merge queue Oct 1, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 1, 2025
@ctz ctz added this pull request to the merge queue Oct 1, 2025
Merged via the queue into main with commit 94d957c Oct 1, 2025
40 checks passed
@ctz ctz deleted the decoded-oi branch October 1, 2025 16:17
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