mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 20:12:21 +01:00
adds verify_mode to context
This commit is contained in:
@@ -125,6 +125,13 @@ class TestSSLContext(unittest.TestCase):
|
||||
|
||||
def test_context_creation(self):
|
||||
self.assertIsNotNone(self.ctx)
|
||||
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_NONE)
|
||||
|
||||
self.ctx.verify_mode = self.provider.CERT_OPTIONAL
|
||||
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_OPTIONAL)
|
||||
|
||||
self.ctx.verify_mode = self.provider.CERT_REQUIRED
|
||||
self.assertEqual(self.ctx.verify_mode, self.provider.CERT_REQUIRED)
|
||||
|
||||
def test_load_cert_chain_raises(self):
|
||||
self.assertRaises(TypeError, self.ctx.load_cert_chain, None)
|
||||
|
||||
Reference in New Issue
Block a user