Thanks Yann for your additional patch but on second thought the whole feature can't be backported due to our support of OpenSSL 0.9.8 in 2.4.x and EC_curve_nid2nist() is only available in 1.0.2+.