Lines Matching refs:ntlmssp
912 ses->ntlmssp->client_flags, server_flags); in decode_ntlmssp_challenge()
914 if ((ses->ntlmssp->client_flags & (NTLMSSP_NEGOTIATE_SEAL | NTLMSSP_NEGOTIATE_SIGN)) && in decode_ntlmssp_challenge()
929 if ((ses->ntlmssp->client_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && in decode_ntlmssp_challenge()
934 ses->ntlmssp->server_flags = server_flags; in decode_ntlmssp_challenge()
936 memcpy(ses->ntlmssp->cryptkey, pblob->Challenge, CIFS_CRYPTO_KEY_SIZE); in decode_ntlmssp_challenge()
1057 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_negotiate_blob()
1061 ses->ntlmssp->client_flags = flags; in build_ntlmssp_negotiate_blob()
1119 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_smb3_negotiate_blob()
1128 ses->ntlmssp->client_flags = flags; in build_ntlmssp_smb3_negotiate_blob()
1184 flags = ses->ntlmssp->server_flags | NTLMSSP_REQUEST_TARGET | in build_ntlmssp_auth_blob()
1238 if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && in build_ntlmssp_auth_blob()
1239 (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess) && in build_ntlmssp_auth_blob()
1241 memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); in build_ntlmssp_auth_blob()
1731 ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL); in sess_auth_rawntlmssp_negotiate()
1732 if (!ses->ntlmssp) { in sess_auth_rawntlmssp_negotiate()
1736 ses->ntlmssp->sesskey_per_smbsess = false; in sess_auth_rawntlmssp_negotiate()
1811 kfree_sensitive(ses->ntlmssp); in sess_auth_rawntlmssp_negotiate()
1812 ses->ntlmssp = NULL; in sess_auth_rawntlmssp_negotiate()
1920 kfree_sensitive(ses->ntlmssp); in sess_auth_rawntlmssp_authenticate()
1921 ses->ntlmssp = NULL; in sess_auth_rawntlmssp_authenticate()