Skip to content

Commit 3ff0266

Browse files
committed
Fix gating
1 parent d4a6cf8 commit 3ff0266

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/keygen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ int wolfSSH_MakeEcdsaKey(byte* out, word32 outSz, word32 size)
189189

190190
int wolfSSH_MakeEd25519Key(byte* out, word32 outSz, word32 size)
191191
{
192-
#ifndef WOLFSSH_NO_ED25519
192+
#if !defined(WOLFSSH_NO_ED25519) && defined(HAVE_ED25519) && \
193+
defined(HAVE_ED25519_MAKE_KEY) && defined(HAVE_ED25519_KEY_EXPORT)
193194

194195
int ret = WS_SUCCESS;
195196
WC_RNG rng;

tests/unit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ static int test_EcdsaKeyGen(void)
264264
}
265265
#endif
266266

267-
#ifndef WOLFSSH_NO_ED25519
267+
#if !defined(WOLFSSH_NO_ED25519) && defined(HAVE_ED25519) && \
268+
defined(HAVE_ED25519_MAKE_KEY) && defined(HAVE_ED25519_KEY_EXPORT)
268269
static int test_Ed25519KeyGen(void)
269270
{
270271
int result = 0;

0 commit comments

Comments
 (0)