forked from wolfSSL/wolfssl
fix int long type mismatch
This commit is contained in:
committed by
Jacob Barthelmeh
parent
1704a8d683
commit
280f5cb542
@ -5703,7 +5703,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey(int type, WOLFSSL_EVP_PKEY** out,
|
|||||||
}
|
}
|
||||||
|
|
||||||
local->type = type;
|
local->type = type;
|
||||||
local->pkey_sz = inSz;
|
local->pkey_sz = (int)inSz;
|
||||||
local->pkey.ptr = (char*)XMALLOC(inSz, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
local->pkey.ptr = (char*)XMALLOC(inSz, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
||||||
if (local->pkey.ptr == NULL) {
|
if (local->pkey.ptr == NULL) {
|
||||||
wolfSSL_EVP_PKEY_free(local);
|
wolfSSL_EVP_PKEY_free(local);
|
||||||
|
@ -2541,8 +2541,8 @@ static void test_wolfSSL_tmp_dh(void)
|
|||||||
dh = wolfSSL_DSA_dup_DH(dsa);
|
dh = wolfSSL_DSA_dup_DH(dsa);
|
||||||
AssertNotNull(dh);
|
AssertNotNull(dh);
|
||||||
|
|
||||||
AssertIntEQ(SSL_CTX_set_tmp_dh(ctx, dh), SSL_SUCCESS);
|
AssertIntEQ((int)SSL_CTX_set_tmp_dh(ctx, dh), SSL_SUCCESS);
|
||||||
AssertIntEQ(SSL_set_tmp_dh(ssl, dh), SSL_SUCCESS);
|
AssertIntEQ((int)SSL_set_tmp_dh(ssl, dh), SSL_SUCCESS);
|
||||||
|
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
DSA_free(dsa);
|
DSA_free(dsa);
|
||||||
|
Reference in New Issue
Block a user