forked from pool/python-cryptography
Accepting request 430429 from home:msmeissn:branches:devel:languages:python
- python-cryptography-enable-gost.patch: temporary patch to run tests against 1.0.2i, GOST cert extraction now works. OBS-URL: https://build.opensuse.org/request/show/430429 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=47
This commit is contained in:
28
python-cryptography-enable-gost.patch
Normal file
28
python-cryptography-enable-gost.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
Index: cryptography-1.3.4/tests/hazmat/backends/test_openssl.py
|
||||
===================================================================
|
||||
--- cryptography-1.3.4.orig/tests/hazmat/backends/test_openssl.py
|
||||
+++ cryptography-1.3.4/tests/hazmat/backends/test_openssl.py
|
||||
@@ -657,23 +657,3 @@ class TestRSAPEMSerialization(object):
|
||||
serialization.PrivateFormat.PKCS8,
|
||||
serialization.BestAvailableEncryption(password)
|
||||
)
|
||||
-
|
||||
-
|
||||
-class TestGOSTCertificate(object):
|
||||
- @pytest.mark.skipif(
|
||||
- backend._lib.OPENSSL_VERSION_NUMBER < 0x1000000f,
|
||||
- reason="Requires a newer OpenSSL. Must be >= 1.0.0"
|
||||
- )
|
||||
- def test_numeric_string_x509_name_entry(self):
|
||||
- cert = _load_cert(
|
||||
- os.path.join("x509", "e-trust.ru.der"),
|
||||
- x509.load_der_x509_certificate,
|
||||
- backend
|
||||
- )
|
||||
- with pytest.raises(ValueError) as exc:
|
||||
- cert.subject
|
||||
-
|
||||
- # We assert on the message in this case because if the certificate
|
||||
- # fails to load it will also raise a ValueError and this test could
|
||||
- # erroneously pass.
|
||||
- assert str(exc.value) == "Unsupported ASN1 string type. Type: 18"
|
Reference in New Issue
Block a user