Skip to content

Commit 12fdd23

Browse files
committed
Android: update wolfssljni Android Studio project, bump Android Gradle Plugin from 8.0.2 to 8.3.1
1 parent ea6825c commit 12fdd23

9 files changed

Lines changed: 21 additions & 12 deletions

File tree

Submodule wolfcrypt-jni updated 214 files
Submodule wolfssl updated 1953 files

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ if ("${WOLFSSL_PKG_TYPE}" MATCHES "normal")
6060
-DTFM_TIMING_RESISTANT -DECC_TIMING_RESISTANT
6161
-DHAVE_AESGCM -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8
6262

63+
# For gethostbyname()
64+
-DHAVE_NETDB_H
65+
6366
# Defines added for debugging. These can be removed if debug logging is not needed
6467
# and will increase performance and reduce library footprint size if removed.
6568
-DDEBUG_WOLFSSL -DWOLFSSL_ANDROID_DEBUG
@@ -158,6 +161,9 @@ elseif("${WOLFSSL_PKG_TYPE}" MATCHES "fipsready")
158161
-DKEEP_PEER_CERT -DSESSION_CERTS
159162
-DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8
160163

164+
# For gethostbyname()
165+
-DHAVE_NETDB_H
166+
161167
# Enable below options for wolfSSL debug logging
162168
#-DDEBUG_WOLFSSL -DWOLFSSL_ANDROID_DEBUG
163169

@@ -216,6 +222,7 @@ list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/pk.c)
216222
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_bn.c)
217223
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_asn1.c)
218224
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_certman.c)
225+
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_crypto.c)
219226
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_misc.c)
220227
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/x509.c)
221228
list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/x509_str.c)
@@ -278,15 +285,17 @@ add_library(wolfssl SHARED
278285
# wolfSSL JNI/JSSE library wil be compiled as SHARED library
279286
# wolfSSL JNI Java files are tied into build in Module build.gradle file
280287
add_library(wolfssljni SHARED
281-
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_ECC.c
282-
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_EccKey.c
283-
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_RSA.c
284288
${wolfssljni_DIR}/native/com_wolfssl_WolfSSL.c
285-
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLCertificate.c
286289
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLCertManager.c
290+
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLCertRequest.c
291+
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLCertificate.c
287292
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLContext.c
288293
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLSession.c
294+
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLX509Name.c
289295
${wolfssljni_DIR}/native/com_wolfssl_WolfSSLX509StoreCtx.c
296+
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_ECC.c
297+
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_EccKey.c
298+
${wolfssljni_DIR}/native/com_wolfssl_wolfcrypt_RSA.c
290299
)
291300

292301
# Native library to hold sources for wolfCrypt test application. These include the

android/wolfssljni-ndk-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.0.2'
9+
classpath 'com.android.tools.build:gradle:8.3.1'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon May 23 13:47:02 MDT 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME
Submodule wolfssl updated 1430 files
Submodule wolfssljni updated 206 files
Submodule wolfssl updated 1953 files
Submodule wolfssljni updated 218 files

0 commit comments

Comments
 (0)