diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-11-02 12:41:23 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-12-07 17:14:58 +1000 |
commit | abdd3fa04f3401c4a542257fdd803ff4c4daf8ef (patch) | |
tree | c0f3c1467f25a05293e66baf8a93cb9ee8d2b8c9 /test/hexstr_test.c | |
parent | ac093b3fe6ba3f21e874a25ddecc7c1b4dff2765 (diff) | |
download | openssl-abdd3fa04f3401c4a542257fdd803ff4c4daf8ef.tar.gz |
Change OPENSSL_hexstr2buf_ex() & OPENSSL_buf2hexstr_ex() to pass the separator
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13294)
Diffstat (limited to 'test/hexstr_test.c')
-rw-r--r-- | test/hexstr_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/hexstr_test.c b/test/hexstr_test.c index c4f13b6d53..c03b58ef03 100644 --- a/test/hexstr_test.c +++ b/test/hexstr_test.c @@ -118,9 +118,10 @@ static int test_hexstr_ex_to_from(int test_index) unsigned char buf[64]; struct testdata *test = &tbl_testdata[test_index]; - return TEST_true(OPENSSL_hexstr2buf_ex(buf, sizeof(buf), &len, test->in)) + return TEST_true(OPENSSL_hexstr2buf_ex(buf, sizeof(buf), &len, test->in, ':')) && TEST_mem_eq(buf, len, test->expected, test->expected_len) - && TEST_true(OPENSSL_buf2hexstr_ex(out, sizeof(out), NULL, buf, len)) + && TEST_true(OPENSSL_buf2hexstr_ex(out, sizeof(out), NULL, buf, len, + ':')) && TEST_str_eq(out, test->in); } |