http3: fix build without support for AEAD cipher suites.
http3_is_reserved_code() is only used if HAVE_LIBGCRYPT_AEAD is defined; only define http3_is_reserved_code() if HAVE_LIBGCRYPT_AEAD is defind. (Then there's the issue that HAVE_LIBGCRYPT_AEAD is *NOT* defined as a result of CMake tests, it's defined in packet-tls-utils.c based on the libgcrypt version, so it's not as if it can be used outside packet-tls-utils.c, but that's another bug to fix.) Change-Id: Ibecdf6e12fde27d75fcd7849ca0cd62f4129f5c2 Reviewed-on: https://code.wireshark.org/review/38114 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
parent
c462f72273
commit
151ee60555
|
@ -94,6 +94,7 @@ typedef struct _http3_stream_info {
|
|||
guint64 broken_from_offset; /**< Unrecognized stream starting at offset (if non-zero). */
|
||||
} http3_stream_info;
|
||||
|
||||
#ifdef HAVE_LIBGCRYPT_AEAD
|
||||
/**
|
||||
* Whether this is a reserved code point for Stream Type, Frame Type, Error
|
||||
* Code, etc.
|
||||
|
@ -103,6 +104,7 @@ http3_is_reserved_code(guint64 stream_type)
|
|||
{
|
||||
return (stream_type - 0x21) % 0x1f == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
try_get_quic_varint(tvbuff_t *tvb, int offset, guint64 *value, int *lenvar)
|
||||
|
|
Loading…
Reference in New Issue