summaryrefslogtreecommitdiff
path: root/crypto/signature_creator.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/signature_creator.h')
-rw-r--r--crypto/signature_creator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/signature_creator.h b/crypto/signature_creator.h
index 674bd4cccb..1e8e856a02 100644
--- a/crypto/signature_creator.h
+++ b/crypto/signature_creator.h
@@ -14,8 +14,13 @@
#include "build/build_config.h"
#include "crypto/crypto_export.h"
+#if defined(USE_OPENSSL)
// Forward declaration for openssl/*.h
typedef struct env_md_ctx_st EVP_MD_CTX;
+#elif defined(USE_NSS_CERTS) || defined(OS_WIN) || defined(OS_MACOSX)
+// Forward declaration.
+struct SGNContextStr;
+#endif
namespace crypto {
@@ -57,7 +62,11 @@ class CRYPTO_EXPORT SignatureCreator {
// Private constructor. Use the Create() method instead.
SignatureCreator();
+#if defined(USE_OPENSSL)
EVP_MD_CTX* sign_context_;
+#elif defined(USE_NSS_CERTS) || defined(OS_WIN) || defined(OS_MACOSX)
+ SGNContextStr* sign_context_;
+#endif
DISALLOW_COPY_AND_ASSIGN(SignatureCreator);
};