From c0e3b8c66ffc6d951dd853d29d70a3c644c1d854 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Wed, 3 Jul 2019 02:15:34 -0700 Subject: [PATCH] Deprecate rfb_event. Fixes GH-446 --- scripts/base/protocols/rfb/main.zeek | 5 ----- src/analyzer/protocol/rfb/events.bif | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/base/protocols/rfb/main.zeek b/scripts/base/protocols/rfb/main.zeek index ae9d3ca508..8217ff8e71 100644 --- a/scripts/base/protocols/rfb/main.zeek +++ b/scripts/base/protocols/rfb/main.zeek @@ -106,11 +106,6 @@ function set_session(c: connection) } } -event rfb_event(c: connection) &priority=5 - { - set_session(c); - } - event rfb_client_version(c: connection, major_version: string, minor_version: string) &priority=5 { set_session(c); diff --git a/src/analyzer/protocol/rfb/events.bif b/src/analyzer/protocol/rfb/events.bif index 4a5bb40121..44afb5b043 100644 --- a/src/analyzer/protocol/rfb/events.bif +++ b/src/analyzer/protocol/rfb/events.bif @@ -1,7 +1,7 @@ ## Generated for RFB event ## ## c: The connection record for the underlying transport-layer session/flow. -event rfb_event%(c: connection%); +event rfb_event%(c: connection%) &deprecated="Remove in v3.1: This event never served a real purpose and will be removed. Please use the other rfb events instead."; ## Generated for RFB event authentication mechanism selection ## @@ -47,4 +47,4 @@ event rfb_server_version%(c: connection, major_version: string, minor_version: s ## width: width of the shared screen ## ## height: height of the shared screen -event rfb_server_parameters%(c: connection, name: string, width: count, height: count%); \ No newline at end of file +event rfb_server_parameters%(c: connection, name: string, width: count, height: count%);