We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf6df5 commit 06efb4bCopy full SHA for 06efb4b
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
@@ -2590,6 +2590,10 @@ public void execute() throws BuildException {
2590
if (useFtps && useSecureDataChannel) {
2591
FTPSClient ftps = (FTPSClient) ftp;
2592
try {
2593
+ // first issue a PBSZ command as mandated by RFC-2228.
2594
+ // we set 0 because the buffer size is redundant since the encryption
2595
+ // is handled at TLS layer and not application layer
2596
+ ftps.execPBSZ(0);
2597
ftps.execPROT("P"); // P implies PRIVATE and enables encryption
2598
} catch (IOException e) {
2599
throw new BuildException("failed to enable secure data channel: " + e, e);
0 commit comments