Lines Matching refs:ntlmssp
795 ses->ntlmssp->client_flags, server_flags); in decode_ntlmssp_challenge()
797 if ((ses->ntlmssp->client_flags & (NTLMSSP_NEGOTIATE_SEAL | NTLMSSP_NEGOTIATE_SIGN)) && in decode_ntlmssp_challenge()
812 if ((ses->ntlmssp->client_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && in decode_ntlmssp_challenge()
817 ses->ntlmssp->server_flags = server_flags; in decode_ntlmssp_challenge()
819 memcpy(ses->ntlmssp->cryptkey, pblob->Challenge, CIFS_CRYPTO_KEY_SIZE); in decode_ntlmssp_challenge()
937 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_negotiate_blob()
941 ses->ntlmssp->client_flags = flags; in build_ntlmssp_negotiate_blob()
999 if (!server->session_estab || ses->ntlmssp->sesskey_per_smbsess) in build_ntlmssp_smb3_negotiate_blob()
1008 ses->ntlmssp->client_flags = flags; in build_ntlmssp_smb3_negotiate_blob()
1063 flags = ses->ntlmssp->server_flags | NTLMSSP_REQUEST_TARGET | in build_ntlmssp_auth_blob()
1112 if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && in build_ntlmssp_auth_blob()
1113 (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess) && in build_ntlmssp_auth_blob()
1115 memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); in build_ntlmssp_auth_blob()
1605 ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL); in sess_auth_rawntlmssp_negotiate()
1606 if (!ses->ntlmssp) { in sess_auth_rawntlmssp_negotiate()
1610 ses->ntlmssp->sesskey_per_smbsess = false; in sess_auth_rawntlmssp_negotiate()
1685 kfree_sensitive(ses->ntlmssp); in sess_auth_rawntlmssp_negotiate()
1686 ses->ntlmssp = NULL; in sess_auth_rawntlmssp_negotiate()
1794 kfree_sensitive(ses->ntlmssp); in sess_auth_rawntlmssp_authenticate()
1795 ses->ntlmssp = NULL; in sess_auth_rawntlmssp_authenticate()