From: Frederik Wedel-Heinen Date: Tue, 23 Dec 2025 17:53:50 +0000 (+0100) Subject: Fix typo in hex_prin() and make it static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ada832a81a89458d667778dd57108ee12bd3740;p=thirdparty%2Fopenssl.git Fix typo in hex_prin() and make it static Reviewed-by: Kurt Roeckx Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/29493) --- diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 65ce120b408..a2b436fe436 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -51,7 +51,7 @@ int dump_certs_pkeys_bag(BIO *out, const PKCS12_SAFEBAG *bags, void print_attribute(BIO *out, const ASN1_TYPE *av); int print_attribs(BIO *out, const STACK_OF(X509_ATTRIBUTE) *attrlst, const char *name); -void hex_prin(BIO *out, unsigned char *buf, int len); +static void hex_print(BIO *out, unsigned char *buf, int len); static int alg_print(const X509_ALGOR *alg); int cert_load(BIO *in, STACK_OF(X509) *sk); static int set_pbe(int *ppbe, const char *str); @@ -1286,13 +1286,13 @@ void print_attribute(BIO *out, const ASN1_TYPE *av) break; case V_ASN1_OCTET_STRING: - hex_prin(out, av->value.octet_string->data, + hex_print(out, av->value.octet_string->data, av->value.octet_string->length); BIO_printf(out, "\n"); break; case V_ASN1_BIT_STRING: - hex_prin(out, av->value.bit_string->data, + hex_print(out, av->value.bit_string->data, av->value.bit_string->length); BIO_printf(out, "\n"); break; @@ -1354,7 +1354,7 @@ int print_attribs(BIO *out, const STACK_OF(X509_ATTRIBUTE) *attrlst, return 1; } -void hex_prin(BIO *out, unsigned char *buf, int len) +static void hex_print(BIO *out, unsigned char *buf, int len) { int i; for (i = 0; i < len; i++)