| 458 | } |
| 459 | |
| 460 | int FtpSSLWrapper::Send(LPCSTR data, int len) { |
| 461 | if (len == 0) |
| 462 | return CUT_WSClient::Send(data, len); |
| 463 | |
| 464 | int datalen = len; |
| 465 | if (datalen < 0) |
| 466 | datalen = strlen(data); |
| 467 | |
| 468 | |
| 469 | char * datacpy = new char[datalen+1]; |
| 470 | datacpy[datalen] = 0; |
| 471 | memcpy(datacpy, data, datalen*sizeof(char)); |
| 472 | if (!strncmp(datacpy, "PASS", 4)) { |
| 473 | delete [] datacpy; |
| 474 | datacpy = new char[14]; |
| 475 | strcpy(datacpy, "PASS *HIDDEN*"); |
| 476 | } |
| 477 | for(int i = 0; i < datalen; i++) { |
| 478 | if (datacpy[i] == '\r' || datacpy[i] == '\n') |
| 479 | datacpy[i] = ' '; |
| 480 | } |
| 481 | OutClnt("-> %T", SU::Utf8ToTChar(datacpy)); |
| 482 | delete [] datacpy; |
| 483 | |
| 484 | return CUT_WSClient::Send(data, len); |
| 485 | } |
| 486 | |
| 487 | int FtpSSLWrapper::SetProgressMonitor(ProgressMonitor * progmon) { |
| 488 | m_progmon = progmon; |
nothing calls this directly
no outgoing calls
no test coverage detected