diff options
| author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-24 13:53:43 -0600 |
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-24 15:00:33 -0600 |
| commit | 4791d6fa1a829defb7b40258e2b101df0da177c9 (patch) | |
| tree | 886d5ef997ee05a61bc3144229c9e4e4097450ea | |
| parent | a3ef62119420832250959f598ca255bfc2a14685 (diff) | |
| download | cryptography-4791d6fa1a829defb7b40258e2b101df0da177c9.tar.gz cryptography-4791d6fa1a829defb7b40258e2b101df0da177c9.tar.bz2 cryptography-4791d6fa1a829defb7b40258e2b101df0da177c9.zip | |
coverage
| -rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 2 | ||||
| -rw-r--r-- | tests/hazmat/backends/test_openssl.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index 74f4285d..c3eccb06 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -1456,7 +1456,7 @@ class Backend(object): return _Certificate(self, x509_cert) def create_x509_crl(self, builder, private_key, algorithm): - pass + raise NotImplementedError def load_pem_private_key(self, data, password): return self._load_key( diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index d048fe68..fd4030f6 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -501,6 +501,11 @@ class TestOpenSSLSignX509Certificate(object): backend.create_x509_certificate(object(), private_key, DummyHash()) +def test_crl_creation_not_implemented(): + with pytest.raises(NotImplementedError): + backend.create_x509_crl("", "", "") + + class TestOpenSSLSerialisationWithOpenSSL(object): def test_pem_password_cb_buffer_too_small(self): ffi_cb, userdata = backend._pem_password_cb(b"aa") |
