summaryrefslogtreecommitdiffstats
path: root/base/crypto/rsa_private_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/crypto/rsa_private_key.h')
-rw-r--r--base/crypto/rsa_private_key.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/base/crypto/rsa_private_key.h b/base/crypto/rsa_private_key.h
index 21aa601..3d85ebb 100644
--- a/base/crypto/rsa_private_key.h
+++ b/base/crypto/rsa_private_key.h
@@ -7,11 +7,14 @@
#include "build/build_config.h"
-#if defined(OS_WIN)
+#if defined(USE_NSS)
+#include <cryptoht.h>
+#include <keythi.h>
+#elif defined(OS_MACOSX)
+// TODO(port);
+#elif defined(OS_WIN)
#include <windows.h>
#include <wincrypt.h>
-#else
-// TODO(port)
#endif
#include <vector>
@@ -35,7 +38,9 @@ class RSAPrivateKey {
~RSAPrivateKey();
-#if defined(OS_WIN)
+#if defined(USE_NSS)
+ SECKEYPrivateKey* key() { return key_; }
+#elif defined(OS_WIN)
HCRYPTPROV provider() { return provider_; }
HCRYPTKEY key() { return key_; }
#endif
@@ -51,7 +56,10 @@ private:
// instead.
RSAPrivateKey();
-#if defined(OS_WIN)
+#if defined(USE_NSS)
+ SECKEYPrivateKey* key_;
+ SECKEYPublicKey* public_key_;
+#elif defined(OS_WIN)
bool InitProvider();
HCRYPTPROV provider_;