summaryrefslogtreecommitdiffstats
path: root/sshbuf-getput-crypto.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2024-08-15 15:35:54 +0200
committerDamien Miller <djm@mindrot.org>2024-08-15 15:35:54 +0200
commit4da2a1a7f648979bea6eaf3b17f5f250faed4afc (patch)
tree95aba9c260efbd5a46b735b12a4a333d47b2749b /sshbuf-getput-crypto.c
parentmissed OPENSSL_HAS_ECC case (diff)
downloadopenssh-4da2a1a7f648979bea6eaf3b17f5f250faed4afc.tar.xz
openssh-4da2a1a7f648979bea6eaf3b17f5f250faed4afc.zip
fix merge botch that broke !OPENSSL_HAS_ECC
Diffstat (limited to 'sshbuf-getput-crypto.c')
-rw-r--r--sshbuf-getput-crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshbuf-getput-crypto.c b/sshbuf-getput-crypto.c
index b710a9e0b..e7bffe225 100644
--- a/sshbuf-getput-crypto.c
+++ b/sshbuf-getput-crypto.c
@@ -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 */