You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2016/12/05 20:07:59 UTC
[jira] [Commented] (NET-426) FTPS: Hook to customize
_openDataConnection_ SSLSocket before startHandshake() is called
[ https://issues.apache.org/jira/browse/NET-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15723232#comment-15723232 ]
Bernd Eckenfels commented on NET-426:
-------------------------------------
BTW: I am discussing this Java JSSE shortcoming on OpenJDK security-dev here:
http://mail.openjdk.java.net/pipermail/security-dev/2016-December/015252.html
> FTPS: Hook to customize _openDataConnection_ SSLSocket before startHandshake() is called
> ----------------------------------------------------------------------------------------
>
> Key: NET-426
> URL: https://issues.apache.org/jira/browse/NET-426
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.0.1
> Reporter: Ketan
> Fix For: 3.1, 3.2
>
> Attachments: FTPSClient.patch, FTPSClient.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Currently in FTPSClient class, there is protected _openDataConnection_ method, which create SSLSocket for data connection. But there is no hook to customize the SSLSocket before startHandshake is called.
> I need to know the remote host ip and port, which i can get for socket, and do custom setup to try to reuse SSL sessions from control connection socket. Since the socket factory uses createSocket() method, I can't just use custom socket factory since I don't know the host and port. I can't just override the _openDataConnection_() method in my class since that will call the startHandshake().
> So it would be nice if you can provide hook, much like _connectAction_(), but for data connection before handshake is started. You can pass the new data socket as argument to this hook method so one can get remote host and port information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)