/titanic_50/usr/src/common/smbsrv/ |
H A D | smb_utf8.c | 78 smb_mbstowcs(smb_wchar_t *wcstring, const char *mbstring, size_t nwchars) in smb_mbstowcs() 81 smb_wchar_t *start = wcstring; in smb_mbstowcs() 119 smb_mbtowc(smb_wchar_t *wcharp, const char *mbchar, size_t nbytes) in smb_mbtowc() 122 smb_wchar_t wide_char; in smb_mbtowc() 132 *wcharp = (smb_wchar_t)mbyte; in smb_mbtowc() 178 smb_wctomb(char *mbchar, smb_wchar_t wchar) in smb_wctomb() 211 smb_wcstombs(char *mbstring, const smb_wchar_t *wcstring, size_t nbytes) in smb_wcstombs() 214 const smb_wchar_t *wcp = wcstring; in smb_wcstombs() 215 smb_wchar_t wide_char = 0; in smb_wcstombs() 259 smb_wchar_t wide_char; in smb_wcequiv_strlen() [all …]
|
H A D | smb_oem.c | 51 smb_wchar_t *value; 100 const smb_wchar_t oem_codepage_850[256] = { 138 const smb_wchar_t oem_codepage_1252[256] = { 188 ucstooem(char *oem, const smb_wchar_t *ucs, size_t nbytes, uint32_t cpid) in ucstooem() 192 smb_wchar_t oemchar; in ucstooem() 230 oemtoucs(smb_wchar_t *ucs, const char *oem, size_t nwchars, uint32_t cpid) in oemtoucs() 234 smb_wchar_t oemchar; in oemtoucs() 242 while ((oemchar = (smb_wchar_t)*oem++ & 0xff) != 0) { in oemtoucs() 329 const smb_wchar_t *default_oem_cp; in oem_codepage_setup() 357 MEM_ZALLOC("oem", max_oem_index * sizeof (smb_wchar_t)); in oem_codepage_setup() [all …]
|
H A D | smb_string.c | 193 smb_wchar_t c; in smb_strupr() 224 smb_wchar_t c; in smb_strlwr() 253 smb_wchar_t c; in smb_isstrlwr() 284 smb_wchar_t c; in smb_isstrupr() 357 unicode[b].upper = (smb_wchar_t)b; in smb_unicode_init() 358 unicode[b].lower = (smb_wchar_t)b; in smb_unicode_init() 372 unicode[b].upper = (smb_wchar_t)b; in smb_unicode_init() 373 unicode[b].lower = (smb_wchar_t)b; in smb_unicode_init() 382 unicode[b].upper = (smb_wchar_t)b; in smb_unicode_init() 383 unicode[b].lower = (smb_wchar_t)b; in smb_unicode_init() [all …]
|
H A D | smb_match.c | 145 smb_wchar_t wcpat, wcstr; /* current wchar in pat, str */ in smb_match_private()
|
H A D | smb_msgbuf.c | 224 smb_wchar_t wchar; in buf_decode() 469 smb_wchar_t wchar; in buf_encode()
|
/titanic_50/usr/src/uts/common/smbsrv/ |
H A D | string.h | 90 typedef uint16_t smb_wchar_t; typedef 111 smb_wchar_t upper; 112 smb_wchar_t lower; 129 size_t smb_mbstowcs(smb_wchar_t *, const char *, size_t); 130 size_t smb_wcstombs(char *, const smb_wchar_t *, size_t); 131 int smb_mbtowc(smb_wchar_t *, const char *, size_t); 132 int smb_wctomb(char *, smb_wchar_t); 140 size_t ucstooem(char *, const smb_wchar_t *, size_t, uint32_t); 141 size_t oemtoucs(smb_wchar_t *, const char *, size_t, uint32_t);
|
H A D | ndr.h | 458 size_t ndr_mbstowcs(struct ndr_stream *, smb_wchar_t *, const char *, size_t); 459 int ndr_mbtowc(struct ndr_stream *, smb_wchar_t *, const char *, size_t);
|
/titanic_50/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_auth.c | 95 smb_auth_qnd_unicode(smb_wchar_t *dst, const char *src, int length) in smb_auth_qnd_unicode() 99 smb_wchar_t new_char; in smb_auth_qnd_unicode() 103 new_char = (smb_wchar_t)src[i] & 0xff; in smb_auth_qnd_unicode() 110 return (count * sizeof (smb_wchar_t)); in smb_auth_qnd_unicode() 201 smb_wchar_t *unicode_password; in smb_auth_ntlm_hash() 209 unicode_len = (length + 1) * sizeof (smb_wchar_t); in smb_auth_ntlm_hash() 260 smb_wchar_t *data; in smb_auth_ntlmv2_hash() 276 data = (smb_wchar_t *)malloc((data_len + 1) * sizeof (smb_wchar_t)); in smb_auth_ntlmv2_hash()
|
H A D | libsmb.h | 366 smb_wchar_t nne_name[SMB_PI_MAX_DOMAIN * 2]; 491 extern int smb_auth_qnd_unicode(smb_wchar_t *, const char *, int);
|
H A D | smb_info.c | 618 smb_wchar_t wtmp_name[NETBIOS_NAME_SZ]; in smb_tonetbiosname()
|
/titanic_50/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_heap.c | 190 out->allosize = out->length + sizeof (smb_wchar_t); in ndr_heap_mstring() 215 mlen = sizeof (ndr_vcs_t) + vc->wcsize + sizeof (smb_wchar_t); in ndr_heap_mkvcs() 221 vc->vcs->vc_length_is = vc->wclen / sizeof (smb_wchar_t); in ndr_heap_mkvcs() 222 (void) smb_mbstowcs((smb_wchar_t *)vc->vcs->buffer, s, in ndr_heap_mkvcs()
|
H A D | ndr_process.c | 1215 sizeof (smb_wchar_t); in ndr_outer_string() 1950 count = smb_mbtowc((smb_wchar_t *)&wide_char, valp, in ndr_s_wchar() 2001 ndr_mbstowcs(ndr_stream_t *nds, smb_wchar_t *wcs, const char *mbs, in ndr_mbstowcs() 2004 smb_wchar_t *start = wcs; in ndr_mbstowcs() 2033 ndr_mbtowc(ndr_stream_t *nds, smb_wchar_t *wcharp, const char *mbchar, in ndr_mbtowc()
|
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_svc.c | 44 #define LOGR_WNSTRLEN(S) ((strlen((S)) + 1) * sizeof (smb_wchar_t)) 438 smb_wchar_t wcs_hostname[MAXHOSTNAMELEN]; in logr_set_logrecord() 439 smb_wchar_t wcs_srcname[SYS_NMLN * 2]; in logr_set_logrecord() 477 (void) smb_mbstowcs((smb_wchar_t *)(rec->info + sh_len), in logr_set_logrecord()
|
H A D | svcctl_scm.c | 555 smb_wchar_t *w_name; in svcctl_scm_enum_services() 594 w_name = (smb_wchar_t *)&buf[offset]; in svcctl_scm_enum_services() 611 w_name = (smb_wchar_t *)&buf[offset]; in svcctl_scm_enum_services() 658 *cnt += (strlen(node->sn_fmri) + 1) * sizeof (smb_wchar_t); in svcctl_scm_cb_bytes_needed() 659 *cnt += (strlen(node->sn_name) + 1) * sizeof (smb_wchar_t); in svcctl_scm_cb_bytes_needed()
|
H A D | spoolss_svc.c | 713 smb_wchar_t *wcs; in spoolss_s_GetPrinterData() 817 wcslen = smb_wcequiv_strlen(buf) + sizeof (smb_wchar_t); in spoolss_s_GetPrinterData() 852 (void) smb_mbstowcs(((smb_wchar_t *)(dst + *offset)), src, nwchars); in smb_rpc_off() 988 (void) smb_mbstowcs((smb_wchar_t *)devmode2->devicename, in spoolss_s_GetPrinter() 1009 (void) smb_mbstowcs((smb_wchar_t *)devmode2->formname, in spoolss_s_GetPrinter()
|
H A D | libmlsvc.h | 184 #define SVCCTL_WNSTRLEN(S) ((strlen((S)) + 1) * sizeof (smb_wchar_t))
|
H A D | samlib.c | 370 smb_wchar_t *pbuf; in samr_fill_userpw()
|
H A D | samr_clnt.c | 586 length += sizeof (smb_wchar_t); in samr_lookup_domain() 675 length += sizeof (smb_wchar_t); in samr_lookup_domain_names()
|
H A D | winreg_svc.c | 920 slen = smb_wcequiv_strlen(value) + sizeof (smb_wchar_t); in winreg_s_QueryValue() 939 (void) ndr_mbstowcs(NULL, (smb_wchar_t *)pv->value, value, slen); in winreg_s_QueryValue()
|
/titanic_50/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_vops.c | 111 smb_wchar_t winchar; /* v5 */ 127 static smb_wchar_t smb_catia_v5_lookup[SMB_CATIA_V5_LOOKUP_MAX]; 128 static smb_wchar_t smb_catia_v4_lookup[SMB_CATIA_V4_LOOKUP_MAX]; 1482 smb_catia_v4_lookup[i] = (smb_wchar_t)(i + offset); in smb_vop_catia_init_v4_lookup() 1486 smb_catia_v4_lookup[idx] = (smb_wchar_t)catia_maps[i].unixchar; in smb_vop_catia_init_v4_lookup() 1502 smb_catia_v5_lookup[i] = (smb_wchar_t)i; in smb_vop_catia_init_v5_lookup() 1534 smb_wchar_t wc; in smb_vop_catia_v5tov4() 1591 smb_wchar_t wc; in smb_vop_catia_v4tov5()
|
H A D | smb_mbuf_marshaling.c | 1077 smb_wchar_t wide_char; in mbc_marshal_put_ascii_string() 1114 smb_wchar_t wchar; in mbc_marshal_put_unicode_string() 1121 length += sizeof (smb_wchar_t); in mbc_marshal_put_unicode_string() 1141 length -= sizeof (smb_wchar_t); in mbc_marshal_put_unicode_string()
|
H A D | smb_session.c | 229 smb_wchar_t *wbuf = NULL; in smb_netbios_session_request() 292 wbuf = kmem_alloc((SMB_PI_MAX_HOST * sizeof (smb_wchar_t)), KM_SLEEP); in smb_netbios_session_request() 295 kmem_free(wbuf, (SMB_PI_MAX_HOST * sizeof (smb_wchar_t))); in smb_netbios_session_request()
|
H A D | smb_negotiate.c | 554 wclen = smb_wcequiv_strlen(nbdomain) + sizeof (smb_wchar_t); in smb_com_negotiate()
|
H A D | smb_fsinfo.c | 213 buflen = length + sizeof (smb_wchar_t); in smb_com_trans2_query_fs_information()
|
/titanic_50/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netlogon.c | 135 smb_wchar_t unicode_src_name[SMB_PI_MAX_HOST]; in smb_netlogon_receive()
|