mirror of https://github.com/wolfSSL/wolfssh.git
Fix gating
parent
d4a6cf80f9
commit
64de7a210f
|
|
@ -189,7 +189,8 @@ int wolfSSH_MakeEcdsaKey(byte* out, word32 outSz, word32 size)
|
|||
|
||||
int wolfSSH_MakeEd25519Key(byte* out, word32 outSz, word32 size)
|
||||
{
|
||||
#ifndef WOLFSSH_NO_ED25519
|
||||
#if !defined(WOLFSSH_NO_ED25519) && defined(HAVE_ED25519) && \
|
||||
defined(HAVE_ED25519_MAKE_KEY) && defined(HAVE_ED25519_KEY_EXPORT)
|
||||
|
||||
int ret = WS_SUCCESS;
|
||||
WC_RNG rng;
|
||||
|
|
|
|||
|
|
@ -264,7 +264,8 @@ static int test_EcdsaKeyGen(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef WOLFSSH_NO_ED25519
|
||||
#if !defined(WOLFSSH_NO_ED25519) && defined(HAVE_ED25519) && \
|
||||
defined(HAVE_ED25519_MAKE_KEY) && defined(HAVE_ED25519_KEY_EXPORT)
|
||||
static int test_Ed25519KeyGen(void)
|
||||
{
|
||||
int result = 0;
|
||||
|
|
@ -365,7 +366,8 @@ int wolfSSH_UnitTest(int argc, char** argv)
|
|||
printf("EcdsaKeyGen: %s\n", (unitResult == 0 ? "SUCCESS" : "FAILED"));
|
||||
testResult = testResult || unitResult;
|
||||
#endif
|
||||
#ifndef WOLFSSH_NO_ED25519
|
||||
#if !defined(WOLFSSH_NO_ED25519) && defined(HAVE_ED25519) && \
|
||||
defined(HAVE_ED25519_MAKE_KEY) && defined(HAVE_ED25519_KEY_EXPORT)
|
||||
unitResult = test_Ed25519KeyGen();
|
||||
printf("Ed25519KeyGen: %s\n", (unitResult == 0 ? "SUCCESS" : "FAILED"));
|
||||
testResult = testResult || unitResult;
|
||||
|
|
|
|||
Loading…
Reference in New Issue