-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix EVP_MD_CTX type definition for LibreSSL #550
Conversation
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.
Don't expose openssl headers in headers. It will introduce build time dependencies to third party usages
OK, this should work, then. |
Can you please rebase on master. There are fixes for window build issues |
From <openssl/evp.h> aka. EVP_Digest(3), otherwise OpenBSD builds fail: ``` /usr/include/openssl/ossl_typ.h:103:30: error: type alias redefinition with different types ('struct env_md_ctx_st' vs 'struct evp_md_ctx_st') typedef struct env_md_ctx_st EVP_MD_CTX; ^ /usr/ports/pobj/libdigidocpp-3.16.0/libdigidocpp-3.16.0/src/crypto/Digest.h:59:7: note: previous definition is here using EVP_MD_CTX = struct evp_md_ctx_st; ``` As metsma@ advised, don't include the OpenSSL header in this header to so as not to introduce build time dependencies to third party usages. Signed-off-by: Klemens Nanni <[email protected]>
…reSSL The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to open-eid#550.
…reSSL The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to open-eid#550. Signed-off-by: Klemens Nanni <[email protected]>
From <openssl/evp.h> aka. EVP_Digest(3), otherwise OpenBSD builds fail: ``` /usr/include/openssl/ossl_typ.h:103:30: error: type alias redefinition with different types ('struct env_md_ctx_st' vs 'struct evp_md_ctx_st') typedef struct env_md_ctx_st EVP_MD_CTX; ^ /usr/ports/pobj/libdigidocpp-3.16.0/libdigidocpp-3.16.0/src/crypto/Digest.h:59:7: note: previous definition is here using EVP_MD_CTX = struct evp_md_ctx_st; ``` As metsma@ advised, don't include the OpenSSL header in this header to so as not to introduce build time dependencies to third party usages. Signed-off-by: Klemens Nanni <[email protected]>
…reSSL The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to open-eid#550. Signed-off-by: Klemens Nanni <[email protected]>
…reSSL The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to open-eid#550. Signed-off-by: Klemens Nanni <[email protected]>
From <openssl/evp.h> aka. EVP_Digest(3), otherwise OpenBSD builds fail:
As metsma@ advised, don't include the OpenSSL header in this header to
so as not to introduce build time dependencies to third party usages.
Signed-off-by: Klemens Nanni [email protected]