summaryrefslogtreecommitdiffstats
path: root/src/ntlm.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-05 14:51:02 -0400
committerSimo Sorce <simo@redhat.com>2014-05-04 17:21:06 -0400
commitfe612bf48a46789cc7e4a4c1e637fe17d2796a97 (patch)
tree4bd37b88c06ec05a7e8b18b83b1ef078a580f826 /src/ntlm.h
parent0af4f35f01fef417b42fbad0a9ad774043d898be (diff)
downloadgss-ntlmssp-fe612bf48a46789cc7e4a4c1e637fe17d2796a97.tar.gz
gss-ntlmssp-fe612bf48a46789cc7e4a4c1e637fe17d2796a97.tar.xz
gss-ntlmssp-fe612bf48a46789cc7e4a4c1e637fe17d2796a97.zip
Return target_info from ntlm_decode_auth_msg
The target_info structure embedded in the NT Response message in NTLMv2 contains information needed to establish if the client has sent a valid MIC. So we need to extract and return it if the caller requested it. Also moves some wire structures definitions in common to be able to reuse them.
Diffstat (limited to 'src/ntlm.h')
-rw-r--r--src/ntlm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ntlm.h b/src/ntlm.h
index f338bbd..648e811 100644
--- a/src/ntlm.h
+++ b/src/ntlm.h
@@ -666,6 +666,7 @@ int ntlm_encode_auth_msg(struct ntlm_ctx *ctx,
* @param user_name The User name
* @param workstation The Workstation name
* @param enc_sess_key The session key
+ * @param target_info The target_info AV_PAIR embedded in the NT Response
* @param mic A MIC of the messages
* Passing a pointer to a mic means the caller has
* previously requested the presence of a MIC field from
@@ -688,6 +689,7 @@ int ntlm_decode_auth_msg(struct ntlm_ctx *ctx,
char **domain_name, char **user_name,
char **workstation,
struct ntlm_buffer *enc_sess_key,
+ struct ntlm_buffer *target_info,
struct ntlm_buffer *mic);
#endif /* _NTLM_H_ */