better way to detect pyopenssl usage
This commit is contained in:
		
							parent
							
								
									bbc6aa512a
								
							
						
					
					
						commit
						711dfce03c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -669,8 +669,8 @@ class Connection(ConnectionHandlers):
 | 
				
			||||||
		'warn_when_plaintext_connection'):
 | 
							'warn_when_plaintext_connection'):
 | 
				
			||||||
			self.dispatch('PLAIN_CONNECTION', (con,))
 | 
								self.dispatch('PLAIN_CONNECTION', (con,))
 | 
				
			||||||
			return True
 | 
								return True
 | 
				
			||||||
		if _con_type in ('tls', 'ssl') and not hasattr(con.Connection,
 | 
							if _con_type in ('tls', 'ssl') and con.Connection.ssl_lib != 'PYOPENSSL' \
 | 
				
			||||||
		'_sslContext') and gajim.config.get_per('accounts', self.name,
 | 
							and gajim.config.get_per('accounts', self.name,
 | 
				
			||||||
		'warn_when_insecure_ssl_connection') and \
 | 
							'warn_when_insecure_ssl_connection') and \
 | 
				
			||||||
		not self.connection_auto_accepted:
 | 
							not self.connection_auto_accepted:
 | 
				
			||||||
			# Pyopenssl is not used
 | 
								# Pyopenssl is not used
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue