Lines Matching refs:bcc_ptr

555 	char *bcc_ptr = *pbcc_area;  in unicode_oslm_strings()  local
559 bytes_ret = cifs_strtoUTF16((__le16 *)bcc_ptr, "Linux version ", 32, in unicode_oslm_strings()
561 bcc_ptr += 2 * bytes_ret; in unicode_oslm_strings()
562 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, init_utsname()->release, in unicode_oslm_strings()
564 bcc_ptr += 2 * bytes_ret; in unicode_oslm_strings()
565 bcc_ptr += 2; /* trailing null */ in unicode_oslm_strings()
567 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, CIFS_NETWORK_OPSYS, in unicode_oslm_strings()
569 bcc_ptr += 2 * bytes_ret; in unicode_oslm_strings()
570 bcc_ptr += 2; /* trailing null */ in unicode_oslm_strings()
572 *pbcc_area = bcc_ptr; in unicode_oslm_strings()
578 char *bcc_ptr = *pbcc_area; in unicode_domain_string() local
585 *bcc_ptr = 0; in unicode_domain_string()
586 *(bcc_ptr+1) = 0; in unicode_domain_string()
589 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName, in unicode_domain_string()
591 bcc_ptr += 2 * bytes_ret; in unicode_domain_string()
592 bcc_ptr += 2; /* account for null terminator */ in unicode_domain_string()
594 *pbcc_area = bcc_ptr; in unicode_domain_string()
600 char *bcc_ptr = *pbcc_area; in unicode_ssetup_strings() local
609 *bcc_ptr = 0; in unicode_ssetup_strings()
610 *(bcc_ptr+1) = 0; in unicode_ssetup_strings()
612 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->user_name, in unicode_ssetup_strings()
615 bcc_ptr += 2 * bytes_ret; in unicode_ssetup_strings()
616 bcc_ptr += 2; /* account for null termination */ in unicode_ssetup_strings()
618 unicode_domain_string(&bcc_ptr, ses, nls_cp); in unicode_ssetup_strings()
619 unicode_oslm_strings(&bcc_ptr, nls_cp); in unicode_ssetup_strings()
621 *pbcc_area = bcc_ptr; in unicode_ssetup_strings()
627 char *bcc_ptr = *pbcc_area; in ascii_ssetup_strings() local
634 len = strscpy(bcc_ptr, ses->user_name, CIFS_MAX_USERNAME_LEN); in ascii_ssetup_strings()
637 bcc_ptr += len; in ascii_ssetup_strings()
640 *bcc_ptr = 0; in ascii_ssetup_strings()
641 bcc_ptr++; /* account for null termination */ in ascii_ssetup_strings()
645 len = strscpy(bcc_ptr, ses->domainName, CIFS_MAX_DOMAINNAME_LEN); in ascii_ssetup_strings()
648 bcc_ptr += len; in ascii_ssetup_strings()
651 *bcc_ptr = 0; in ascii_ssetup_strings()
652 bcc_ptr++; in ascii_ssetup_strings()
656 strcpy(bcc_ptr, "Linux version "); in ascii_ssetup_strings()
657 bcc_ptr += strlen("Linux version "); in ascii_ssetup_strings()
658 strcpy(bcc_ptr, init_utsname()->release); in ascii_ssetup_strings()
659 bcc_ptr += strlen(init_utsname()->release) + 1; in ascii_ssetup_strings()
661 strcpy(bcc_ptr, CIFS_NETWORK_OPSYS); in ascii_ssetup_strings()
662 bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1; in ascii_ssetup_strings()
664 *pbcc_area = bcc_ptr; in ascii_ssetup_strings()
706 char *bcc_ptr = *pbcc_area; in decode_ascii_ssetup() local
710 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
718 memcpy(ses->serverOS, bcc_ptr, len); in decode_ascii_ssetup()
724 bcc_ptr += len + 1; in decode_ascii_ssetup()
727 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
735 memcpy(ses->serverNOS, bcc_ptr, len); in decode_ascii_ssetup()
739 bcc_ptr += len + 1; in decode_ascii_ssetup()
742 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
755 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, in decode_ntlmssp_challenge() argument
760 CHALLENGE_MESSAGE *pblob = (CHALLENGE_MESSAGE *)bcc_ptr; in decode_ntlmssp_challenge()
819 ses->auth_key.response = kmemdup(bcc_ptr + tioffset, tilen, in decode_ntlmssp_challenge()
1284 char *bcc_ptr; in sess_auth_ntlmv2() local
1297 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_ntlmv2()
1313 memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE, in sess_auth_ntlmv2()
1315 bcc_ptr += ses->auth_key.len - CIFS_SESS_KEY_SIZE; in sess_auth_ntlmv2()
1328 *bcc_ptr = 0; in sess_auth_ntlmv2()
1329 bcc_ptr++; in sess_auth_ntlmv2()
1331 unicode_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp); in sess_auth_ntlmv2()
1333 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp); in sess_auth_ntlmv2()
1337 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_ntlmv2()
1360 bcc_ptr = pByteArea(smb_buf); in sess_auth_ntlmv2()
1367 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_ntlmv2()
1368 ++bcc_ptr; in sess_auth_ntlmv2()
1371 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_ntlmv2()
1374 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_ntlmv2()
1394 char *bcc_ptr; in sess_auth_kerberos() local
1410 bcc_ptr = sess_data->iov[2].iov_base; in sess_auth_kerberos()
1453 *bcc_ptr = 0; in sess_auth_kerberos()
1454 bcc_ptr++; in sess_auth_kerberos()
1456 unicode_oslm_strings(&bcc_ptr, sess_data->nls_cp); in sess_auth_kerberos()
1457 unicode_domain_string(&bcc_ptr, ses, sess_data->nls_cp); in sess_auth_kerberos()
1460 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp); in sess_auth_kerberos()
1463 sess_data->iov[2].iov_len = (long) bcc_ptr - in sess_auth_kerberos()
1486 bcc_ptr = pByteArea(smb_buf); in sess_auth_kerberos()
1495 bcc_ptr += blob_len; in sess_auth_kerberos()
1503 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_kerberos()
1504 ++bcc_ptr; in sess_auth_kerberos()
1507 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_kerberos()
1510 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_kerberos()
1539 char *bcc_ptr; in _sess_auth_rawntlmssp_assemble_req() local
1553 bcc_ptr = sess_data->iov[2].iov_base; in _sess_auth_rawntlmssp_assemble_req()
1556 *bcc_ptr = 0; in _sess_auth_rawntlmssp_assemble_req()
1557 bcc_ptr++; in _sess_auth_rawntlmssp_assemble_req()
1559 unicode_oslm_strings(&bcc_ptr, sess_data->nls_cp); in _sess_auth_rawntlmssp_assemble_req()
1561 sess_data->iov[2].iov_len = (long) bcc_ptr - in _sess_auth_rawntlmssp_assemble_req()
1579 char *bcc_ptr; in sess_auth_rawntlmssp_negotiate() local
1644 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_negotiate()
1654 rc = decode_ntlmssp_challenge(bcc_ptr, blob_len, ses); in sess_auth_rawntlmssp_negotiate()
1685 char *bcc_ptr; in sess_auth_rawntlmssp_authenticate() local
1739 bcc_ptr = pByteArea(smb_buf); in sess_auth_rawntlmssp_authenticate()
1747 bcc_ptr += blob_len; in sess_auth_rawntlmssp_authenticate()
1756 if (!IS_ALIGNED((unsigned long)bcc_ptr - (unsigned long)smb_buf, 2)) { in sess_auth_rawntlmssp_authenticate()
1757 ++bcc_ptr; in sess_auth_rawntlmssp_authenticate()
1760 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_rawntlmssp_authenticate()
1763 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses, in sess_auth_rawntlmssp_authenticate()