-
Notifications
You must be signed in to change notification settings - Fork 95
Description
When compiling the wolfssh_echoserver example located at wolfssh/ide/Espressif/ESP-IDF/examples/wolfssh_echoserver, the build fails with the following error:
~/wolfssh/src/internal.c: In function 'GenerateKey':
~/wolfssh/src/internal.c:2215:15: error: implicit declaration of function 'wc_SSH_KDF'; did you mean 'wc_HKDF'? [-Wimplicit-function-declaration]
2215 | ret = wc_SSH_KDF(hashId, keyId, key, keySz,
| ^~~~~~~~~~
| wc_HKDF
t appears that wc_SSH_KDF is conditionally compiled behind a feature flag. The only workaround I found was to add the following definition in components/wolfssl/include/user_settings.h:
#define WOLFSSL_WOLFSSH
Steps to Reproduce:
Clone the repository.
Navigate to wolfssh/ide/Espressif/ESP-IDF/examples/wolfssh_echoserver.
Attempt to build the example using ESP-IDF.
Observe the compile error in wolfssh/src/internal.c regarding wc_SSH_KDF.
Observed Behavior:
The build fails because wc_SSH_KDF is implicitly declared, suggesting that the corresponding feature is not enabled by default.
Expected Behavior:
The example should compile out-of-the-box without requiring manual modifications. If enabling the SSH functionality via a flag like WOLFSSL_WOLFSSH is intended, the documentation should clearly state this requirement.
Potential Workaround:
Adding the following line in components/wolfssl/include/user_settings.h resolves the compilation error:
#define WOLFSSL_WOLFSSH
Request for Clarification/Action:
Could the maintainers confirm if this is the intended configuration for building the wolfssh_echoserver example?
If so, would it be possible to update the documentation or the build configuration to automatically define WOLFSSL_WOLFSSH for this example?
Alternatively, if there is another configuration method intended for this setup, please provide guidance on how to correctly enable the feature.
Thank you for your time and consideration. I’m happy to help further if needed!