Show More
@@ -155,6 +155,10 b' def _hostsettings(ui, hostname):' | |||||
155 | # is available. Be careful when adding flags! |
|
155 | # is available. Be careful when adding flags! | |
156 | s['ctxoptions'] = OP_NO_SSLv2 | OP_NO_SSLv3 |
|
156 | s['ctxoptions'] = OP_NO_SSLv2 | OP_NO_SSLv3 | |
157 |
|
157 | |||
|
158 | # Prevent CRIME. | |||
|
159 | # There is no guarantee this attribute is defined on the module. | |||
|
160 | s['ctxoptions'] |= getattr(ssl, 'OP_NO_COMPRESSION', 0) | |||
|
161 | ||||
158 | # Look for fingerprints in [hostsecurity] section. Value is a list |
|
162 | # Look for fingerprints in [hostsecurity] section. Value is a list | |
159 | # of <alg>:<fingerprint> strings. |
|
163 | # of <alg>:<fingerprint> strings. | |
160 | fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname, |
|
164 | fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname, |
General Comments 0
You need to be logged in to leave comments.
Login now