diff options
author | Rich Salz <rsalz@openssl.org> | 2016-04-13 15:58:28 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-18 09:02:11 -0400 |
commit | 14f051a0ae3d752c50f419d3583e85fdf4c5bfc9 (patch) | |
tree | 16bb50151db9c67cd1dec3b1d25cc537fd10f874 /apps/apps.c | |
parent | 9021a5dfb37fd3a6f7726f07ef0f27dcb71048e2 (diff) | |
download | openssl-14f051a0ae3d752c50f419d3583e85fdf4c5bfc9.tar.gz |
Make string_to_hex/hex_to_string public
Give the API new names, document it.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/apps/apps.c b/apps/apps.c index 7ba12fea5a..6d8c4897d0 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2340,45 +2340,6 @@ int app_access(const char* name, int flag) #endif } -int app_hex(char c) -{ - switch (c) { - default: - case '0': - return 0; - case '1': - return 1; - case '2': - return 2; - case '3': - return 3; - case '4': - return 4; - case '5': - return 5; - case '6': - return 6; - case '7': - return 7; - case '8': - return 8; - case '9': - return 9; - case 'a': case 'A': - return 0x0A; - case 'b': case 'B': - return 0x0B; - case 'c': case 'C': - return 0x0C; - case 'd': case 'D': - return 0x0D; - case 'e': case 'E': - return 0x0E; - case 'f': case 'F': - return 0x0F; - } -} - /* app_isdir section */ #ifdef _WIN32 int app_isdir(const char *name) |