I don't know whether the fix is correct. Because when you try to connect to untrusted user, SSL_accept/SSL_connect will return with error, so SocketException will be thrown later and it will be caugth in ConnectionManager::accept/xxxConnect, so UserConnectionListener::Connected will be never processed.
I have seen there's some possibility to check whether certificates were verified correctly when SSL_accept/SSL_connect returns with error, so it could be possible solution.
I don't know whether the fix is correct. Because when you try to connect to untrusted user, SSL_accept/ SSL_connect will return with error, so SocketException will be thrown later and it will be caugth in ConnectionManag er::accept/ xxxConnect, so UserConnectionL istener: :Connected will be never processed.
I have seen there's some possibility to check whether certificates were verified correctly when SSL_accept/ SSL_connect returns with error, so it could be possible solution.