diff options
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; |