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

fix for LibreSSL 3.5 #663

Merged
merged 1 commit into from
Jan 15, 2022
Merged

Conversation

zmyrgel
Copy link
Contributor

@zmyrgel zmyrgel commented Jan 15, 2022

LibreSSL 3.5 has made HMAC_CTX and DH opaque so code using it should be switched to use accessor functions.

Lifted from OpenBSD port patches.

LibreSSL has made HMAC_CTX and DH opaque so tweak the crypto to cope
with it. Lifted from OpenBSD port patches.
Copy link
Collaborator

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

thank you.

Can we keep the libreSSL guards around for older versions?

@@ -372,7 +372,7 @@ END-C
(c-declare #<<END-C
static HMAC_CTX *ffi_create_HMAC_CTX ()
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0x10100000L
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we keep this guard around for older versions of LibreSSL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not an expert on using libressl but it seems to be incorrect check in any case:
"if using old OpenSSL or any LibreSSL version -> use old API"

Which versions should use the old API?

Copy link
Collaborator

Choose a reason for hiding this comment

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

well it used to not compile with early libressl versions that didnt have the new api.
I am fine removing these guards, just concerned about older openbsd installations.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, lets merge and if it causes problems for people we can add a more specific (versioned) guard.

@vyzo vyzo merged commit fed5fa2 into mighty-gerbils:master Jan 15, 2022
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.

2 participants