diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 00:14:54 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 00:14:54 +0000 |
commit | 5ee44d495bad0360a05be1657fcc2b5bbd689976 (patch) | |
tree | 20f36773f3ffd8323e0073b33f5f3988705d8f3c | |
parent | f12b14ebaef0065e903f25fddf851bc7abde3e8c (diff) | |
download | chromium_src-5ee44d495bad0360a05be1657fcc2b5bbd689976.zip chromium_src-5ee44d495bad0360a05be1657fcc2b5bbd689976.tar.gz chromium_src-5ee44d495bad0360a05be1657fcc2b5bbd689976.tar.bz2 |
Use a forward declaration of RSAPrivateKey in crypto/signature_creator.h.
R=rch@chromium.org
BUG=none
TEST=no compilation errors
Review URL: http://codereview.chromium.org/9348001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120872 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | crypto/signature_creator.h | 5 | ||||
-rw-r--r-- | crypto/signature_creator_mac.cc | 3 | ||||
-rw-r--r-- | crypto/signature_creator_nss.cc | 3 | ||||
-rw-r--r-- | crypto/signature_creator_openssl.cc | 3 | ||||
-rw-r--r-- | crypto/signature_creator_unittest.cc | 3 | ||||
-rw-r--r-- | crypto/signature_creator_win.cc | 3 |
6 files changed, 13 insertions, 7 deletions
diff --git a/crypto/signature_creator.h b/crypto/signature_creator.h index eccfcce..63512b8 100644 --- a/crypto/signature_creator.h +++ b/crypto/signature_creator.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -22,7 +22,6 @@ struct SGNContextStr; #include "base/basictypes.h" #include "crypto/crypto_export.h" -#include "crypto/rsa_private_key.h" #if defined(OS_WIN) #include "crypto/scoped_capi_types.h" @@ -30,6 +29,8 @@ struct SGNContextStr; namespace crypto { +class RSAPrivateKey; + // Signs data using a bare private key (as opposed to a full certificate). // Currently can only sign data using SHA-1 with RSA encryption. class CRYPTO_EXPORT SignatureCreator { diff --git a/crypto/signature_creator_mac.cc b/crypto/signature_creator_mac.cc index c31459f..cdc34f8 100644 --- a/crypto/signature_creator_mac.cc +++ b/crypto/signature_creator_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,6 +9,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "crypto/cssm_init.h" +#include "crypto/rsa_private_key.h" namespace crypto { diff --git a/crypto/signature_creator_nss.cc b/crypto/signature_creator_nss.cc index 2614944..95b2442 100644 --- a/crypto/signature_creator_nss.cc +++ b/crypto/signature_creator_nss.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,6 +11,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "crypto/nss_util.h" +#include "crypto/rsa_private_key.h" namespace crypto { diff --git a/crypto/signature_creator_openssl.cc b/crypto/signature_creator_openssl.cc index d12d166..fa9ba07 100644 --- a/crypto/signature_creator_openssl.cc +++ b/crypto/signature_creator_openssl.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -10,6 +10,7 @@ #include "base/memory/scoped_ptr.h" #include "base/stl_util.h" #include "crypto/openssl_util.h" +#include "crypto/rsa_private_key.h" namespace crypto { diff --git a/crypto/signature_creator_unittest.cc b/crypto/signature_creator_unittest.cc index 623e9ed..2d69223 100644 --- a/crypto/signature_creator_unittest.cc +++ b/crypto/signature_creator_unittest.cc @@ -1,10 +1,11 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <vector> #include "base/memory/scoped_ptr.h" +#include "crypto/rsa_private_key.h" #include "crypto/signature_creator.h" #include "crypto/signature_verifier.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/crypto/signature_creator_win.cc b/crypto/signature_creator_win.cc index 94fe87d..69e6513 100644 --- a/crypto/signature_creator_win.cc +++ b/crypto/signature_creator_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,6 +6,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" +#include "crypto/rsa_private_key.h" namespace crypto { |