diff options
author | Rich Salz <rsalz@akamai.com> | 2019-10-17 15:45:34 -0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-17 23:19:59 +0200 |
commit | 3d48457478bd61030c370e4090c1462fc4453d81 (patch) | |
tree | cf36ad0667881411cb5b02f44411c03e510e12f2 /test | |
parent | 8c77d45adab101f10b323de3d59fb47b8f8d3a93 (diff) |
Replace BUF_ string function calls with OPENSSL_ ones
Deprecate the BUF_ string macros
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10207)
Diffstat (limited to 'test')
-rw-r--r-- | test/ossl_shim/ossl_shim.cc | 4 | ||||
-rw-r--r-- | test/sslcorrupttest.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ossl_shim/ossl_shim.cc b/test/ossl_shim/ossl_shim.cc index ae67fb58ef..ea1ff3a983 100644 --- a/test/ossl_shim/ossl_shim.cc +++ b/test/ossl_shim/ossl_shim.cc @@ -288,8 +288,8 @@ static unsigned PskClientCallback(SSL *ssl, const char *hint, return 0; } - BUF_strlcpy(out_identity, config->psk_identity.c_str(), - max_identity_len); + OPENSSL_strlcpy(out_identity, config->psk_identity.c_str(), + max_identity_len); memcpy(out_psk, config->psk.data(), config->psk.size()); return config->psk.size(); } diff --git a/test/sslcorrupttest.c b/test/sslcorrupttest.c index bffccc86d2..66f8cd142c 100644 --- a/test/sslcorrupttest.c +++ b/test/sslcorrupttest.c @@ -41,7 +41,7 @@ static int tls_corrupt_write(BIO *bio, const char *in, int inl) char *copy; if (docorrupt) { - if (!TEST_ptr(copy = BUF_memdup(in, inl))) + if (!TEST_ptr(copy = OPENSSL_memdup(in, inl))) return 0; /* corrupt last bit of application data */ copy[inl-1] ^= 1; |