diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-11-20 20:25:40 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-11-20 21:05:21 +0100 |
commit | 0ac96ae996d36ff452afe0fbb7a368fcd35b219b (patch) | |
tree | 015d6990df7a853255344b7d6c95a60d948d169a /M2Crypto/EC.py | |
parent | 20cdafd017916c87acea1404254226b39ceea832 (diff) | |
download | m2crypto-0ac96ae996d36ff452afe0fbb7a368fcd35b219b.tar.gz |
Remove support for CentOS 6 and Python 2.6
Support of CentOS 6 ends on 2020-11-30.
Fixes #283
Diffstat (limited to 'M2Crypto/EC.py')
-rw-r--r-- | M2Crypto/EC.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/M2Crypto/EC.py b/M2Crypto/EC.py index b730334..522092a 100644 --- a/M2Crypto/EC.py +++ b/M2Crypto/EC.py @@ -11,8 +11,8 @@ Portions copyright (c) 2005-2006 Vrije Universiteit Amsterdam. All rights reserved.""" from M2Crypto import BIO, Err, EVP, m2, util -if util.py27plus: - from typing import AnyStr, Callable, Dict, Optional, Tuple, Union # noqa +from typing import AnyStr, Callable, Dict, Optional, Tuple, Union # noqa +from M2Crypto.EVP import PKey EC_Key = bytes @@ -20,6 +20,7 @@ EC_Key = bytes class ECError(Exception): pass + m2.ec_init(ECError) # Curve identifier constants |