Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: crypto/rsa_private_key.h

Issue 10830183: Built crypto and crypto_unittests for iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review: Add comment. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/crypto.gyp ('k') | crypto/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/rsa_private_key.h
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index 7a1dccd768a9287e295fe5d6345d155a6c7b06df..ff368d82ace88b6576dfdf2d154cce4b8a811ef3 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -14,6 +14,8 @@ typedef struct evp_pkey_st EVP_PKEY;
// Forward declaration.
struct SECKEYPrivateKeyStr;
struct SECKEYPublicKeyStr;
+#elif defined(OS_IOS)
+#include <Security/Security.h>
#elif defined(OS_MACOSX)
#include <Security/cssm.h>
#endif
@@ -217,6 +219,9 @@ class CRYPTO_EXPORT RSAPrivateKey {
#elif defined(OS_WIN)
HCRYPTPROV provider() { return provider_; }
HCRYPTKEY key() { return key_; }
+#elif defined(OS_IOS)
+ SecKeyRef key() { return key_; }
+ SecKeyRef public_key() { return public_key_; }
#elif defined(OS_MACOSX)
CSSM_KEY_PTR key() { return &key_; }
CSSM_KEY_PTR public_key() { return &public_key_; }
@@ -263,6 +268,9 @@ class CRYPTO_EXPORT RSAPrivateKey {
ScopedHCRYPTPROV provider_;
ScopedHCRYPTKEY key_;
+#elif defined(OS_IOS)
+ SecKeyRef key_;
+ SecKeyRef public_key_;
#elif defined(OS_MACOSX)
CSSM_KEY key_;
CSSM_KEY public_key_;
« no previous file with comments | « crypto/crypto.gyp ('k') | crypto/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698