Bug #71753 | Bad SSL socket transform | ||
---|---|---|---|
Submitted: | 17 Feb 2014 15:19 | Modified: | 23 May 2014 16:57 |
Reporter: | Alexander Soklakov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.29 | OS: | Any |
Assigned to: | Alexander Soklakov | CPU Architecture: | Any |
[17 Feb 2014 15:19]
Alexander Soklakov
[23 May 2014 16:57]
Daniel So
Added the following entry to the Connector/J 5.1.31 changelog: "After a non-SSL socket had been transformed into an SSL socket, Connection was still keeping its reference to the wrapped, non-SSL socket, failing to recognize that the type of connection had been changed. This fix creates a new StandardSSLSocketFactory class, which implements SocketFactory and wraps the initial SocketFactory.afterHandshake() method. MysqlIO.socketFactory was replaced after the socket transformation, so that afterHandshake() is performed on the old factory but returns the new socket."