Skip to content

Commit

Permalink
Merge branch 'feature/asn1crypto-upgrade' into release/0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasValvekens committed Mar 8, 2022
2 parents 4cf2770 + 5149687 commit b80242e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 233 deletions.
226 changes: 0 additions & 226 deletions certomancer/_asn1crypto_patches.py

This file was deleted.

5 changes: 0 additions & 5 deletions certomancer/crypto_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,8 @@ def _oscrypto_hacky_load_pss_exclusive_key(private: keys.PrivateKeyInfo):


def _select_default_crypto_backend() -> CryptoBackend:
from ._asn1crypto_patches import register_attr_cert_patches
register_attr_cert_patches()
# pyca/cryptography required for EdDSA certs
if pyca_cryptography_present():
# Patch EdDSA support into asn1crypto
from ._asn1crypto_patches import register_eddsa_oids
register_eddsa_oids()
return PycaCryptographyBackend()
else:
return OscryptoBackend()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
asn1crypto>=1.4.0
asn1crypto>=1.5.0
click>=7.1.2
pyyaml>=5.4.1
oscrypto>=1.2.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_version():
]
},
install_requires=[
'asn1crypto>=1.4.0',
'asn1crypto>=1.5.0',
'click>=7.1.2',
'oscrypto>=1.2.1',
'pyyaml>=5.4.1',
Expand Down

0 comments on commit b80242e

Please sign in to comment.