mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
f015dd348f
1163b9f96a12
11d8a62b5156
11e3a4d64f29
11e41f1d7f8e
11c34b037486
11dce2d0f64f
11c99c35cb2a
1007071814db
10a48ba29b98
10157fa78115
10b914409e05
1020a51f508b
10b8afb8af37
10e1b6653db7
9ff688b68a7
9866f0df315
977c9fa981a
9fbf620e59c
9ceaf63c790
9253247fc39
976bf4c46f0
Signed-off-by: Tad <tad@spotco.us>
23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
From 253247fc3955ecf18ff42bf8b73d075134e8f1f2 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Sun, 17 Mar 2019 21:11:48 -0400
|
|
Subject: [PATCH] constify JNINativeMethod table
|
|
|
|
---
|
|
common/src/jni/main/cpp/conscrypt/native_crypto.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/common/src/jni/main/cpp/conscrypt/native_crypto.cc b/common/src/jni/main/cpp/conscrypt/native_crypto.cc
|
|
index 61ec8153..865edabd 100644
|
|
--- a/common/src/jni/main/cpp/conscrypt/native_crypto.cc
|
|
+++ b/common/src/jni/main/cpp/conscrypt/native_crypto.cc
|
|
@@ -9742,7 +9742,7 @@ static jlong NativeCrypto_SSL_get1_session(JNIEnv* env, jclass, jlong ssl_addres
|
|
#define REF_X509_CRL "L" TO_STRING(JNI_JARJAR_PREFIX) "org/conscrypt/OpenSSLX509CRL;"
|
|
#define REF_SSL "L" TO_STRING(JNI_JARJAR_PREFIX) "org/conscrypt/NativeSsl;"
|
|
#define REF_SSL_CTX "L" TO_STRING(JNI_JARJAR_PREFIX) "org/conscrypt/AbstractSessionContext;"
|
|
-static JNINativeMethod sNativeCryptoMethods[] = {
|
|
+static const JNINativeMethod sNativeCryptoMethods[] = {
|
|
CONSCRYPT_NATIVE_METHOD(clinit, "()V"),
|
|
CONSCRYPT_NATIVE_METHOD(EVP_PKEY_new_RSA, "([B[B[B[B[B[B[B[B)J"),
|
|
CONSCRYPT_NATIVE_METHOD(EVP_PKEY_new_EC_KEY, "(" REF_EC_GROUP REF_EC_POINT "[B)J"),
|