Skip to content
Snippets Groups Projects
Commit 7928d83b authored by Gaël PORTAY's avatar Gaël PORTAY
Browse files

Turn cleantext()'s dirtytext argument into char *

parent d680a9e3
No related merge requests found
...@@ -372,10 +372,10 @@ static void cli_remoteclosed() { ...@@ -372,10 +372,10 @@ static void cli_remoteclosed() {
/* Operates in-place turning dirty (untrusted potentially containing control /* Operates in-place turning dirty (untrusted potentially containing control
* characters) text into clean text. * characters) text into clean text.
* Note: this is safe only with ascii - other charsets could have problems. */ * Note: this is safe only with ascii - other charsets could have problems. */
void cleantext(unsigned char* dirtytext) { void cleantext(char* dirtytext) {
unsigned int i, j; unsigned int i, j;
unsigned char c; char c;
j = 0; j = 0;
for (i = 0; dirtytext[i] != '\0'; i++) { for (i = 0; dirtytext[i] != '\0'; i++) {
......
...@@ -63,7 +63,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param); ...@@ -63,7 +63,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param);
/* Client */ /* Client */
void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) ATTRIB_NORETURN; void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) ATTRIB_NORETURN;
void cli_connected(int result, int sock, void* userdata, const char *errstring); void cli_connected(int result, int sock, void* userdata, const char *errstring);
void cleantext(unsigned char* dirtytext); void cleantext(char* dirtytext);
/* crypto parameters that are stored individually for transmit and receive */ /* crypto parameters that are stored individually for transmit and receive */
struct key_context_directional { struct key_context_directional {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment