Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,7 @@ static int DoAsn1Key(const byte* in, word32 inSz, byte** out,
}

if (ret > 0 && !isPrivate) {
#ifndef WOLFSSH_NO_RSA
long e;
byte n[RSA_MAX_SIZE]; /* TODO: Handle small stack */
word32 nSz = (word32)sizeof(n), eSz = (word32)sizeof(e);
Expand Down Expand Up @@ -1785,6 +1786,10 @@ static int DoAsn1Key(const byte* in, word32 inSz, byte** out,

*out = newKey;
}
#else
WLOG(WS_LOG_DEBUG, "DoAsn1Key failed; WOLFSSH_NO_RSA disabled RSA");
ret = WS_UNIMPLEMENTED_E;
#endif
}
else if (ret > 0 && isPrivate) {
if (*out == NULL) {
Expand Down