diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-05-26 18:42:41 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-27 01:43:27 +0000 |
commit | 5b30d5c7675fd03a420257c334808549eddc6e7e (patch) | |
tree | e4622039f3a5da1e3690cd1416199e1b5a9e99c2 /epan/dissectors/packet-dtls.c | |
parent | 53a373693ccc55b6475264bd8d1fc611930d1c0f (diff) |
Have a dissector table for SSL/TLS/DTLS ALPN protocol IDs.
Have dissectors register with their protocol ID string in that table,
rather than having a table in epan/dissectors/packet-ssl-utils.c that
has to be updated for new protocols.
Have a table of protocol ID string prefixes, to handle the case of
protocols such as SPDY and HTTP2 drafts, where multiple protocol IDs are
used for different versions.
Change-Id: I363d04895a88e779fbbca7dc8e1f31aa1970a31a
Reviewed-on: https://code.wireshark.org/review/27836
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-dtls.c')
-rw-r--r-- | epan/dissectors/packet-dtls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c index 8735f1abe1..b7bfdbe2a1 100644 --- a/epan/dissectors/packet-dtls.c +++ b/epan/dissectors/packet-dtls.c @@ -1955,6 +1955,10 @@ proto_register_dtls(void) dtls_associations = register_dissector_table("dtls.port", "DTLS Port", proto_dtls, FT_UINT16, BASE_DEC); + ssl_common_register_dtls_alpn_dissector_table("dtls.handshake.extensions_alpn_str", + "DTLS Application-Layer Protocol Negotiation (ALPN) Protocol IDs", + proto_dtls); + /* Required function calls to register the header fields and * subtrees used */ proto_register_field_array(proto_dtls, hf, array_length(hf)); |