fix int long type mismatch

pull/618/head
Takashi Kojo 2016-11-29 11:18:14 +09:00 committed by Jacob Barthelmeh
parent 1704a8d683
commit 280f5cb542
2 changed files with 3 additions and 3 deletions

View File

@ -5703,7 +5703,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey(int type, WOLFSSL_EVP_PKEY** out,
}
local->type = type;
local->pkey_sz = inSz;
local->pkey_sz = (int)inSz;
local->pkey.ptr = (char*)XMALLOC(inSz, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
if (local->pkey.ptr == NULL) {
wolfSSL_EVP_PKEY_free(local);

View File

@ -2541,8 +2541,8 @@ static void test_wolfSSL_tmp_dh(void)
dh = wolfSSL_DSA_dup_DH(dsa);
AssertNotNull(dh);
AssertIntEQ(SSL_CTX_set_tmp_dh(ctx, dh), SSL_SUCCESS);
AssertIntEQ(SSL_set_tmp_dh(ssl, dh), SSL_SUCCESS);
AssertIntEQ((int)SSL_CTX_set_tmp_dh(ctx, dh), SSL_SUCCESS);
AssertIntEQ((int)SSL_set_tmp_dh(ssl, dh), SSL_SUCCESS);
BIO_free(bio);
DSA_free(dsa);