mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 18:32:20 +01:00
adds set_ciphers to context
This commit is contained in:
@@ -125,6 +125,8 @@ class TestSSLContext(unittest.TestCase):
|
||||
|
||||
def test_context_creation(self):
|
||||
self.assertIsNotNone(self.ctx)
|
||||
|
||||
def test_verify_mode(self):
|
||||
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_NONE)
|
||||
|
||||
self.ctx.verify_mode = self.provider.CERT_OPTIONAL
|
||||
@@ -133,6 +135,9 @@ class TestSSLContext(unittest.TestCase):
|
||||
self.ctx.verify_mode = self.provider.CERT_REQUIRED
|
||||
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_REQUIRED)
|
||||
|
||||
def test_set_ciphers(self):
|
||||
self.ctx.set_ciphers("DHE-RSA-AES256-SHA256:AES256-SHA256")
|
||||
|
||||
def test_load_cert_chain_raises(self):
|
||||
self.assertRaises(TypeError, self.ctx.load_cert_chain, None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user