diff options
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 |