@@ -1279,7 +1279,6 @@ int test_wolfSSL_X509V3_EXT(void)
12791279 WOLFSSL_BASIC_CONSTRAINTS * bc = NULL ;
12801280 WOLFSSL_ACCESS_DESCRIPTION * ad = NULL ;
12811281 WOLFSSL_GENERAL_NAME * gn = NULL ;
1282- int critical = -1 ;
12831282
12841283 /* Check NULL argument */
12851284 ExpectNull (wolfSSL_X509V3_EXT_d2i (NULL ));
@@ -1325,14 +1324,6 @@ int test_wolfSSL_X509V3_EXT(void)
13251324 ExpectNotNull (obj = wolfSSL_X509_EXTENSION_get_object (ext ));
13261325 ExpectIntEQ ((nid = wolfSSL_OBJ_obj2nid (obj )), NID_basic_constraints );
13271326 ExpectNotNull (bc = (WOLFSSL_BASIC_CONSTRAINTS * )wolfSSL_X509V3_EXT_d2i (ext ));
1328- critical = -1 ;
1329- ExpectNotNull (ext2 = X509_get_ext_d2i (x509 , NID_basic_constraints ,
1330- & critical , NULL ));
1331- ExpectIntNE (critical , -1 );
1332- ext2 = NULL ;
1333- ExpectNotNull (ext2 = wolfSSL_X509V3_EXT_i2d (NID_basic_constraints , 1 , bc ));
1334- X509_EXTENSION_free (ext2 );
1335- ext2 = NULL ;
13361327
13371328 ExpectIntEQ (bc -> ca , 1 );
13381329 ExpectNull (bc -> pathlen );
@@ -1346,11 +1337,6 @@ int test_wolfSSL_X509V3_EXT(void)
13461337 ExpectIntEQ ((nid = wolfSSL_OBJ_obj2nid (obj )), NID_subject_key_identifier );
13471338
13481339 ExpectNotNull (asn1str = (WOLFSSL_ASN1_STRING * )wolfSSL_X509V3_EXT_d2i (ext ));
1349- critical = -1 ;
1350- ExpectNotNull (ext2 = X509_get_ext_d2i (x509 , NID_subject_key_identifier ,
1351- & critical , NULL ));
1352- ExpectIntNE (critical , -1 );
1353- ext2 = NULL ;
13541340 ExpectNotNull (ext2 = wolfSSL_X509V3_EXT_i2d (NID_subject_key_identifier , 0 ,
13551341 asn1str ));
13561342 X509_EXTENSION_free (ext2 );
@@ -1376,15 +1362,6 @@ int test_wolfSSL_X509V3_EXT(void)
13761362
13771363 ExpectNotNull (aKeyId = (WOLFSSL_AUTHORITY_KEYID * )wolfSSL_X509V3_EXT_d2i (
13781364 ext ));
1379- critical = -1 ;
1380- ExpectNotNull (ext2 = X509_get_ext_d2i (x509 , NID_authority_key_identifier ,
1381- & critical , NULL ));
1382- ExpectIntNE (critical , -1 );
1383- ext2 = NULL ;
1384- ExpectNotNull (ext2 = wolfSSL_X509V3_EXT_i2d (NID_authority_key_identifier ,
1385- 0 , aKeyId ));
1386- X509_EXTENSION_free (ext2 );
1387- ext2 = NULL ;
13881365 ExpectNotNull (method = wolfSSL_X509V3_EXT_get (ext ));
13891366 ExpectNotNull (asn1str = aKeyId -> keyid );
13901367 ExpectNotNull (str = wolfSSL_i2s_ASN1_STRING ((WOLFSSL_v3_ext_method * )method ,
@@ -1407,14 +1384,6 @@ int test_wolfSSL_X509V3_EXT(void)
14071384 ExpectIntEQ ((nid = wolfSSL_OBJ_obj2nid (obj )), NID_key_usage );
14081385
14091386 ExpectNotNull (asn1str = (WOLFSSL_ASN1_STRING * )wolfSSL_X509V3_EXT_d2i (ext ));
1410- critical = -1 ;
1411- ExpectNotNull (ext2 = X509_get_ext_d2i (x509 , NID_key_usage , & critical ,
1412- NULL ));
1413- ExpectIntNE (critical , -1 );
1414- ext2 = NULL ;
1415- ExpectNotNull (ext2 = wolfSSL_X509V3_EXT_i2d (NID_key_usage , 0 , asn1str ));
1416- X509_EXTENSION_free (ext2 );
1417- ext2 = NULL ;
14181387#if defined(WOLFSSL_QT )
14191388 ExpectNotNull (data = (unsigned char * )ASN1_STRING_get0_data (asn1str ));
14201389#else
@@ -1441,11 +1410,6 @@ int test_wolfSSL_X509V3_EXT(void)
14411410 ExpectIntEQ ((nid = wolfSSL_OBJ_obj2nid (obj )), NID_info_access );
14421411 ExpectNotNull (aia = (WOLFSSL_AUTHORITY_INFO_ACCESS * )wolfSSL_X509V3_EXT_d2i (
14431412 ext ));
1444- critical = -1 ;
1445- ExpectNotNull (ext2 = X509_get_ext_d2i (x509 , NID_info_access , & critical ,
1446- NULL ));
1447- ExpectIntNE (critical , -1 );
1448- ext2 = NULL ;
14491413#if defined(WOLFSSL_QT )
14501414 ExpectIntEQ (OPENSSL_sk_num (aia ), 1 ); /* Only one URI entry for this cert */
14511415#else
0 commit comments