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 support for openssl 3 #9

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

Conversation

adfoster-r7
Copy link
Contributor

@adfoster-r7 adfoster-r7 commented Jul 20, 2022

Related issue: #8

Related PRs:

@SmallLars I've made a quick PR to upgrade this library to support OpenSSL 3.0. At a high level:

  • Migrate from Travis to Github actions so that multiple Ruby/Ubuntu versions can be tested easily
  • Update dependencies that needed to be updated to work with newer versions of Ruby
  • Remove coveralls as fails with newer versions of OpenSSL. Apparently it's now maintained under coveralls_reborn - but I didn't have access to the original Travis token to verify, and it appears to crash without that being present from what I could see.

Tests passing:

image

@@ -119,6 +119,7 @@ def mac(data, nonce, additional_data)
@cipher.reset
@cipher.encrypt
@cipher.key = @key
@cipher.iv = "\x00" * 16
Copy link
Contributor Author

@adfoster-r7 adfoster-r7 Jul 20, 2022

Choose a reason for hiding this comment

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

I can't tell if this is a regression in OpenSSL's reset function or intentional behavior, but it's required to have the tests passing with OpenSSL 3.0 on Ubuntu 22.04 though

@adfoster-r7 adfoster-r7 force-pushed the add-support-openssl-3 branch from 6ebf948 to 2e2824f Compare July 20, 2022 17:41
@adfoster-r7 adfoster-r7 marked this pull request as draft July 20, 2022 17:57
@adfoster-r7 adfoster-r7 marked this pull request as ready for review July 21, 2022 12:47
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.

1 participant