Lines Matching refs:bcc_ptr
361 char *bcc_ptr = *pbcc_area;
365 bytes_ret = cifs_strtoUTF16((__le16 *)bcc_ptr, "Linux version ", 32,
367 bcc_ptr += 2 * bytes_ret;
368 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, init_utsname()->release,
370 bcc_ptr += 2 * bytes_ret;
371 bcc_ptr += 2; /* trailing null */
373 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, CIFS_NETWORK_OPSYS,
375 bcc_ptr += 2 * bytes_ret;
376 bcc_ptr += 2; /* trailing null */
378 *pbcc_area = bcc_ptr;
384 char *bcc_ptr = *pbcc_area;
391 *bcc_ptr = 0;
392 *(bcc_ptr+1) = 0;
395 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName,
397 bcc_ptr += 2 * bytes_ret;
398 bcc_ptr += 2; /* account for null terminator */
400 *pbcc_area = bcc_ptr;
407 char *bcc_ptr = *pbcc_area;
414 /* if ((long) bcc_ptr % 2) {
415 *bcc_ptr = 0;
416 bcc_ptr++;
421 *bcc_ptr = 0;
422 *(bcc_ptr+1) = 0;
424 bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->user_name,
427 bcc_ptr += 2 * bytes_ret;
428 bcc_ptr += 2; /* account for null termination */
430 unicode_domain_string(&bcc_ptr, ses, nls_cp);
431 unicode_oslm_strings(&bcc_ptr, nls_cp);
433 *pbcc_area = bcc_ptr;
439 char *bcc_ptr = *pbcc_area;
446 len = strscpy(bcc_ptr, ses->user_name, CIFS_MAX_USERNAME_LEN);
449 bcc_ptr += len;
452 *bcc_ptr = 0;
453 bcc_ptr++; /* account for null termination */
457 len = strscpy(bcc_ptr, ses->domainName, CIFS_MAX_DOMAINNAME_LEN);
460 bcc_ptr += len;
463 *bcc_ptr = 0;
464 bcc_ptr++;
468 strcpy(bcc_ptr, "Linux version ");
469 bcc_ptr += strlen("Linux version ");
470 strcpy(bcc_ptr, init_utsname()->release);
471 bcc_ptr += strlen(init_utsname()->release) + 1;
473 strcpy(bcc_ptr, CIFS_NETWORK_OPSYS);
474 bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1;
476 *pbcc_area = bcc_ptr;
518 char *bcc_ptr = *pbcc_area;
522 len = strnlen(bcc_ptr, bleft);
530 memcpy(ses->serverOS, bcc_ptr, len);
536 bcc_ptr += len + 1;
539 len = strnlen(bcc_ptr, bleft);
547 memcpy(ses->serverNOS, bcc_ptr, len);
551 bcc_ptr += len + 1;
554 len = strnlen(bcc_ptr, bleft);
566 int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len,
572 CHALLENGE_MESSAGE *pblob = (CHALLENGE_MESSAGE *)bcc_ptr;
604 ses->auth_key.response = kmemdup(bcc_ptr + tioffset, tilen,
976 char *bcc_ptr;
988 bcc_ptr = sess_data->iov[2].iov_base;
997 /* Calculate hash with password and copy into bcc_ptr.
1008 memcpy(bcc_ptr, (char *)lnm_session_key, CIFS_AUTH_RESP_SIZE);
1009 bcc_ptr += CIFS_AUTH_RESP_SIZE;
1023 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1025 sess_data->iov[2].iov_len = (long) bcc_ptr -
1049 bcc_ptr = pByteArea(smb_buf);
1056 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1057 ++bcc_ptr;
1060 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
1063 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
1082 char *bcc_ptr;
1094 bcc_ptr = sess_data->iov[2].iov_base;
1113 memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
1115 bcc_ptr += CIFS_AUTH_RESP_SIZE;
1116 memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
1118 bcc_ptr += CIFS_AUTH_RESP_SIZE;
1127 *bcc_ptr = 0;
1128 bcc_ptr++;
1130 unicode_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1132 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1136 sess_data->iov[2].iov_len = (long) bcc_ptr -
1159 bcc_ptr = pByteArea(smb_buf);
1166 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1167 ++bcc_ptr;
1170 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
1173 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
1192 char *bcc_ptr;
1204 bcc_ptr = sess_data->iov[2].iov_base;
1220 memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
1222 bcc_ptr += ses->auth_key.len - CIFS_SESS_KEY_SIZE;
1235 *bcc_ptr = 0;
1236 bcc_ptr++;
1238 unicode_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1240 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1244 sess_data->iov[2].iov_len = (long) bcc_ptr -
1267 bcc_ptr = pByteArea(smb_buf);
1274 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1275 ++bcc_ptr;
1278 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
1281 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
1301 char *bcc_ptr;
1316 bcc_ptr = sess_data->iov[2].iov_base;
1359 *bcc_ptr = 0;
1360 bcc_ptr++;
1362 unicode_oslm_strings(&bcc_ptr, sess_data->nls_cp);
1363 unicode_domain_string(&bcc_ptr, ses, sess_data->nls_cp);
1366 ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
1369 sess_data->iov[2].iov_len = (long) bcc_ptr -
1392 bcc_ptr = pByteArea(smb_buf);
1401 bcc_ptr += blob_len;
1409 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1410 ++bcc_ptr;
1413 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
1416 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
1444 char *bcc_ptr;
1458 bcc_ptr = sess_data->iov[2].iov_base;
1461 *bcc_ptr = 0;
1462 bcc_ptr++;
1464 unicode_oslm_strings(&bcc_ptr, sess_data->nls_cp);
1466 sess_data->iov[2].iov_len = (long) bcc_ptr -
1483 char *bcc_ptr;
1542 bcc_ptr = pByteArea(smb_buf);
1552 rc = decode_ntlmssp_challenge(bcc_ptr, blob_len, ses);
1579 char *bcc_ptr;
1632 bcc_ptr = pByteArea(smb_buf);
1640 bcc_ptr += blob_len;
1649 if (((unsigned long) bcc_ptr - (unsigned long) smb_buf) % 2) {
1650 ++bcc_ptr;
1653 decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
1656 decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,