summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorjingzhao@chromium.org <jingzhao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 11:41:16 +0000
committerjingzhao@chromium.org <jingzhao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 11:41:16 +0000
commitae7c9f4d3c23cbd5ef60508a5710beccad59a428 (patch)
tree57379ee4e0467f4310c5ba35202180002fcf59a8 /crypto
parent3d40d9e210b016e3148640be63bfc1c5f16827c5 (diff)
downloadchromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.zip
chromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.tar.gz
chromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.tar.bz2
Upstream: Build net_unittests for Android.
BUG= TEST= Review URL: http://codereview.chromium.org/8429034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.gyp12
-rw-r--r--crypto/rsa_private_key.cc6
2 files changed, 13 insertions, 5 deletions
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index 3a56631..416f64c 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -22,7 +22,7 @@
4018,
],
'conditions': [
- [ 'os_posix == 1 and OS != "mac"', {
+ [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
'dependencies': [
'../build/linux/system.gyp:ssl',
],
@@ -35,7 +35,7 @@
},
],
],
- }, { # os_posix != 1 or OS == "mac"
+ }, { # os_posix != 1 or OS == "mac" or OS == "android"
'sources/': [
['exclude', '_nss\.cc$'],
['include', 'ec_private_key_nss\.cc$'],
@@ -44,6 +44,14 @@
'openpgp_symmetric_encryption.cc',
],
}],
+ [ 'OS == "android"', {
+ 'dependencies': [
+ '../build/android/system.gyp:ssl',
+ ],
+ 'sources/': [
+ ['exclude', 'ec_private_key_nss\.cc$'],
+ ],
+ }],
[ 'OS == "freebsd" or OS == "openbsd"', {
'link_settings': {
'libraries': [
diff --git a/crypto/rsa_private_key.cc b/crypto/rsa_private_key.cc
index 2d849cd..62eb996 100644
--- a/crypto/rsa_private_key.cc
+++ b/crypto/rsa_private_key.cc
@@ -185,7 +185,7 @@ void PrivateKeyInfoCodec::PrependIntegerImpl(uint8* val,
std::vector<uint8> tmp;
if (!big_endian) {
tmp.assign(val, val + num_bytes);
- reverse(tmp.begin(), tmp.end());
+ std::reverse(tmp.begin(), tmp.end());
val = &tmp.front();
}
@@ -240,7 +240,7 @@ bool PrivateKeyInfoCodec::ReadIntegerWithExpectedSize(uint8** pos,
// Reverse output if little-endian.
if (!big_endian_)
- reverse(out->begin(), out->end());
+ std::reverse(out->begin(), out->end());
return true;
}
@@ -265,7 +265,7 @@ bool PrivateKeyInfoCodec::ReadIntegerImpl(uint8** pos,
// Reverse output if little-endian.
if (!big_endian)
- reverse(out->begin(), out->end());
+ std::reverse(out->begin(), out->end());
return true;
}