summaryrefslogtreecommitdiffstats
path: root/src/ntlm.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-06 23:26:44 -0400
committerSimo Sorce <simo@redhat.com>2014-05-04 17:21:06 -0400
commit3b15e749eac2c47376f86ff94b9bf6f6ad1a157a (patch)
tree8217eff2871e587fa49d9ee19c0e845f08dd3437 /src/ntlm.h
parent2c3e9cb83b4a87ee5f792c35ecf3dbc366eb766f (diff)
downloadgss-ntlmssp-3b15e749eac2c47376f86ff94b9bf6f6ad1a157a.tar.gz
gss-ntlmssp-3b15e749eac2c47376f86ff94b9bf6f6ad1a157a.tar.xz
gss-ntlmssp-3b15e749eac2c47376f86ff94b9bf6f6ad1a157a.zip
Check netbios computer and domain name when needed
MS-NLMP 3.1.5.1.2 says a client must fail to communicate if NTLMv2 is used, Integrity or Confidentiality are required and NetBIOS Computer or Domain Name are not present in the Challenge message from the server.
Diffstat (limited to 'src/ntlm.h')
-rw-r--r--src/ntlm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ntlm.h b/src/ntlm.h
index b7c6960..9c5da00 100644
--- a/src/ntlm.h
+++ b/src/ntlm.h
@@ -536,6 +536,7 @@ int ntlm_decode_target_info(struct ntlm_ctx *ctx, struct ntlm_buffer *buffer,
* @brief A utility function to process a target_info structure
*
* @param ctx The ntlm context
+ * @param protect Set if signing or sealing has been requested
* @param in A ntlm_buffer containing the received info
* @param server The Client Supplied Server Name if available
* @param unhashed_cb A ntlm_buffer with channel binding data
@@ -547,7 +548,7 @@ int ntlm_decode_target_info(struct ntlm_ctx *ctx, struct ntlm_buffer *buffer,
*
* @return 0 if everyting parses correctly, or an error code
*/
-int ntlm_process_target_info(struct ntlm_ctx *ctx,
+int ntlm_process_target_info(struct ntlm_ctx *ctx, bool protect,
struct ntlm_buffer *in,
const char *server,
struct ntlm_buffer *unhashed_cb,