-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support all Certificate Fingerprint Algorithms #1077
Support all Certificate Fingerprint Algorithms #1077
Conversation
f8ee467
to
0b9456a
Compare
cacf5fd
to
0e02e5a
Compare
This PR look ok @paullouisageneau ? Anything I can do to make it easier to merge/test/use? |
@paullouisageneau I shared builds of OBS with this patch and testers have confirmed it fixes the issue obsproject/obs-studio#9800 (comment) ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the feature!
While it works, I think there are some architectural issues with the proposed API. I think the FingerprintAlgorithm
enum should actually be defined in Certificate
, it doesn't really belong in Description
. Also, carrying algorithm and digest separately side-by-side feels like a cumbersome design.
It could make sense to introduce Certificate::Fingerprint
like this instead:
struct Fingerprint {
enum Algorithm { Sha1, Sha224, Sha256, Sha384, Sha512 };
static string AlgorithmIdentifier(Algorithm algorithm);
static size_t AlgorithmSize(Algorithm algorithm);
Algorithm algorithm;
string value;
};
What do you think?
Looks great to me! I can implement this tonight.
|
5fc100a
to
5052f37
Compare
Uh yes, my bad, sorry. I'd like to expose it but it isn't part of the public API currently. You could put it as |
2742626
to
1816165
Compare
@paullouisageneau I believe I have updated everything. Could I get another review? thanks! |
1ef68d5
to
e167ed6
Compare
@paullouisageneau I have addressed all the comments. Can I get another review please. thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a few nitpicks, after that it looks good to me, thanks!
Before was hardcoded to sha256 Resolves paullouisageneau#1076 Co-authored-by: Paul-Louis Ageneau <[email protected]>
2c9827e
to
42ec088
Compare
@paullouisageneau done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, it looks good to me now!
huzzah! Thank you @paullouisageneau Could I also get a tag? This closes out all OBS bugs, will be nice to see them all gone :) |
Would it be possible to wait a few days for a 0.20.0 release? This PR breaks ABI (because of the field change in public-facing |
@paullouisageneau yea! No rush I also need to get CMake change in sorry for the churn |
Before was hardcoded to sha256
Resolves #1076