From 5da42db7a9a52ba2a93b32fda15c9a790d4219bf Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 4 Jan 2022 19:08:18 +0100 Subject: [PATCH] wolfCrypt version update, enabled pwdbased by default --- src/wolfcrypt/__init__.py | 8 ++++---- src/wolfcrypt/_build_ffi.py | 2 +- src/wolfcrypt/_build_wolfssl.py | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/wolfcrypt/__init__.py b/src/wolfcrypt/__init__.py index 1e86ada..7e3cea4 100644 --- a/src/wolfcrypt/__init__.py +++ b/src/wolfcrypt/__init__.py @@ -24,7 +24,7 @@ __uri__ = "https://github.com/wolfssl/wolfcrypt-py" # When bumping the C library version, reset the POST count to 0 -__wolfssl_version__ = "v5.0.0-stable" +__wolfssl_version__ = "v5.1.1-stable" # We're using implicit post releases [PEP 440] to bump package version # while maintaining the C library version intact for better reference. @@ -32,16 +32,16 @@ __wolfssl_version__ = "v5.0.0-stable" # # MAJOR.MINOR.BUILD-POST -__version__ = "5.0.0-0" +__version__ = "5.1.1-0" __author__ = "wolfSSL Inc." __email__ = "info@wolfssl.com" __license__ = "GPLv2 or Commercial License" -__copyright__ = "Copyright (C) 2006-2020 wolfSSL Inc" +__copyright__ = "Copyright (C) 2006-2021 wolfSSL Inc" __all__ = [ "__title__", "__summary__", "__uri__", "__version__", "__author__", "__email__", "__license__", "__copyright__", - "ciphers", "hashes", "random" + "ciphers", "hashes", "random", "pwdbased" ] diff --git a/src/wolfcrypt/_build_ffi.py b/src/wolfcrypt/_build_ffi.py index 5cc2076..45f10a4 100644 --- a/src/wolfcrypt/_build_ffi.py +++ b/src/wolfcrypt/_build_ffi.py @@ -65,7 +65,7 @@ ED25519_ENABLED = 1 ED448_ENABLED = 1 KEYGEN_ENABLED = 1 CHACHA_ENABLED = 1 -PWDBASED_ENABLED = 0 +PWDBASED_ENABLED = 1 FIPS_ENABLED = 0 FIPS_VERSION = 0 ERROR_STRINGS_ENABLED = 1 diff --git a/src/wolfcrypt/_build_wolfssl.py b/src/wolfcrypt/_build_wolfssl.py index b26da65..9674d95 100644 --- a/src/wolfcrypt/_build_wolfssl.py +++ b/src/wolfcrypt/_build_wolfssl.py @@ -132,7 +132,7 @@ def make_flags(prefix): flags = [] if get_platform() in ["linux-x86_64", "linux-i686"]: - flags.append("CFLAGS=-fpic") + flags.append("CFLAGS=-fPIC") # install location flags.append("--prefix={}".format(prefix)) @@ -170,6 +170,10 @@ def make_flags(prefix): flags.append("--disable-dh") + # pwdbased + flags.append("--enable-pwdbased") + flags.append("--enable-pkcs7") + # disabling other configs enabled by default flags.append("--disable-oldtls") flags.append("--disable-oldnames")