]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
fix merge botch that broke !OPENSSL_HAS_ECC
authorDamien Miller <djm@mindrot.org>
Thu, 15 Aug 2024 13:35:54 +0000 (23:35 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 15 Aug 2024 13:35:54 +0000 (23:35 +1000)
sshbuf-getput-crypto.c

index b710a9e0b9e6ff2ebe74a5d183c9049cfaf86c86..e7bffe225cd99154966dae7e1292b7b0e577455a 100644 (file)
@@ -176,7 +176,7 @@ sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v)
        return sshbuf_put_ec(buf, EC_KEY_get0_public_key(v),
            EC_KEY_get0_group(v));
 }
-#endif /* OPENSSL_HAS_ECC */
+
 int
 sshbuf_put_ec_pkey(struct sshbuf *buf, EVP_PKEY *pkey)
 {
@@ -186,4 +186,5 @@ sshbuf_put_ec_pkey(struct sshbuf *buf, EVP_PKEY *pkey)
                return SSH_ERR_LIBCRYPTO_ERROR;
        return sshbuf_put_eckey(buf, ec);
 }
+#endif /* OPENSSL_HAS_ECC */
 #endif /* WITH_OPENSSL */