]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix typo in hex_prin() and make it static
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Tue, 23 Dec 2025 17:53:50 +0000 (18:53 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 31 Dec 2025 11:26:20 +0000 (12:26 +0100)
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29493)

apps/pkcs12.c

index 65ce120b408a91a7d96cbbc27e9a66bc5f0ea054..a2b436fe43678eddbbe9feac4e91aafeff90e225 100644 (file)
@@ -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++)