Skip to content

Commit

Permalink
Update NDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabe committed Oct 12, 2023
1 parent 87aac67 commit 0559868
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
//compileSdkPreview = "UpsideDownCake"

// Also update runcoverity.sh
ndkVersion = "25.2.9519653"
ndkVersion = "26.1.10909125"

defaultConfig {
minSdk = 21
Expand All @@ -31,6 +31,7 @@ android {
versionName = "0.7.49"
externalNativeBuild {
cmake {
//arguments+= "-DCMAKE_VERBOSE_MAKEFILE=1"
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions main/src/main/cpp/ovpnutil/osslutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ extern "C" jbyteArray Java_de_blinkt_openvpn_core_NativeUtils_rsapss(JNIEnv *env
if (!EVP_DigestFinal_ex(ctx, H, nullptr))
goto err;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
/* Generate dbMask in place then perform XOR on it */
if (PKCS1_MGF1(EM, maskedDBLen, H, hLen, mgf1Hash))
goto err;
#pragma clang diagnostic pop

p = EM;

Expand Down
2 changes: 1 addition & 1 deletion runcoverity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cov-configure --config .coverity/cfg.xml --java
./gradlew -b build.gradle.kts --no-daemon clean
cov-build --dir .coverity/idir --config .coverity/cfg.xml ./gradlew -b build.gradle.kts --no-daemon assembleUiOvpn23Release

NDK_VER=${NDK_VER:-25.2.9519653}
NDK_VER=${NDK_VER:-26.1.10909125}
cov-analyze --dir .coverity/idir --all --strip-path ${PWD}/main/src/main/cpp --strip-path ${PWD}/main/src --strip-path ${PWD} --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/ --strip-path ${ANDROID_HOME}/ndk/${NDK_VER}/toolchains/llvm/prebuilt/linux-x86_64/sysroot

cov-commit-defects --dir .coverity/idir --ssl -host ${COVERITY_CONNECT_HOST} --stream icsopenvpn-styx-master --auth-key-file ~/.coverity/auth-key.txt

0 comments on commit 0559868

Please sign in to comment.