spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
472 stars 237 forks source link

Add SetSupportedEllipticCurves function #113

Closed sc0Vu closed 5 years ago

sc0Vu commented 5 years ago

The SetEllipticCurve function didn't change supported groups list in request. So I add SetSupportedEllipticCurves function to set supported groups list properly.

Because the curve functions were first added to OpenSSL 1.0.2 (see https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set1_groups.html), maybe this function should support the old versions?