From 1630219d906f592c9258bfe2a0e0c4923df35782 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 20 Jan 2015 19:23:25 -0500 Subject: openssl: abstract out OPENSSL_cleanse This makes it easier for us to replace it if desired, since it's now only in one spot. Also, it avoids the openssl include from allocators.h, which essentially forced openssl to be included from every compilation unit. --- src/base58.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base58.cpp') diff --git a/src/base58.cpp b/src/base58.cpp index 980d3cbf4..c80918505 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -172,7 +172,7 @@ bool CBase58Data::SetString(const char* psz, unsigned int nVersionBytes) vchData.resize(vchTemp.size() - nVersionBytes); if (!vchData.empty()) memcpy(&vchData[0], &vchTemp[nVersionBytes], vchData.size()); - OPENSSL_cleanse(&vchTemp[0], vchData.size()); + memory_cleanse(&vchTemp[0], vchData.size()); return true; } -- cgit v1.2.3