mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-14 18:34:30 -05:00
1df7c7f1d4
Signed-off-by: Tad <tad@spotco.us>
23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 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"),
|