Type improvements to the internal encrypt/decrypt and CTCP quoting API

Use size_t for passing buffer lengths, and const char * for encryption keys and other non-modified buffer
arguments.

Remove pointless helper function do_crypt().
This commit is contained in:
Kevin Easton
2017-06-28 16:54:11 +10:00
parent c62e099d80
commit 9b0d3e4ab5
6 changed files with 61 additions and 76 deletions

View File

@@ -64,8 +64,8 @@ extern int in_ctcp_flag;
#define CTCP_QUOTE_EM "\r\n\001\\"
extern char * ctcp_quote_it (char *, int);
extern char * ctcp_unquote_it (char *, int *);
extern char *ctcp_quote_it(const char *, size_t);
extern char *ctcp_unquote_it(const char *, size_t *);
extern char * do_ctcp (char *, char *, char *);
extern char * do_notice_ctcp (char *, char *, char *);
extern int in_ctcp (void);