aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tls.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-09-27 05:17:45 +0100
committerAnders Broman <a.broman58@gmail.com>2019-09-27 06:57:15 +0000
commit44963f62bddab570b75b78d0fe82e22d70f3cdf2 (patch)
tree3e9c263d3e6bdc55344f083785794027cb24c542 /epan/dissectors/packet-tls.h
parent5d0aaa7feadd500a59625a0c88c7cccb01b236b3 (diff)
TLS: export ALPN for other dissectors
QUIC needs to read the ALPN to select the dissector for STREAM dissection. Change-Id: I3c3a2d5a6fe2f8f127b31287ed4ad3e3b4b0e56c Reviewed-on: https://code.wireshark.org/review/34633 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tls.h')
-rw-r--r--epan/dissectors/packet-tls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tls.h b/epan/dissectors/packet-tls.h
index 1d1d5d6234..c489a6e9bf 100644
--- a/epan/dissectors/packet-tls.h
+++ b/epan/dissectors/packet-tls.h
@@ -48,4 +48,11 @@ tls13_exporter(packet_info *pinfo, gboolean is_early,
gint
tls13_get_quic_secret(packet_info *pinfo, gboolean is_from_server, int type, guint secret_len, guint8 *secret_out);
+/**
+ * Returns the application-layer protocol name (ALPN) for the current TLS
+ * session, or NULL if unavailable.
+ */
+const char *
+tls_get_alpn(packet_info *pinfo);
+
#endif /* __PACKET_TLS_H__ */