Lines Matching refs:pbuffer
334 void build_ntlmssp_negotiate_blob(unsigned char *pbuffer, in build_ntlmssp_negotiate_blob() argument
337 NEGOTIATE_MESSAGE *sec_blob = (NEGOTIATE_MESSAGE *)pbuffer; in build_ntlmssp_negotiate_blob()
340 memset(pbuffer, 0, sizeof(NEGOTIATE_MESSAGE)); in build_ntlmssp_negotiate_blob()
384 int build_ntlmssp_auth_blob(unsigned char **pbuffer, in build_ntlmssp_auth_blob() argument
400 *pbuffer = kmalloc(size_of_ntlmssp_blob(ses), GFP_KERNEL); in build_ntlmssp_auth_blob()
401 if (!*pbuffer) { in build_ntlmssp_auth_blob()
407 sec_blob = (AUTHENTICATE_MESSAGE *)*pbuffer; in build_ntlmssp_auth_blob()
422 tmp = *pbuffer + sizeof(AUTHENTICATE_MESSAGE); in build_ntlmssp_auth_blob()
431 cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
450 sec_blob->DomainName.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
459 sec_blob->DomainName.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
466 sec_blob->UserName.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
475 sec_blob->UserName.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
481 sec_blob->WorkstationName.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
490 sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
496 sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - *pbuffer); in build_ntlmssp_auth_blob()
501 *buflen = tmp - *pbuffer; in build_ntlmssp_auth_blob()