Building Wireshark with WolfSSL support using the provided Dockerfile (after adding wolfssl support) fails due to an undeclared variable 'QSC_SIG_CPS' in packet-tls-utils.c.
Error Message
/tmp/wireshark-3.4.9/epan/dissectors/packet-tls-utils.c:1259:1: error: 'QSC_SIG_CPS' undeclared here (not in a function); did you mean 'QSC_SIGS'? 1259 | QSC_SIG_CPS
Temporary Fix
Commenting out the following line in the Dockerfile resolves the build issue:
#sed -i "s/ { 0x080b, "rsa_pss_pss_sha512" },/ { 0x080b, "rsa_pss_pss_sha512" },\nQSC_SIG_CPS/g" epan/dissectors/packet-tls-utils.c
This line seems intended to insert QSC-related definitions, but the 'QSC_SIG_CPS' variable is not defined in wolfssl-qsc.h.
Thanks for this bug report. Not very likely I'll handle this soon as my focus is on supporting completely free, non-commercial software. Will gladly review & accept a suitable PR of course.
298 will be marking wireshark as deprecated, but I believe we should leave this issue open to allow new contributors to potentially "un-deprecate" wireshark and update it to working order
Description
Building Wireshark with WolfSSL support using the provided Dockerfile (after adding wolfssl support) fails due to an undeclared variable 'QSC_SIG_CPS' in
packet-tls-utils.c
.Error Message
/tmp/wireshark-3.4.9/epan/dissectors/packet-tls-utils.c:1259:1: error: 'QSC_SIG_CPS' undeclared here (not in a function); did you mean 'QSC_SIGS'? 1259 | QSC_SIG_CPS
Temporary Fix
Commenting out the following line in the Dockerfile resolves the build issue:
#sed -i "s/ { 0x080b, "rsa_pss_pss_sha512" },/ { 0x080b, "rsa_pss_pss_sha512" },\nQSC_SIG_CPS/g" epan/dissectors/packet-tls-utils.c
This line seems intended to insert QSC-related definitions, but the 'QSC_SIG_CPS' variable is not defined in
wolfssl-qsc.h
.Steps to Reproduce
docker build -t openquantumsafe/wireshark .