From c8e070b8ee37bafc24774db3e597a1013617cd96 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 16 Apr 2020 12:34:41 -0700 Subject: [PATCH] Add default function for Kerberos constant-lookup-tables --- scripts/base/protocols/krb/consts.zeek | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/base/protocols/krb/consts.zeek b/scripts/base/protocols/krb/consts.zeek index 5323c2a65c..fc0e686573 100644 --- a/scripts/base/protocols/krb/consts.zeek +++ b/scripts/base/protocols/krb/consts.zeek @@ -71,7 +71,7 @@ export { [74] = "KDC_ERR_REVOCATION_STATUS_UNAVAILABLE", [75] = "KDC_ERR_CLIENT_NAME_MISMATCH", [76] = "KDC_ERR_KDC_NAME_MISMATCH", - }; + } &default=function(i: count): string { return fmt("unknown-%d", i); }; const cipher_name: table[count] of string = { [1] = "des-cbc-crc", @@ -94,6 +94,6 @@ export { [25] = "camellia128-cts-cmac", [26] = "camellia256-cts-cmac", [65] = "subkey-keymaterial", - }; + } &default=function(i: count): string { return fmt("unknown-%d", i); }; }