debug keys
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Feb 2015 13:06:34 +0000 (14:06 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Oct 2018 14:09:07 +0000 (16:09 +0200)
Change-Id: If412c294989565ff1346e06e56ac176ccfb89a76

epan/dissectors/asn1/kerberos/packet-kerberos-template.c

index 2b28ce8d24f675c9e4f0622001df9c691c60a7f1..acccf64d15a326b7826f42e118343c876e6860a8 100644 (file)
@@ -297,6 +297,7 @@ add_encryption_key(packet_info *pinfo, int keytype, int keylength, const char *k
                return;
        }
 
+printf("%d:%s:%s: added key in %u keytype:%d len:%d\n", __LINE__, G_STRFUNC, origin, pinfo->fd->num, keytype, keylength);
        new_key=(enc_key_t *)g_malloc(sizeof(enc_key_t));
        g_snprintf(new_key->key_origin, KRB_MAX_ORIG_LEN, "%s learnt from frame %u",origin,pinfo->num);
        new_key->fd_num = pinfo->num;
@@ -441,6 +442,7 @@ decrypt_krb5_data(proto_tree *tree _U_, packet_info *pinfo,
                if(ret == 0){
                        char *user_data;
 
+printf("%d:%s:%s: woohoo decrypted keytype:%d in frame:%u\n", __LINE__, G_STRFUNC, ek->key_origin, ek->keytype, pinfo->fd->num);
                        expert_add_info_format(pinfo, NULL, &ei_kerberos_decrypted_keytype,
                                                                   "Decrypted keytype %d in frame %u using %s",
                                                                   ek->keytype, pinfo->num, ek->key_origin);
@@ -602,6 +604,7 @@ decrypt_krb5_data(proto_tree *tree _U_, packet_info *pinfo,
                if((ret == 0) && (length>0)){
                        char *user_data;
 
+printf("%d:%s:%s: woohoo decrypted keytype:%d in frame:%u\n", __LINE__, G_STRFUNC, ek->key_origin, ek->keytype, pinfo->fd->num);
                        expert_add_info_format(pinfo, NULL, &ei_kerberos_decrypted_keytype,
                                                                   "Decrypted keytype %d in frame %u using %s",
                                                                   ek->keytype, pinfo->num, ek->key_origin);
@@ -645,6 +648,8 @@ add_encryption_key(packet_info *pinfo, int keytype, int keylength, const char *k
                return;
        }
 
+printf("%d:%s:%s: added key in %u keytype:%d len:%d\n", __LINE__, G_STRFUNC, origin, pinfo->fd->num, keytype, keylength);
+
        new_key = g_malloc(sizeof(service_key_t));
        new_key->kvno = 0;
        new_key->keytype = keytype;