summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2008-10-03 05:21:28 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2008-10-03 05:21:28 +0000
commit24b76bdc14a64a150388f5cb4efee0fbcf3682a0 (patch)
treeb6ac214f3c77ab87beb5e9609e288993ed5e30df /tshark.c
parent5c82d9b784df05d32f94e63fc0faa168c96bae6a (diff)
downloadwireshark-24b76bdc14a64a150388f5cb4efee0fbcf3682a0.tar.gz
add a -K command line option to provide the name of the kerberos keytab
file to use for decryption of Krb5 and GSS-KRB svn path=/trunk/; revision=26343
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index acdf9c6826..a2bc6bb1cc 100644
--- a/tshark.c
+++ b/tshark.c
@@ -310,6 +310,7 @@ print_usage(gboolean print_ver)
fprintf(output, " -h display this help and exit\n");
fprintf(output, " -v display version info and exit\n");
fprintf(output, " -o <name>:<value> ... override preference setting\n");
+ fprintf(output, " -K <keytab> keytab file to use for kerberos decryption\n");
}
/*
@@ -751,7 +752,7 @@ main(int argc, char *argv[])
GLogLevelFlags log_flags;
int optind_initial;
-#define OPTSTRING_INIT "a:b:c:C:d:De:E:f:F:G:hi:lLnN:o:pqr:R:s:St:T:vVw:xX:y:z:"
+#define OPTSTRING_INIT "a:b:c:C:d:De:E:f:F:G:hi:K:lLnN:o:pqr:R:s:St:T:vVw:xX:y:z:"
#ifdef HAVE_LIBPCAP
#ifdef _WIN32
#define OPTSTRING_WIN32 "B:"
@@ -999,6 +1000,11 @@ main(int argc, char *argv[])
if (!add_decode_as(optarg))
exit(1);
break;
+#if defined(HAVE_HEIMDAL_KERBEROS) || defined(HAVE_MIT_KERBEROS)
+ case 'K': /* Kerberos keytab file */
+ read_keytab_file(optarg);
+ break;
+#endif
case 'D': /* Print a list of capture devices and exit */
#ifdef HAVE_LIBPCAP
status = capture_opts_list_interfaces(FALSE);