mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-02 06:45:59 +01:00
Improve proceedTLSReceived() documentation
This commit is contained in:
parent
3de8af6865
commit
e2bca403e0
1 changed files with 2 additions and 2 deletions
|
@ -636,7 +636,7 @@ public class XMPPTCPConnection extends XMPPConnection {
|
|||
/**
|
||||
* The server has indicated that TLS negotiation can start. We now need to secure the
|
||||
* existing plain connection and perform a handshake. This method won't return until the
|
||||
* connection has finished the handshake or an error occured while securing the connection.
|
||||
* connection has finished the handshake or an error occurred while securing the connection.
|
||||
*
|
||||
* @throws Exception if an exception occurs.
|
||||
*/
|
||||
|
@ -702,7 +702,7 @@ public class XMPPTCPConnection extends XMPPConnection {
|
|||
}
|
||||
}
|
||||
|
||||
// Verify certificate presented by the server
|
||||
// If the user didn't specify a SSLContext, use the default one
|
||||
if (context == null) {
|
||||
context = SSLContext.getInstance("TLS");
|
||||
context.init(kms, null, new java.security.SecureRandom());
|
||||
|
|
Loading…
Reference in a new issue