Factorise duplicated code.
authorFdaSilvaYY <fdasilvayy@gmail.com>
Tue, 7 Nov 2017 10:50:30 +0000 (11:50 +0100)
committerRich Salz <rsalz@openssl.org>
Mon, 13 Nov 2017 12:52:35 +0000 (07:52 -0500)
commit4483fbae10a9277812cc8a587ef58a5a512fe7c9
treec3879b67351cc43c7e61a671386ca7eeddd90799
parent1a78a33aed6d182bf26a3e839341b9ea38dbcaa3
Factorise duplicated code.

Extract and factorise duplicated string glue code.
Cache strlen result to avoid duplicate calls.
[extended tests]

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4719)
test/bntest.c
test/crltest.c
test/testutil.h
test/testutil/driver.c