mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 07:52:21 +01:00
Fixes from C++ and address access checking
Fix access of table for cache resistance. Don't name variable public or private. Cast from void*
This commit is contained in:
@@ -21156,7 +21156,7 @@ static int test_wc_SetSubjectBuffer (void)
|
||||
printf(testingFmt, "wc_SetSubjectBuffer()");
|
||||
|
||||
derSz = FOURK_BUF;
|
||||
der = XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
der = (byte*)XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
if (der == NULL) {
|
||||
ret = -1;
|
||||
}
|
||||
@@ -32232,11 +32232,12 @@ static void test_wolfSSL_X509V3_EXT(void) {
|
||||
AssertNotNull(ext = wolfSSL_X509_get_ext(x509, i));
|
||||
AssertNotNull(obj = wolfSSL_X509_EXTENSION_get_object(ext));
|
||||
AssertIntEQ((nid = wolfSSL_OBJ_obj2nid(obj)), NID_info_access);
|
||||
AssertNotNull(aia = wolfSSL_X509V3_EXT_d2i(ext));
|
||||
AssertNotNull(aia =
|
||||
(WOLFSSL_AUTHORITY_INFO_ACCESS*)wolfSSL_X509V3_EXT_d2i(ext));
|
||||
AssertIntEQ(wolfSSL_sk_num(aia), 1); /* Only one URI entry for this cert */
|
||||
|
||||
/* URI entry is an ACCESS_DESCRIPTION type */
|
||||
AssertNotNull(ad = wolfSSL_sk_value(aia, 0));
|
||||
AssertNotNull(ad = (WOLFSSL_ACCESS_DESCRIPTION*)wolfSSL_sk_value(aia, 0));
|
||||
AssertNotNull(adObj = ad->method);
|
||||
/* Make sure nid is OCSP */
|
||||
AssertIntEQ(wolfSSL_OBJ_obj2nid(adObj), AIA_OCSP_OID);
|
||||
|
||||
Reference in New Issue
Block a user