Changeset 4145
- Timestamp:
- 28/08/08 09:55:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.common/ndg/security/common/m2CryptoSSLUtility.py
r4035 r4145 171 171 @keyword writeTimeout: similar to read timeout''' 172 172 173 if 'postConnectionCheck' in kw: 174 self._postConnectionCheck = kw.pop('postConnectionCheck') 175 else: 176 self._postConnectionCheck = SSL.Checker.Checker 173 self._postConnectionCheck = kw.pop('postConnectionCheck', 174 SSL.Checker.Checker) 177 175 178 176 if 'readTimeout' in kw: … … 191 189 else: 192 190 self.writeTimeout = HTTPSConnection.defWriteTimeout 193 191 192 self._clntCertFilePath = kw.pop('clntCertFilePath', None) 193 self._clntPriKeyFilePath = kw.pop('clntPriKeyFilePath', None) 194 194 195 _HTTPSConnection.__init__(self, *args, **kw) 196 197 # load up certificate stuff 198 if self._clntCertFilePath is not None and \ 199 self._clntPriKeyFilePath is not None: 200 self.ssl_ctx.load_cert(self._clntCertFilePath, 201 self._clntPriKeyFilePath) 195 202 196 203 … … 198 205 '''Overload M2Crypto.httpslib.HTTPSConnection to enable 199 206 custom post connection check of peer certificate and socket timeout''' 207 200 208 self.sock = SSL.Connection(self.ssl_ctx) 201 209 self.sock.set_post_connection_check_callback(
Note: See TracChangeset
for help on using the changeset viewer.