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

ENHANCED: Use OpenSSL default curves (ecdh_curve/1) in OpenSSL >= 1.1.0. #71

Merged
merged 1 commit into from
Dec 10, 2016
Merged

Conversation

triska
Copy link
Member

@triska triska commented Dec 9, 2016

Earlier OpenSSL versions do not set a curve by default. We use
prime256v1 in such cases, as before, but no longer override the new
library defaults with this curve.

This commit makes stronger curves automatically available when using
newer OpenSSL versions, unless users have explicitly asked for a
specific curve. A major attraction of OpenSSL 1.1.0 is X25519, which
is the new default curve in that version for ECDH.

To disable ECDH entirely, use the cipher_list/1 option (also as before).

In the future, ecdh_curve/1 will be superseded by a new option that
binds SSL_CTX_set1_groups. However, this currently affects both ECDH
and ECDSA, and we will adopt the eventual solution of OpenSSL.

See openssl/openssl#2033 for more information.

Earlier OpenSSL versions do not set a curve by default. We use
prime256v1 in such cases, as before, but no longer override the new
library defaults with this curve.

This commit makes stronger curves automatically available when using
newer OpenSSL versions, unless users have explicitly asked for a
specific curve. A major attraction of OpenSSL 1.1.0 is X25519, which
is the new default curve in that version for ECDH.

To disable ECDH entirely, use the cipher_list/1 option (also as before).

In the future, ecdh_curve/1 will be superseded by a new option that
binds SSL_CTX_set1_groups. However, this currently affects both ECDH
and ECDSA, and we will adopt the eventual solution of OpenSSL.
@JanWielemaker JanWielemaker merged commit b84d5c0 into SWI-Prolog:master Dec 10, 2016
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