mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
add test case and macro mapping
This commit is contained in:
committed by
Jacob Barthelmeh
parent
de3416998c
commit
ff521a14e4
@ -27880,6 +27880,12 @@ static void test_wolfSSL_certs(void)
|
||||
ext = X509V3_EXT_i2d(NID_basic_constraints, crit, bc);
|
||||
AssertNotNull(ext);
|
||||
X509_EXTENSION_free(ext);
|
||||
|
||||
AssertNotNull(ext = X509_EXTENSION_new());
|
||||
X509_EXTENSION_set_critical(ext, 1);
|
||||
AssertIntEQ(X509_EXTENSION_set_object(ext,
|
||||
OBJ_nid2obj(NID_basic_constraints)), SSL_SUCCESS);
|
||||
X509_EXTENSION_free(ext);
|
||||
#endif
|
||||
AssertIntEQ(crit, 0);
|
||||
BASIC_CONSTRAINTS_free(bc);
|
||||
|
@ -67,4 +67,8 @@
|
||||
|
||||
#define XN_FLAG_MULTILINE 0xFFFF
|
||||
|
||||
#define X509_EXTENSION_set_critical wolfSSL_X509_EXTENSION_set_critical
|
||||
#define X509_EXTENSION_set_object wolfSSL_X509_EXTENSION_set_object
|
||||
#define X509_EXTENSION_set_data wolfSSL_X509_EXTENSION_set_data
|
||||
|
||||
#endif /* WOLFSSL_OPENSSL_509_H_ */
|
||||
|
Reference in New Issue
Block a user