summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-23 18:32:23 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-23 18:32:23 +0000
commitc75d1619bbdc4538a76c35352402a3d66b05519b (patch)
tree3023798e7ec26b0406d2796ecb92fbe0ec790641 /net/tools
parentd4e2e903aa3f6cf2aa2e2091cb51500341183660 (diff)
downloadchromium_src-c75d1619bbdc4538a76c35352402a3d66b05519b.zip
chromium_src-c75d1619bbdc4538a76c35352402a3d66b05519b.tar.gz
chromium_src-c75d1619bbdc4538a76c35352402a3d66b05519b.tar.bz2
Improve the TLS intolerant server testing support added in r134129
(http://codereview.chromium.org/10218007). Add the ability to simulate a server that is intolerant of only a particular version of TLS. This will allow us to test the handling of a TLS 1.1 intolerant server. R=agl@chromium.org,phajdan.jr@chromium.org BUG=126340 TEST=none Review URL: https://chromiumcodereview.appspot.com/10412042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rwxr-xr-xnet/tools/testserver/testserver.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index 9fc92ee..82e9b61 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -2177,9 +2177,12 @@ if __name__ == '__main__':
'automatically generated certificate. One of '
'[ok,revoked,invalid]')
option_parser.add_option('', '--tls-intolerant', dest='tls_intolerant',
- const=True, default=False, action='store_const',
- help='If true, TLS connections will be aborted '
- ' in order to test SSLv3 fallback.')
+ default='0', type='int',
+ help='If nonzero, certain TLS connections will be'
+ ' aborted in order to test version fallback. 1'
+ ' means all TLS versions will be aborted. 2 means'
+ ' TLS 1.1 or higher will be aborted. 3 means TLS'
+ ' 1.2 or higher will be aborted.')
option_parser.add_option('', '--https-record-resume', dest='record_resume',
const=True, default=False, action='store_const',
help='Record resumption cache events rather than'