Closed gojimmypi closed 7 months ago
This PR is redundant. PR #650 fixes the compile issue, properly hiding the function prototype for wolfSSH_RsaVerify()
with the missing RsaKey type. The RSA key type is missing because RSA is disabled in the default Espressif build.
Including asn_public.h fixed your build because it has a forward declaration for struct RsaKey. That function is using a pointer to that type.
The Zephyr timeout has been increased to 200 already with PR #615. This also includes a fix for another issue.
I'm working on improving the wolfssh-examples/Espressif and encountered this odd error in
wolfssh/internal.h
at build time:Including the
<wolfssl/wolfcrypt/asn_public.h>
in the header with this PR fixes that.Edit:
I noticed that in a recent PR #7112 , @anhu added some definitions, such as the conditional
MAX_ENCODED_SIG_SZ
value that is used in the wolfSSHinternal.c
.See this wolfssh internal.c example defined in asn.h:
And so not including the
asn.h
inwolfssh/internal.h
, I now see these additional errors:This is in the context of alternatively adding just gating around the
wolfSSH_RsaVerify
items (suggested by @miyazakh) instead of the inclusion of the entirewolfssl/wolfcrypt/asn_public.h
file.There are a lot of unfamiliar moving parts, so I've added a couple of reviewers to help me understand the best solution here.