wolfSSL / wolfssh

wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
https://www.wolfssl.com
370 stars 88 forks source link

Gate PrivBeginPrefix/PrivSuffix; init typeSz in ssh.c #641

Closed gojimmypi closed 8 months ago

gojimmypi commented 8 months ago

The PrivBeginPrefix and PrivSuffix are only used in wolfSSH_ReadKey_file() which is gated with:

#if !defined(NO_FILESYSTEM) && !defined(WOLFSSH_USER_FILESYSTEM)

... thus otherwise there's a compiler warning about them not being used on a no-filesystem target.

There's also a typeSz = 0 initialization that was failing as the Espressif compiler was complaining it was not initialized.