Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Build failure (kerberos)

From: Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx>
Date: Sat, 21 Mar 2020 20:40:08 +0000
I am seeing this:

./asn1/kerberos/packet-kerberos-template.c: In function ‘dissect_krb5_PAC_CREDENTIAL_INFO’:
./asn1/kerberos/packet-kerberos-template.c:2187:2: error: implicit declaration of function ‘decrypt_krb5_data’ [-Werror=implicit-function-declaration]
./asn1/kerberos/packet-kerberos-template.c:2187:11: error: assignment makes pointer from integer without a cast [-Werror]
./asn1/kerberos/packet-kerberos-template.c: At top level:
./asn1/kerberos/kerberos.cnf:360:1: error: ‘dissect_kerberos_PA_ENC_TS_ENC’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
epan/dissectors/CMakeFiles/dissectors.dir/build.make:35002: recipe for target 'epan/dissectors/CMakeFiles/dissectors.dir/packet-kerberos.c.o' failed

The declaration/definition of decrypt_krb5_data() depends upon HAVE_MIT_KERBEROS being defined, but there is no guard around calling it at packet-kerberos-template.c:2187.

Best regards,
Martin