Skip to content

Commit

Permalink
#ifdef around ECC_X25519 with HAVE_CURVE25519, so that it compiles wh…
Browse files Browse the repository at this point in the history
…en wolfssl is configured without CURVE25519.
  • Loading branch information
falemagn committed Aug 21, 2023
1 parent 52a932c commit edac47e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -2239,8 +2239,10 @@ static const char* CurveNameForId(byte id)
case ECC_SECP521R1:
return "nistp521";

#ifdef HAVE_CURVE25519
case ECC_X25519:
return "Curve25519";
#endif
}
#endif
return "";
Expand Down

0 comments on commit edac47e

Please sign in to comment.