diff options
Diffstat (limited to 'epan/dissectors/asn1/credssp')
-rw-r--r-- | epan/dissectors/asn1/credssp/credssp.cnf | 14 | ||||
-rw-r--r-- | epan/dissectors/asn1/credssp/packet-credssp-template.c | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/epan/dissectors/asn1/credssp/credssp.cnf b/epan/dissectors/asn1/credssp/credssp.cnf index e8d1553dbc..6df7e1c829 100644 --- a/epan/dissectors/asn1/credssp/credssp.cnf +++ b/epan/dissectors/asn1/credssp/credssp.cnf @@ -21,6 +21,20 @@ TSRequest if(decr_tvb != NULL) dissect_credssp_TSCredentials(FALSE, decr_tvb, 0, actx, tree, hf_credssp_TSCredentials); +#.FN_BODY TSRequest/pubKeyAuth VAL_PTR = &auth_tvb + tvbuff_t *auth_tvb = NULL; + tvbuff_t *decr_tvb = NULL; + gssapi_encrypt_info_t gssapi_encrypt; + + %(DEFAULT_BODY)s + + memset(&gssapi_encrypt, 0, sizeof(gssapi_encrypt)); + gssapi_encrypt.decrypt_gssapi_tvb=DECRYPT_GSSAPI_NORMAL; + call_dissector_with_data(gssapi_wrap_handle, auth_tvb, actx->pinfo, tree, &gssapi_encrypt); + decr_tvb = gssapi_encrypt.gssapi_decrypted_tvb; + + if(decr_tvb != NULL) + proto_tree_add_item(tree, hf_credssp_decr_PublicKeyAuth, decr_tvb, 0, -1, ENC_NA); #.FN_BODY TSRequest/errorCode diff --git a/epan/dissectors/asn1/credssp/packet-credssp-template.c b/epan/dissectors/asn1/credssp/packet-credssp-template.c index 47a0399e79..8352cf365a 100644 --- a/epan/dissectors/asn1/credssp/packet-credssp-template.c +++ b/epan/dissectors/asn1/credssp/packet-credssp-template.c @@ -45,6 +45,7 @@ static dissector_handle_t gssapi_wrap_handle; static int hf_credssp_TSPasswordCreds = -1; /* TSPasswordCreds */ static int hf_credssp_TSSmartCardCreds = -1; /* TSSmartCardCreds */ static int hf_credssp_TSCredentials = -1; /* TSCredentials */ +static int hf_credssp_decr_PublicKeyAuth = -1;/* decr_PublicKeyAuth */ #include "packet-credssp-hf.c" /* Initialize the subtree pointers */ @@ -139,6 +140,10 @@ void proto_register_credssp(void) { { "TSCredentials", "credssp.TSCredentials", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, + { &hf_credssp_decr_PublicKeyAuth, + { "Decrypted PublicKeyAuth (sha256)", "credssp.decr_PublicKeyAuth", + FT_BYTES, BASE_NONE, NULL, 0, + NULL, HFILL }}, #include "packet-credssp-hfarr.c" }; |