#NEWLINE# def connectSSL( self , server , port , vhost ) : #NEWLINE# #INDENT# 'Connect to the server using an SSL socket.' #NEWLINE# drivers . log . info ( 'Attempting an SSL connection.' ) #NEWLINE# if SSL : #NEWLINE# #INDENT# reactor . connectSSL ( server , port , self , ssl . ClientContextFactory ( ) , bindAddress = ( vhost , 0 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# drivers . log . error ( 'PyOpenSSL is not available. Not connecting.' )