fixes log warnings.

pull/2/merge
Moisés Guimarães 2015-10-09 14:40:38 -03:00
parent 8514102690
commit da8961fe07
2 changed files with 5 additions and 3 deletions

View File

@ -1523,7 +1523,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_ecc_1shared_1secret(
LogStr("ecc_shared_secret(priv=%p, pub=%p, out, outLen) = %d\n", priv, pub,
ret);
LogStr("out:\n");
LogHex(out, outlen);
LogHex(out, tmpOutLen);
#endif
@ -1553,7 +1553,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_ecc_1export_1x963(
LogStr("ecc_export_x963(key=%p, out, outLen) = %d\n", key, ret);
LogStr("out:\n");
LogHex(out, outLen);
LogHex(out, tmpOutLen);
#endif

View File

@ -46,7 +46,7 @@ JNIEXPORT jlong JNICALL Java_com_wolfssl_wolfcrypt_Rsa_mallocNativeStruct(
if (!ret)
throwOutOfMemoryException(env, "Failed to allocate Rsa object");
LogStr("new Rsa() = %p\n", ret);
LogStr("new Rsa() = %p\n", (void*)ret);
#endif
@ -109,6 +109,8 @@ JNIEXPORT void JNICALL Java_com_wolfssl_wolfcrypt_Rsa_makeKey(
RsaKey* key = (RsaKey*) getNativeStruct(env, this);
RNG* rng = (RNG*) getNativeStruct(env, rng_object);
LogStr("rsa.makeKey(%d, %lu)\n", size, e);
if (!key || !rng)
throwWolfCryptException(env, "Bad method argument provided");
else if ((ret = MakeRsaKey(key, size, e, rng)) != 0)