diff options
author | Rich Salz <rsalz@openssl.org> | 2016-04-13 21:58:28 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-18 15:02:11 +0200 |
commit | 14f051a0ae3d752c50f419d3583e85fdf4c5bfc9 (patch) | |
tree | 16bb50151db9c67cd1dec3b1d25cc537fd10f874 /apps/ts.c | |
parent | Rename some lowercase API's (diff) | |
download | openssl-14f051a0ae3d752c50f419d3583e85fdf4c5bfc9.tar.xz openssl-14f051a0ae3d752c50f419d3583e85fdf4c5bfc9.zip |
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/ts.c')
-rw-r--r-- | apps/ts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -567,7 +567,7 @@ static int create_digest(BIO *input, char *digest, const EVP_MD *md, EVP_MD_CTX_free(md_ctx); } else { long digest_len; - *md_value = string_to_hex(digest, &digest_len); + *md_value = OPENSSL_hexstr2buf(digest, &digest_len); if (!*md_value || md_value_len != digest_len) { OPENSSL_free(*md_value); *md_value = NULL; @@ -939,7 +939,7 @@ static TS_VERIFY_CTX *create_verify_ctx(char *data, char *digest, goto err; } else if (digest != NULL) { long imprint_len; - unsigned char *hexstr = string_to_hex(digest, &imprint_len); + unsigned char *hexstr = OPENSSL_hexstr2buf(digest, &imprint_len); f |= TS_VFY_IMPRINT; if (TS_VERIFY_CTX_set_imprint(ctx, hexstr, imprint_len) == NULL) { BIO_printf(bio_err, "invalid digest string\n"); |