diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-13 01:45:42 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-05-04 17:21:06 -0400 |
commit | 0af4f35f01fef417b42fbad0a9ad774043d898be (patch) | |
tree | 56e1b29d187ef00f68a68e7aaca4d124f8df7bbe /src/ntlm.c | |
parent | 21307dc11da9a5cf75167e125aae5c8afa9d6e9d (diff) | |
download | gss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.tar.gz gss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.tar.xz gss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.zip |
Make MIC conditional on integrity being requested
If integrity is requested by any party then the MIC, if requested by the
server will be generated, otherwise it will not be.
Diffstat (limited to 'src/ntlm.c')
-rw-r--r-- | src/ntlm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -832,7 +832,7 @@ int ntlm_process_target_info(struct ntlm_ctx *ctx, /* the server did not send the timestamp, use current time */ if (srv_time == 0) { srv_time = ntlm_timestamp_now(); - } else { + } else if (add_mic) { av_flags |= MSVAVFLAGS_MIC_PRESENT; *add_mic = true; } |