Contact Details
No response
Version
5.6.6-1.3build1 (it's libwolfssl-dev from Ubuntu 24.04 repositories)
Description
wolfSSL installed from repositories in Ubuntu 24.04.
The issue is when running sign/verify examples at signature/rsa_buffer/. Running make I get an error:
$ make sign
gcc -o sign sign.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lm -lwolfssl
sign.c: In function ‘main’:
sign.c:77:5: error: unknown type name ‘Sha256’; did you mean ‘wc_Sha256’?
77 | Sha256 sha256;
| ^~~~~~
| wc_Sha256
sign.c:78:5: error: unknown type name ‘Sha256’; did you mean ‘wc_Sha256’?
78 | Sha256* pSha256 = NULL;
| ^~~~~~
| wc_Sha256
I can compile $make sign and $ make verify successfully, and run both examples, by replacing Sha256 by wc_Sha256 in sign.c and verify.c.
Note the same issue may be present in a different file but I didn't try running that one:
$ pwd
/home/daniel/tmp/tmpdir/wolfssl-examples
$ grep -rn " Sha256"
signature/rsa_vfy_only/verify.c:120: Sha256 sha256;
signature/rsa_vfy_only/verify.c:121: Sha256* pSha256 = NULL;
(...)
Reproduction steps
- Setup:
$ mkdir tmpdir
$ cd tmpdir/
$ git clone https://github.com/wolfSSL/wolfssl-examples/
$ cd wolfssl-examples/signature/rsa_buffer/
- Compilation error:
$ make sign
$ make verify
- Fixing, then compile and run:
$ sed -i 's/ Sha256/wc_Sha256/g' sign.c verify.c
$ make sign
$ make verify
$ ./verify
$ ./sign "foo"
Relevant log output
Contact Details
No response
Version
5.6.6-1.3build1 (it's libwolfssl-dev from Ubuntu 24.04 repositories)
Description
wolfSSL installed from repositories in Ubuntu 24.04.
The issue is when running sign/verify examples at
signature/rsa_buffer/. Running make I get an error:I can compile
$make signand$ make verifysuccessfully, and run both examples, by replacingSha256bywc_Sha256in sign.c and verify.c.Note the same issue may be present in a different file but I didn't try running that one:
Reproduction steps
Relevant log output