diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-09-21 15:41:24 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 16:51:48 -0400 |
commit | a8acb194e75f38392820a02785c467c23766dacf (patch) | |
tree | dd034608c40a23e7fba3267fdd12bbbaeb32a4ab /test/test_cipher.py | |
parent | 3d7ef05d67c4eca7b72f773380bf7fdff4e7e372 (diff) | |
download | mod_nss-a8acb194e75f38392820a02785c467c23766dacf.tar.gz mod_nss-a8acb194e75f38392820a02785c467c23766dacf.tar.xz mod_nss-a8acb194e75f38392820a02785c467c23766dacf.zip |
The OpenSSL DEFAULT cipher macro shouldn't enable NULL ciphers
Diffstat (limited to 'test/test_cipher.py')
-rw-r--r-- | test/test_cipher.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_cipher.py b/test/test_cipher.py index a91f411..af9d7eb 100644 --- a/test/test_cipher.py +++ b/test/test_cipher.py @@ -54,6 +54,11 @@ def assert_equal_openssl(nss_ciphers, ossl_ciphers): assert nss_list == ossl_list, '%r != %r. Difference %r' % (':'.join(nss_list), ':'.join(ossl_list), diff) +def assert_no_NULL(nss_ciphers): + (nss, err, rc) = run([exe, "--o", nss_ciphers]) + assert rc == 0 + assert('NULL' not in nss) + class test_ciphers(object): @classmethod def setUpClass(cls): @@ -212,6 +217,9 @@ class test_ciphers(object): def test_negative_plus_RSA_MD5(self): assert_equal_openssl("-RC2:RSA+MD5", "-RC2:RSA+MD5:-SSLv2") + def test_DEFAULT_aRSA(self): + assert_no_NULL("DEFAULT:aRSA") + def test_nss_subtraction(self): (out, err, rc) = run([exe, "+rsa_rc4_128_md5,+rsa_rc4_128_sha,-rsa_rc4_128_md5"]) assert rc == 0 |