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 various X509 digest methods via macro #2134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zh-jq
Copy link
Contributor

@zh-jq zh-jq commented Dec 24, 2023

Add a digest! macro and add all digest methods here https://www.openssl.org/docs/manmaster/man3/X509_digest.html

@botovq
Copy link
Contributor

botovq commented Dec 29, 2023

Out of curiosity: what do you need all these for?

@zh-jq
Copy link
Contributor Author

zh-jq commented Dec 31, 2023

Out of curiosity: what do you need all these for?

For X509Name::digest, just like this https://github.com/nginx/nginx/blob/f255815f5d161fab0dd310fe826d4f7572e141f2/src/event/ngx_event_openssl.c#L3867.
For X509::pubkey_digest, we need to calc the SKI of the public key.

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.

None yet

2 participants