Skip to content

Commit c1092e8

Browse files
committed
Android: fix DEBUG_WOLFSSL in CMakeLists.txt, remove NO_FILESYSTEM
1 parent e5d3880 commit c1092e8

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

android/wolfssljni-ndk-gradle/app/CMakeLists.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,15 @@ if ("${WOLFSSL_PKG_TYPE}" MATCHES "normal")
6262

6363
# Defines added for debugging. These can be removed if debug logging is not needed
6464
# and will increase performance and reduce library footprint size if removed.
65-
-DEBUG_WOLFSSL
65+
-DDEBUG_WOLFSSL -DWOLFSSL_ANDROID_DEBUG
6666

6767
# Defines added for wolfCrypt test and benchmark only, may not be needed for your
6868
# own application.
69-
-DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256 -DNO_WRITE_TEMP_FILES
70-
-DNO_FILESYSTEM -DNO_MAIN_DRIVER
69+
# Add -DNO_FILESYSTEM to disable file system use for wolfCrypt test, but make sure
70+
# to remove this define in production applications as filesystem access is required
71+
# for wolfJSSE use.
72+
-DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256
73+
-DNO_WRITE_TEMP_FILES -DNO_MAIN_DRIVER
7174
)
7275

7376
elseif("${WOLFSSL_PKG_TYPE}" MATCHES "fipsready")
@@ -116,7 +119,10 @@ elseif("${WOLFSSL_PKG_TYPE}" MATCHES "fipsready")
116119

117120
# Below options are added only for wolfCrypt test and benchmark applications.
118121
# These can be left off / removed when integrating into a real-world application.
119-
-DNO_FILESYSTEM -DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256
122+
# Add -DNO_FILESYSTEM to disable file system use for wolfCrypt test, but make sure
123+
# to remove this define in production applications as filesystem access is required
124+
# for wolfJSSE use.
125+
-DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256
120126
-DNO_WRITE_TEMP_FILES -DNO_MAIN_DRIVER
121127
)
122128
endif()

0 commit comments

Comments
 (0)