Omit some stuff when building without a Kerberos library, as it's unused
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 5 Mar 2005 01:00:15 +0000 (01:00 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 5 Mar 2005 01:00:15 +0000 (01:00 +0000)
if you don't have a Kerberos library to do decryption.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13593 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-kerberos.c

index c928fc5a5ac7e6e50827c167cc098a7ce280a793..32f710c74ae78b5652ec72327eb44d2b9ddec268 100644 (file)
@@ -1886,15 +1886,16 @@ dissect_krb5_seq_number(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int
 
 
 static int
-dissect_krb5_pausec(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
+dissect_krb5_patimestamp(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
 {
-       offset=dissect_ber_integer(FALSE, pinfo, tree, tvb, offset, hf_krb_pausec, NULL);
+       offset=dissect_ber_GeneralizedTime(FALSE, pinfo, tree, tvb, offset, hf_krb_patimestamp);
        return offset;
 }
+#ifdef HAVE_KERBEROS
 static int
-dissect_krb5_patimestamp(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
+dissect_krb5_pausec(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
 {
-       offset=dissect_ber_GeneralizedTime(FALSE, pinfo, tree, tvb, offset, hf_krb_patimestamp);
+       offset=dissect_ber_integer(FALSE, pinfo, tree, tvb, offset, hf_krb_pausec, NULL);
        return offset;
 }
 static const ber_sequence_t PA_ENC_TS_ENC_sequence[] = {
@@ -1902,7 +1903,6 @@ static const ber_sequence_t PA_ENC_TS_ENC_sequence[] = {
        { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL, dissect_krb5_pausec },
        { 0, 0, 0, NULL }
 };
-#ifdef HAVE_KERBEROS
 static int
 dissect_krb5_decrypt_PA_ENC_TIMESTAMP (packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
 {