hard bug corrected

This commit is contained in:
speyrefitte
2013-10-24 17:12:25 +02:00
parent d73cb63777
commit 1070ea8b6a
4 changed files with 14 additions and 14 deletions

View File

@@ -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):

View File

@@ -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