Skip to content

Commit 0c706b2

Browse files
Remove unused variables in NativeCrypto.c
1 parent bab255e commit 0c706b2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

closed/src/java.base/share/native/libjncrypto/NativeCrypto.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ static void *crypto_library = NULL;
373373
JNIEXPORT jlong JNICALL Java_jdk_crypto_jniprovider_NativeCrypto_loadCrypto
374374
(JNIEnv *env, jclass thisObj, jboolean trace)
375375
{
376-
char *error;
377376
typedef const char* OSSL_version_t(int);
378377

379378
/* Determine the version of OpenSSL. */
@@ -2303,7 +2302,6 @@ JNIEXPORT jint JNICALL Java_jdk_crypto_jniprovider_NativeCrypto_ChaCha20FinalEnc
23032302
(JNIEnv *env, jobject thisObj, jlong c, jbyteArray output, jint outputOffset, jint tagLen)
23042303
{
23052304
int len = 0;
2306-
int outputLen = -1;
23072305
unsigned char *outputNative = NULL;
23082306
EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX*)(intptr_t) c;
23092307

@@ -2346,7 +2344,6 @@ JNIEXPORT jint JNICALL Java_jdk_crypto_jniprovider_NativeCrypto_ChaCha20FinalDec
23462344
{
23472345
int len = 0;
23482346
int plaintext_len = 0;
2349-
int outputLen = 0;
23502347
int ret = 0;
23512348

23522349
unsigned char *inputNative = NULL;
@@ -2839,10 +2836,6 @@ Java_jdk_crypto_jniprovider_NativeCrypto_ECEncodeGF
28392836
BIGNUM *yBN = NULL;
28402837
BIGNUM *nBN = NULL;
28412838
BIGNUM *hBN = NULL;
2842-
EC_GROUP *group = NULL;
2843-
EC_POINT *generator = NULL;
2844-
BN_CTX *ctx = NULL;
2845-
int ret = 0;
28462839

28472840
nativeA = (unsigned char *)((*env)->GetPrimitiveArrayCritical(env, a, 0));
28482841
if (NULL == nativeA) {

0 commit comments

Comments
 (0)