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/ocsp.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/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 24d88da5c3..ca293a9709 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1075,7 +1075,9 @@ static int urldecode(char *p) if (*p != '%') *out++ = *p; else if (isxdigit(_UC(p[1])) && isxdigit(_UC(p[2]))) { - *out++ = (app_hex(p[1]) << 4) | app_hex(p[2]); + /* Don't check, can't fail because of ixdigit() call. */ + *out++ = (OPENSSL_hexchar2int(p[1]) << 4) + | OPENSSL_hexchar2int(p[2]); p += 2; } else |