mirror of https://github.com/wolfSSL/wolfssl.git
fix int long type mismatch
parent
1704a8d683
commit
280f5cb542
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue