hard bug corrected
This commit is contained in:
@@ -160,7 +160,7 @@ class ClientSecuritySettings(CompositeType):
|
||||
'''
|
||||
def __init__(self):
|
||||
CompositeType.__init__(self)
|
||||
self.encryptionMethods = UInt32Le()
|
||||
self.encryptionMethods = UInt32Le()#Encryption.ENCRYPTION_FLAG_128BIT | Encryption.ENCRYPTION_FLAG_40BIT | Encryption.ENCRYPTION_FLAG_56BIT | Encryption.FIPS_ENCRYPTION_FLAG
|
||||
self.extEncryptionMethods = UInt32Le()
|
||||
|
||||
class Channel(object):
|
||||
@@ -212,7 +212,7 @@ def writeClientDataBlocks(settings):
|
||||
@param settings: ClientSettings
|
||||
'''
|
||||
return (writeClientCoreData(settings.core),
|
||||
writeClientNetworkData(settings.networkChannels),
|
||||
#writeClientNetworkData(settings.networkChannels),
|
||||
writeClientSecurityData(settings.security))
|
||||
|
||||
def writeClientCoreData(core):
|
||||
|
||||
@@ -169,9 +169,9 @@ class ClientTLSContext(ssl.ClientContextFactory):
|
||||
'''
|
||||
client context factory for open ssl
|
||||
'''
|
||||
isClient = 1
|
||||
def getContext(self):
|
||||
context = SSL.Context(SSL.TLSv1_METHOD)
|
||||
context.set_options(0x00020000)#SSL_OP_NO_COMPRESSION
|
||||
context.set_options(SSL.OP_DONT_INSERT_EMPTY_FRAGMENTS)
|
||||
context.set_options(SSL.OP_TLS_BLOCK_PADDING_BUG)
|
||||
return context
|
||||
Reference in New Issue
Block a user