Skip to content

Commit

Permalink
Merge pull request ibmruntimes#378 from KostasTsiounis/remove_unused_…
Browse files Browse the repository at this point in the history
…variables

Remove unused variables in NativeCrypto.c
  • Loading branch information
pshipton authored Sep 3, 2024
2 parents bab255e + 0c706b2 commit 81ec611
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions closed/src/java.base/share/native/libjncrypto/NativeCrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ static void *crypto_library = NULL;
JNIEXPORT jlong JNICALL Java_jdk_crypto_jniprovider_NativeCrypto_loadCrypto
(JNIEnv *env, jclass thisObj, jboolean trace)
{
char *error;
typedef const char* OSSL_version_t(int);

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

Expand Down Expand Up @@ -2346,7 +2344,6 @@ JNIEXPORT jint JNICALL Java_jdk_crypto_jniprovider_NativeCrypto_ChaCha20FinalDec
{
int len = 0;
int plaintext_len = 0;
int outputLen = 0;
int ret = 0;

unsigned char *inputNative = NULL;
Expand Down Expand Up @@ -2839,10 +2836,6 @@ Java_jdk_crypto_jniprovider_NativeCrypto_ECEncodeGF
BIGNUM *yBN = NULL;
BIGNUM *nBN = NULL;
BIGNUM *hBN = NULL;
EC_GROUP *group = NULL;
EC_POINT *generator = NULL;
BN_CTX *ctx = NULL;
int ret = 0;

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

0 comments on commit 81ec611

Please sign in to comment.