Skip to content

Conversation

@Aramgutang
Copy link
Contributor

In OpenSSL 1.1, the equivalent of list-cipher-commands is now list -cipher-commands, and the former is no longer supported.

This fix maintains backwards compatibility by checking which of the commands succeed first, and use the working one in the subsequent code.

- `list-ciphter-commands` is `list -cipher-commands` in OpenSSL versions
1.1+
- this fix maintans backwards compatibility with older OpenSSL versions
@cdimitroulas
Copy link

@elasticdog can you please have a look at this? It would be really great if you could review and merge soon if this is ok :)

@elasticdog
Copy link
Owner

@cdimitroulas Thanks for the ping here...I was heading home from a 3 month trip abroad when this PR came in, and I forgot to revisit.

@Aramgutang Very nice, thank you for the PR! ⭐️ I was glad to see you maintain the backward compatibility. I like this approach much better than trying to parse version numbers. There were a few things that I thought could be cleaned up, but I went ahead and merged this into the master branch and then cleaned up the logic in a separate commit.

Please give it a shot and let me know if you experience any issues. I'll work on cutting a new release shortly.

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.

3 participants