Index: crypto/rsa_private_key_nss.cc |
diff --git a/crypto/rsa_private_key_nss.cc b/crypto/rsa_private_key_nss.cc |
index a89454e378442f92469ea38f99780f2bd3349a0e..977460ff92dbfec5fdcbf0a2733f520767873532 100644 |
--- a/crypto/rsa_private_key_nss.cc |
+++ b/crypto/rsa_private_key_nss.cc |
@@ -19,8 +19,7 @@ |
#include "crypto/nss_util_internal.h" |
#include "crypto/scoped_nss_types.h" |
-// TODO(rafaelw): Consider refactoring common functions and definitions from |
-// rsa_private_key_win.cc or using NSS's ASN.1 encoder. |
+// TODO(rafaelw): Consider using NSS's ASN.1 encoder. |
namespace { |
static bool ReadAttribute(SECKEYPrivateKey* key, |
@@ -96,6 +95,7 @@ RSAPrivateKey* RSAPrivateKey::CreateFromKey(SECKEYPrivateKey* key) { |
return copy; |
} |
+#if defined(USE_NSS) |
// static |
RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo( |
const std::vector<uint8>& input) { |
@@ -153,6 +153,7 @@ RSAPrivateKey* RSAPrivateKey::FindFromPublicKeyInfo( |
// We didn't find the key. |
return NULL; |
} |
+#endif |
RSAPrivateKey* RSAPrivateKey::Copy() const { |
RSAPrivateKey* copy = new RSAPrivateKey(); |