BoringSSL doesn't support EC_POINT_point2bn()

so don't invoke it in unittest
This commit is contained in:
Damien Miller 2023-03-24 15:34:29 +11:00
parent cc5969c033
commit 9a97cd1064
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,7 @@ sshkey_file_tests(void)
ASSERT_STRING_EQ((const char *)sshbuf_ptr(buf),
OBJ_nid2sn(k1->ecdsa_nid));
sshbuf_free(buf);
#ifndef OPENSSL_IS_BORINGSSL /* lacks EC_POINT_point2bn() */
a = load_bignum("ecdsa_1.param.priv");
b = load_bignum("ecdsa_1.param.pub");
c = EC_POINT_point2bn(EC_KEY_get0_group(k1->ecdsa),
@ -277,6 +278,7 @@ sshkey_file_tests(void)
BN_free(a);
BN_free(b);
BN_free(c);
#endif /* OPENSSL_IS_BORINGSSL */
TEST_DONE();
TEST_START("parse ECDSA from private w/ passphrase");