const void *src,
size_t src_len,
int flags);
-size_t dos_PutUniCode(char *dst, const char *src, size_t len);
int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src);
/* The following definitions come from lib/dmallocmsg.c */
*/
#include "includes.h"
-#include "lib/util/string_wrappers.h"
/**
* Destroy global objects allocated by init_iconv()
flags);
}
-/*******************************************************************
- Write a string in (little-endian) unicode format. src is in
- the current DOS codepage. len is the length in bytes of the
- string pointed to by dst.
-
- if null_terminate is True then null terminate the packet (adds 2 bytes)
-
- the return value is the length in bytes consumed by the string, including the
- null termination if applied
-********************************************************************/
-
-size_t dos_PutUniCode(char *dst, const char *src, size_t len)
-{
- return push_string_check(dst, src, len, STR_UNICODE | STR_NOALIGN);
-}
-
-
/* Converts a string from internal samba format to unicode. Always terminates.
* Actually just a wrapper round push_ucs2_talloc().
*/
/* Pathname with leading '\'. */
{
size_t byte_len;
- byte_len = dos_PutUniCode(
+ byte_len = push_string_check(
pdata + 4,
dos_fname,
- (size_t)max_data_bytes);
+ (size_t)max_data_bytes,
+ STR_UNICODE | STR_NOALIGN);
DBG_DEBUG("SMB_FILE_NAME_INFORMATION\n");
SIVAL(pdata,0,byte_len);
data_size = 4 + byte_len;