forked from osmocom/wireshark
![Stig Bjørlykke](/assets/img/avatar_default.png)
Change-Id: I1a317b19d8076588c9305dae6287bb80cc14da64 Reviewed-on: https://code.wireshark.org/review/4494 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
58 lines
1.4 KiB
INI
58 lines
1.4 KiB
INI
# credssp.cnf
|
|
# Credential Security Support Provider (CredSSP) conformance file
|
|
|
|
#.PDU_NEW
|
|
TSRequest
|
|
|
|
#.FN_PARS TSRequest/authInfo VAL_PTR = &auth_tvb
|
|
|
|
#.FN_BODY TSRequest/authInfo
|
|
tvbuff_t *auth_tvb = NULL;
|
|
tvbuff_t *decr_tvb = NULL;
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
if(decr_tvb != NULL)
|
|
offset = dissect_credssp_TSCredentials(FALSE, decr_tvb, 0, actx, tree, hf_credssp_TSCredentials);
|
|
|
|
|
|
#.FN_PARS TSCredentials/credType VAL_PTR = &creds_type
|
|
#.FN_PARS TSCredentials/credentials VAL_PTR = &creds_tvb
|
|
|
|
#.FN_BODY TSCredentials/credentials
|
|
tvbuff_t *creds_tvb = NULL;
|
|
tvbuff_t *decr_tvb = NULL;
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
if((decr_tvb != NULL) &&
|
|
((creds_type == TS_PASSWORD_CREDS) || (creds_type == TS_SMARTCARD_CREDS))) {
|
|
|
|
switch(creds_type) {
|
|
case TS_PASSWORD_CREDS:
|
|
offset = dissect_credssp_TSPasswordCreds(FALSE, decr_tvb, 0, actx, tree, hf_credssp_TSPasswordCreds);
|
|
break;
|
|
case TS_SMARTCARD_CREDS:
|
|
offset = dissect_credssp_TSSmartCardCreds(FALSE, decr_tvb, 0, actx, tree, hf_credssp_TSSmartCardCreds);
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
#.FN_PARS NegoData/_item/negoToken VAL_PTR = &token_tvb
|
|
|
|
#.FN_BODY NegoData/_item/negoToken
|
|
tvbuff_t *token_tvb = NULL;
|
|
heur_dtbl_entry_t *hdtbl_entry;
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
if(token_tvb != NULL)
|
|
dissector_try_heuristic(credssp_heur_subdissector_list,
|
|
token_tvb, actx->pinfo, proto_tree_get_root(tree), &hdtbl_entry, NULL);
|
|
|
|
|
|
#.END
|
|
|
|
|