Skip to content

Commit cdb28a3

Browse files
LinuxJedidanielinux
authored andcommitted
Bump to version 5.4.0
Also move out some things that are now in wolfSSL CMake.
1 parent 9a5852b commit cdb28a3

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

lib/wolfssl

Submodule wolfssl updated 403 files

wolfcrypt/_build_ffi.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ def make_flags(prefix):
170170
flags.append("-DWOLFSSL_OLD_NAMES=no")
171171
flags.append("-DWOLFSSL_EXTENDED_MASTER=no")
172172
flags.append("-DWOLFSSL_ERROR_STRINGS=no")
173+
flags.append("-DWOLFSSL_KEYGEN=yes")
174+
flags.append("-DWOLFSSL_AESCTR=yes")
173175
# Part of hack for missing CMake option
174-
flags.append("-DCMAKE_C_FLAGS=\"/DWOLFSSL_KEY_GEN=1 /DWOLFCRYPT_ONLY=1 /DWOLFSSL_AESGCM_STREAM=1 /DWOLFSSL_AES_COUNTER=1\"")
176+
flags.append("-DCMAKE_C_FLAGS=\"/DWOLFCRYPT_ONLY=1 /DWOLFSSL_AESGCM_STREAM=1\"")
175177

176178
return " ".join(flags)
177179
else:
@@ -239,14 +241,10 @@ def cmake_hack():
239241
with open(options_file, "r") as f:
240242
contents = f.readlines()
241243

242-
contents.insert(26, "#undef WOLFSSL_KEY_GEN\n")
243-
contents.insert(27, "#define WOLFSSL_KEY_GEN\n")
244-
contents.insert(28, "#undef WOLFCRYPT_ONLY\n")
245-
contents.insert(29, "#define WOLFCRYPT_ONLY\n")
246-
contents.insert(30, "#undef WOLFSSL_AESGCM_STREAM\n")
247-
contents.insert(31, "#define WOLFSSL_AESGCM_STREAM\n")
248-
contents.insert(32, "#undef WOLFSSL_AES_COUNTER\n")
249-
contents.insert(33, "#define WOLFSSL_AES_COUNTER\n")
244+
contents.insert(26, "#undef WOLFCRYPT_ONLY\n")
245+
contents.insert(27, "#define WOLFCRYPT_ONLY\n")
246+
contents.insert(28, "#undef WOLFSSL_AESGCM_STREAM\n")
247+
contents.insert(29, "#define WOLFSSL_AESGCM_STREAM\n")
250248

251249
with open(options_file, "w") as f:
252250
contents = "".join(contents)

wolfcrypt/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# When bumping the C library version, reset the POST count to 0
22

3-
__wolfssl_version__ = "v5.3.0-stable"
3+
__wolfssl_version__ = "v5.4.0-stable"
44

55
# We're using implicit post releases [PEP 440] to bump package version
66
# while maintaining the C library version intact for better reference.
77
# https://www.python.org/dev/peps/pep-0440/#implicit-post-releases
88
#
99
# MAJOR.MINOR.BUILD-POST
1010

11-
__version__ = "5.3.0-0"
11+
__version__ = "5.4.0-0"
1212

0 commit comments

Comments
 (0)