Make string_to_hex/hex_to_string public
[openssl.git] / apps / enc.c
index 7f25009ba94d19cbe6411d2c897251808103aa6d..9e7d0692641e446102e532ab77a3ee1c7d3a6d86 100644 (file)
@@ -636,7 +636,7 @@ static int set_hex(char *in, unsigned char *out, int size)
             BIO_printf(bio_err, "non-hex digit\n");
             return (0);
         }
-        j = (unsigned char)app_hex(j);
+        j = (unsigned char)OPENSSL_hexchar2int(j);
         if (i & 1)
             out[i / 2] |= j;
         else