summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-13 01:44:05 +0000
committerJeremy Allison <jra@samba.org>2001-03-13 01:44:05 +0000
commit0ef2179d23a2f9826e17c2b858fd8f2a9634b332 (patch)
tree7af8048480b60b9d1e044f78900a19bc93302859 /source3/include
parent23e5cf060d282c9ba9bdf49884ce23a13b285aac (diff)
downloadsamba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.tar.gz
samba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.tar.bz2
samba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.zip
Fixed reading of strings from big-endian RPC clients.
Jeremy. (This used to be commit e7ecb9410ff2e4fcd33bca9f82e14c060590942a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 774f623adb..006b26cf05 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -599,8 +599,10 @@ size_t dos_PutUniCode(char *dst,const char *src, ssize_t len, BOOL null_terminat
void unistr_to_dos(char *dest, const char *src, size_t len);
char *skip_unibuf(char *src, size_t len);
char *dos_unistrn2(uint16 *src, int len);
+char *rpc_unistrn2(uint16 *src, int len, BOOL endian);
char *dos_unistr2(uint16 *src);
char *dos_unistr2_to_str(UNISTR2 *str);
+char *rpc_unistr2_to_str(UNISTR2 *str, BOOL endian);
void ascii_to_unistr(uint16 *dest, const char *src, int maxlen);
void unistr_to_ascii(char *dest, const uint16 *src, int len);
void unistr2_to_ascii(char *dest, const UNISTR2 *str, size_t maxlen);