Skip to content

Commit a9f29ea

Browse files
committed
X.509: fix duplicate code in ASN1_DEBUG mode
Signed-off-by: Stephan Mueller <smueller@chronox.de>
1 parent b9ace5a commit a9f29ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

asn1/src/x509_cert_parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
* binhexbin.c
5454
******************************************************************************/
5555

56+
#ifndef LC_ASN1_DEBUG
5657
static const char hex_char_map_l[] = { '0', '1', '2', '3', '4', '5', '6', '7',
5758
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
5859
static const char hex_char_map_u[] = { '0', '1', '2', '3', '4', '5', '6', '7',
@@ -84,6 +85,7 @@ static void bin2hex(const uint8_t *bin, const size_t binlen, char *hex,
8485
hex[((i * 2) + 1)] = hex_char((bin[i] & 0x0f), u);
8586
}
8687
}
88+
#endif
8789

8890
/******************************************************************************
8991
* ASN.1 parser support functions

0 commit comments

Comments
 (0)