Home
last modified time | relevance | path

Searched refs:oembuf (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_msgbuf.c382 uint8_t *oembuf = NULL; in msgbuf_get_oem_string() local
416 if (oembuf == NULL) in msgbuf_get_oem_string()
418 bcopy(mb->scan, oembuf, datalen); in msgbuf_get_oem_string()
420 oembuf[oemlen] = '\0'; in msgbuf_get_oem_string()
430 rlen = smb_oemtombs(mbs, oembuf, mbsmax); in msgbuf_get_oem_string()
715 uint8_t *oembuf = NULL; in msgbuf_put_oem_string() local
741 oembuf = smb_msgbuf_malloc(mb, oemlen + 1); in msgbuf_put_oem_string()
742 if (oembuf == NULL) in msgbuf_put_oem_string()
744 rlen = smb_mbstooem(oembuf, mbs, oemlen); in msgbuf_put_oem_string()
749 oembuf[rlen] = '\0'; in msgbuf_put_oem_string()
[all …]
H A Dsmb_utf8.c288 uint8_t oembuf[8]; in smb_sbequiv_strlen() local
291 oemlen = smb_mbstooem(oembuf, mbsbuf, 8); in smb_sbequiv_strlen()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_marshaling.c1096 uint8_t *oembuf = NULL; in mbc_marshal_put_oem_string() local
1121 ASSERT(oembuf != NULL); in mbc_marshal_put_oem_string()
1129 oembuf[rlen] = '\0'; in mbc_marshal_put_oem_string()
1135 s = oembuf; in mbc_marshal_put_oem_string()
1149 if (oembuf != NULL) in mbc_marshal_put_oem_string()
1150 smb_mem_free(oembuf); in mbc_marshal_put_oem_string()
1559 oembuf = smb_mem_realloc(oembuf, oemmax); in mbc_marshal_get_oem_string()
1567 oembuf[oemlen++] = ch; in mbc_marshal_get_oem_string()
1569 oembuf[oemlen] = '\0'; in mbc_marshal_get_oem_string()
1590 if (oembuf != NULL) in mbc_marshal_get_oem_string()
[all …]