wolfssh
wolfssh copied to clipboard
Error when building wolfssh with only WOLFSSH_NO_ECDSA or WOLFSSH_NO_ECDH
wolfssh/internal.h:598
#if !defined(WOLFSSH_NO_ECDSA) && !defined(WOLFSSH_NO_ECDH)
ecc_key ecc;
#endif
should be
#if !defined(WOLFSSH_NO_ECDSA) || !defined(WOLFSSH_NO_ECDH)
ecc_key ecc;
#endif
I'm taking a look at this. I see a few inconsistencies and errors in the preprocessor guards. Thanks for the feedback.
The actual solution is to check for #ifndef WOLFSSH_NO_ECDH. I have a fix in the works, and I'll link it where when it is a PR.