summaryrefslogtreecommitdiffstats
path: root/source/include/proto.h
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-06-24 18:58:08 +0000
committerLuke Leighton <lkcl@samba.org>1999-06-24 18:58:08 +0000
commitac0060443de800fec9042b69b299ff2e9128a31c (patch)
treefd88dcaa96aab5f26cb39b04f2c914815935caaa /source/include/proto.h
parentceb20adb3c924818201fa8992e19e82f45b40710 (diff)
downloadsamba-ac0060443de800fec9042b69b299ff2e9128a31c.tar.gz
samba-ac0060443de800fec9042b69b299ff2e9128a31c.tar.xz
samba-ac0060443de800fec9042b69b299ff2e9128a31c.zip
safe string error reporting functions (found a potential buffer overflow
of a pstrcpy into an fstring).
Diffstat (limited to 'source/include/proto.h')
-rw-r--r--source/include/proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 5ddcc0e6500..cca2a6be796 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -597,6 +597,9 @@ void buffer2_to_multistr(char *dest, const BUFFER2 *str, int maxlen);
int cli_set_port(struct cli_state *cli, int port);
char *cli_errstr(struct cli_state *cli);
+void cli_safe_smb_errstr(struct cli_state *cli, char *msg, size_t len);
+BOOL get_safe_rap_errstr(int rap_error, char *err_msg, size_t msglen);
+void cli_safe_errstr(struct cli_state *cli, char *err_msg, size_t msglen);
BOOL cli_send_trans(struct cli_state *cli, int trans,
char *name, int pipe_name_len,
int fid, int flags,
@@ -730,6 +733,7 @@ void sort_query_replies(char *data, int n, struct in_addr ip);
/*The following definitions come from libsmb/nterr.c */
+void get_safe_nt_error_msg(uint32 nt_code, char *msg, size_t len);
char *get_nt_error_msg(uint32 nt_code);
/*The following definitions come from libsmb/passchange.c */
@@ -778,6 +782,8 @@ BOOL nt_decrypt_string2(STRING2 *out, const STRING2 *in, char nt_hash[16]);
/*The following definitions come from libsmb/smberr.c */
char *smb_err_msg(uint8 class, uint32 num);
+BOOL smb_safe_err_msg(uint8 class, uint32 num, char *ret, size_t len);
+BOOL smb_safe_errstr(char *inbuf, char *msg, size_t len);
char *smb_errstr(char *inbuf);
/*The following definitions come from locking/locking.c */