]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
BoringSSL doesn't support EC_POINT_point2bn()
authorDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:34:29 +0000 (15:34 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 24 Mar 2023 04:39:48 +0000 (15:39 +1100)
so don't invoke it in unittest

regress/unittests/sshkey/test_file.c

index 497ab6dded1d0fa841cd74cbf4819578aee3c5a3..488944c3b76b159ca02c58d6ab1b01d273304fcd 100644 (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");