Fix compilation without optional libraries.

This commit is contained in:
Dario Lombardo 2021-08-04 13:22:12 +02:00 committed by Wireshark GitLab Utility
parent 5cd9646e72
commit 7a584511f1
2 changed files with 9 additions and 2 deletions

View File

@ -547,7 +547,9 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb,
gchar *content_type_str = NULL;
gchar *content_trans_encoding_str = NULL;
#ifdef HAVE_ZLIB
gchar *content_encoding_str = NULL;
#endif
char *filename = NULL;
char *mimetypename = NULL;
gboolean last_field = FALSE;
@ -694,8 +696,9 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb,
if (crp != NULL) {
*crp = '\0';
}
#ifdef HAVE_ZLIB
content_encoding_str = wmem_ascii_strdown(pinfo->pool, value_str, -1);
#endif
}
break;
case POS_CONTENT_TRANSFER_ENCODING:

View File

@ -479,7 +479,11 @@ get_keyexchange_key(unsigned char keyexchangekey[NTLMSSP_KEY_LEN], const unsigne
}
guint32
get_md4pass_list(wmem_allocator_t *pool, md4_pass** p_pass_list)
get_md4pass_list(wmem_allocator_t *pool
#if !defined(HAVE_HEIMDAL_KERBEROS) && !defined(HAVE_MIT_KERBEROS)
_U_
#endif
, md4_pass** p_pass_list)
{
#if defined(HAVE_HEIMDAL_KERBEROS) || defined(HAVE_MIT_KERBEROS)
guint32 nb_pass = 0;