wolfSSL / wolfssh-examples

Example applications using the wolfSSH Library.
https://www.wolfssl.com
25 stars 11 forks source link

Can't build example. wc_SSH_KDF not found. #8

Open Gato-X opened 1 week ago

Gato-X commented 1 week ago

After setting up wolfSSH and wolfSSL so that they are visible when compiling the ESP32 example SSH server, I encountered an error during the build indicating that wc_SSH_KDF is not declared (or rather, is being implicitly declared) in wolfSSH’s internal.c.

/home/gato/iot/SSH-proof-of-concept/wolfssh/src/internal.c:2194:15: error: implicit declaration of function 'wc_SSH_KDF'; did you mean 'wc_HKDF'? [-Werror=implicit-function-declaration]
 2194 |         ret = wc_SSH_KDF(hashId, keyId, key, keySz,
      |               ^~~~~~~~~~
      |               wc_HKDF
dgarske commented 1 week ago

Hi @Gato-X ,

Make sure you build wolfSSL with --enable-wolfssh or WOLFSSL_WOLFSSH that enables this wolfCrypt API.

Thanks, David Garske, wolfSSL