Closed jrouviere closed 3 months ago
While testing I noticed that SslRef::curve() was returning 29 (SSL_CURVE_X25519) instead of 948 (NID_X25519). I assume most users rely on SslCurve::name() which is correct because it's passing the id back to the ffi layer.
SslRef::curve()
29
948
SslCurve::name()
This breaks set_curves, which expects NIDs.
set_curves
CI is borked, I'm trying to fix it in https://github.com/cloudflare/boring/pull/240. Let's hold off on merging this until CI is fixed
While testing I noticed that
SslRef::curve()
was returning29
(SSL_CURVE_X25519) instead of948
(NID_X25519). I assume most users rely onSslCurve::name()
which is correct because it's passing the id back to the ffi layer.