summaryrefslogtreecommitdiffstats
path: root/base/crypto/signature_creator.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 01:21:12 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 01:21:12 +0000
commit71a9f84a47ed556ecaa23b26a0b0adfee0ae51ce (patch)
treeea44ee948ea6239dd5a92367e24136acca41c51e /base/crypto/signature_creator.h
parentbe5ad89174eeff113654a42f775fbbe8d3402e50 (diff)
downloadchromium_src-71a9f84a47ed556ecaa23b26a0b0adfee0ae51ce.zip
chromium_src-71a9f84a47ed556ecaa23b26a0b0adfee0ae51ce.tar.gz
chromium_src-71a9f84a47ed556ecaa23b26a0b0adfee0ae51ce.tar.bz2
Reland: Linux (nss) implementations of RSAPrivateKey and SignatureCreator.
This relands: http://codereview.chromium.org/208032. Additionally, it fixes a memleak unconvered by valgrind, and adds a valgrind supression for a memleak discovered in the nss library. https://bugzilla.mozilla.org/show_bug.cgi?id=518443 BUG=20669 Review URL: http://codereview.chromium.org/218010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto/signature_creator.h')
-rw-r--r--base/crypto/signature_creator.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/base/crypto/signature_creator.h b/base/crypto/signature_creator.h
index 0b66baa..6c7ddbc 100644
--- a/base/crypto/signature_creator.h
+++ b/base/crypto/signature_creator.h
@@ -5,11 +5,15 @@
#ifndef BASE_CRYPTO_SIGNATURE_CREATOR_H_
#define BASE_CRYPTO_SIGNATURE_CREATOR_H_
-#if defined(OS_WIN)
+#include "build/build_config.h"
+
+#if defined(USE_NSS)
+#include <cryptoht.h>
+#elif defined(OS_MACOSX)
+// TODO(port)
+#elif defined(OS_WIN)
#include <windows.h>
#include <wincrypt.h>
-#else
-// TODO(PORT)
#endif
#include <vector>
@@ -37,11 +41,15 @@ class SignatureCreator {
private:
// Private constructor. Use the Create() method instead.
- SignatureCreator() {}
+ SignatureCreator();
RSAPrivateKey* key_;
-#if defined(OS_WIN)
+#if defined(USE_NSS)
+ SGNContext* sign_context_;
+#elif defined(OS_MACOSX)
+ // TODO(port)
+#elif defined(OS_WIN)
HCRYPTHASH hash_object_;
#endif