aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.h
diff options
context:
space:
mode:
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-25 08:07:26 +0000
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-25 08:07:26 +0000
commit72699c63f9040a3243595eff1bd1082ed0839cf8 (patch)
tree414120e27d91bce2041e130f35aee9456d186781 /epan/dissectors/packet-ssl-utils.h
parentdea1d690b5d81dfff36ff5c5d27cffb7a87c9d2e (diff)
new ssl_dissector_add() function which can be called from another dissectors (similar to dissector_add())
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19026 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.h')
-rw-r--r--epan/dissectors/packet-ssl-utils.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-ssl-utils.h b/epan/dissectors/packet-ssl-utils.h
index 8f3b44d4bc..6f8e4b1fe9 100644
--- a/epan/dissectors/packet-ssl-utils.h
+++ b/epan/dissectors/packet-ssl-utils.h
@@ -657,9 +657,11 @@ typedef struct _SslDecryptSession {
} SslDecryptSession;
typedef struct _SslAssociation {
+ gboolean tcp;
guint ssl_port;
dissector_handle_t handle;
gchar* info;
+ gboolean from_key_list;
} SslAssociation;
typedef struct _SslService {
@@ -754,24 +756,22 @@ ssl_private_key_free(gpointer id, gpointer key, gpointer dummy _U_);
/* handling of association between tls/dtls ports and clear text protocol */
extern void
-ssl_association_add(GTree* associations, dissector_handle_t handle, guint port, gchar *protocol, gboolean tcp);
+ssl_association_add(GTree* associations, dissector_handle_t handle, guint port, gchar *protocol, gboolean tcp, gboolean from_key_list);
+
+extern void
+ssl_association_remove(GTree* associations, SslAssociation *assoc);
extern gint
ssl_association_cmp(gconstpointer a, gconstpointer b);
extern SslAssociation*
-ssl_association_find(GTree * associations, guint port);
-
-extern gint
-ssl_association_remove_handle_tcp (gpointer key _U_,
- gpointer data, gpointer user_data _U_);
+ssl_association_find(GTree * associations, guint port, gboolean tcp);
extern gint
-ssl_association_remove_handle_udp (gpointer key _U_,
- gpointer data, gpointer user_data _U_);
+ssl_assoc_from_key_list(gpointer key _U_, gpointer data, gpointer user_data);
extern gint
-ssl_packet_from_server(GTree* associations, guint port);
+ssl_packet_from_server(GTree* associations, guint port, gboolean tcp);
/* add to packet data a newly allocated tvb with the specified real data*/
extern void