forked from wolfSSL/wolfssl
Fix for WPAS certificate size difference. Fix so BIO_METHOD is compatible. Moved BIO stuff into bio.h.
This commit is contained in:
@@ -27586,7 +27586,15 @@ static void test_wolfSSL_X509_print()
|
||||
/* print to memory */
|
||||
AssertNotNull(bio = BIO_new(BIO_s_mem()));
|
||||
AssertIntEQ(X509_print(bio, x509), SSL_SUCCESS);
|
||||
|
||||
#ifdef WOLFSSL_WPAS
|
||||
/* WPAS adds extra "="" */
|
||||
/* WPAS Issuer: /C==US/ST==Montana/L==Bozeman/O==Sawtooth/... */
|
||||
/* NORM Issuer: /C=US/ST=Montana/L=Bozeman/O=Sawtooth/... */
|
||||
AssertIntEQ(BIO_get_mem_data(bio, NULL), 3230);
|
||||
#else
|
||||
AssertIntEQ(BIO_get_mem_data(bio, NULL), 3212);
|
||||
#endif
|
||||
BIO_free(bio);
|
||||
|
||||
/* print to stdout */
|
||||
|
||||
Reference in New Issue
Block a user