Commit 9ada832a81 for openssl.org

commit 9ada832a81a89458d667778dd57108ee12bd3740
Author: Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Date:   Tue Dec 23 18:53:50 2025 +0100

    Fix typo in hex_prin() and make it static

    Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
    Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
    (Merged from https://github.com/openssl/openssl/pull/29493)

diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 65ce120b40..a2b436fe43 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++)