openssl: Verify that a peer's ECDH public value is a point on the elliptic curve