Add leading zero padding for odd hex ASCII digits

This commit is contained in:
Tesfa Mael
2019-10-15 11:54:58 -07:00
parent 441f3a7f1f
commit 1a18e3bba8
3 changed files with 14 additions and 4 deletions

View File

@@ -24095,7 +24095,11 @@ static void test_wolfSSL_X509_get_serialNumber(void)
X509_free(x509); /* free's a */
AssertNotNull(serialHex = BN_bn2hex(bn));
#ifdef OPENSSL_EXTRA
AssertStrEQ(serialHex, "01");
#else
AssertStrEQ(serialHex, "1");
#endif
OPENSSL_free(serialHex);
AssertIntEQ(BN_get_word(bn), 1);