summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 22:13:24 +0000
committerdilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 22:13:24 +0000
commit7286e3fca5309c743061deb6f5593a070f35f592 (patch)
treeb53a3c961955ca59258a91fe8f9e6605b71da511 /crypto
parentf706d901ff9830869f4ef3ebc50ee53282970c35 (diff)
downloadchromium_src-7286e3fca5309c743061deb6f5593a070f35f592.zip
chromium_src-7286e3fca5309c743061deb6f5593a070f35f592.tar.gz
chromium_src-7286e3fca5309c743061deb6f5593a070f35f592.tar.bz2
some cleanup for base/stl_util
removed unused/irrelevant functions removed irrelevant comments Moved stl_util-inl.h => stl_util.h BUG=None TEST=None Review URL: http://codereview.chromium.org/7342047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto')
-rw-r--r--crypto/hmac_openssl.cc2
-rw-r--r--crypto/rsa_private_key_openssl.cc4
-rw-r--r--crypto/sha2.cc2
-rw-r--r--crypto/signature_creator_openssl.cc2
-rw-r--r--crypto/signature_verifier_openssl.cc2
5 files changed, 6 insertions, 6 deletions
diff --git a/crypto/hmac_openssl.cc b/crypto/hmac_openssl.cc
index 74645c7..3ea1c6a 100644
--- a/crypto/hmac_openssl.cc
+++ b/crypto/hmac_openssl.cc
@@ -11,7 +11,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util-inl.h"
+#include "base/stl_util.h"
#include "crypto/openssl_util.h"
namespace crypto {
diff --git a/crypto/rsa_private_key_openssl.cc b/crypto/rsa_private_key_openssl.cc
index f39b718..b9902a0 100644
--- a/crypto/rsa_private_key_openssl.cc
+++ b/crypto/rsa_private_key_openssl.cc
@@ -10,7 +10,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util-inl.h"
#include "crypto/openssl_util.h"
namespace crypto {
@@ -41,7 +40,8 @@ bool ExportKey(EVP_PKEY* key,
if (!data || len < 0)
return false;
- STLAssignToVector(output, reinterpret_cast<const uint8*>(data), len);
+ std::vector<uint8> for_output(data, data + len);
+ output->swap(for_output);
return true;
}
diff --git a/crypto/sha2.cc b/crypto/sha2.cc
index 7c9b9d2..7626bdc 100644
--- a/crypto/sha2.cc
+++ b/crypto/sha2.cc
@@ -5,7 +5,7 @@
#include "crypto/sha2.h"
#include "base/scoped_ptr.h"
-#include "base/stl_util-inl.h"
+#include "base/stl_util.h"
#include "crypto/secure_hash.h"
namespace crypto {
diff --git a/crypto/signature_creator_openssl.cc b/crypto/signature_creator_openssl.cc
index e6aa422..d12d166 100644
--- a/crypto/signature_creator_openssl.cc
+++ b/crypto/signature_creator_openssl.cc
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util-inl.h"
+#include "base/stl_util.h"
#include "crypto/openssl_util.h"
namespace crypto {
diff --git a/crypto/signature_verifier_openssl.cc b/crypto/signature_verifier_openssl.cc
index 2a58155..cab45db 100644
--- a/crypto/signature_verifier_openssl.cc
+++ b/crypto/signature_verifier_openssl.cc
@@ -11,7 +11,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util-inl.h"
+#include "base/stl_util.h"
#include "crypto/openssl_util.h"
namespace crypto {