Review comment

This commit is contained in:
Tesfa Mael
2019-10-15 12:24:57 -07:00
parent 1a18e3bba8
commit 1267987c31
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -5233,7 +5233,7 @@ int mp_toradix (mp_int *a, char *str, int radix)
*str++ = mp_s_rmap[d];
++digs;
}
#ifdef OPENSSL_EXTRA
#ifndef WC_DISABLE_RADIX_ZERO_PAD
/* For hexadecimal output, add zero padding when number of digits is odd */
if ((digs & 1) && (radix == 16)) {
*str++ = mp_s_rmap[0];

View File

@ -4779,7 +4779,7 @@ int mp_toradix (mp_int *a, char *str, int radix)
*str++ = fp_s_rmap[d];
++digs;
}
#ifdef OPENSSL_EXTRA
#ifndef WC_DISABLE_RADIX_ZERO_PAD
/* For hexadecimal output, add zero padding when number of digits is odd */
if ((digs & 1) && (radix == 16)) {
*str++ = fp_s_rmap[0];