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

Unified Diff: crypto/signature_creator_nss.cc

Issue 382633009: Use EVP_DigestSign* rather than EVP_Sign* in SignatureCreator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return values are saner Created 5 years, 11 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/signature_creator.h ('k') | crypto/signature_creator_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_creator_nss.cc
diff --git a/crypto/signature_creator_nss.cc b/crypto/signature_creator_nss.cc
index 47728b075636f2f8971fe68ff23296f12fc8d85f..da03312881dbb9a5009c08e78023b5bd897183c8 100644
--- a/crypto/signature_creator_nss.cc
+++ b/crypto/signature_creator_nss.cc
@@ -50,8 +50,6 @@ SignatureCreator::~SignatureCreator() {
SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key,
HashAlgorithm hash_alg) {
scoped_ptr<SignatureCreator> result(new SignatureCreator);
- result->key_ = key;
-
result->sign_context_ = SGN_NewContext(ToNSSSigOid(hash_alg), key->key());
if (!result->sign_context_) {
NOTREACHED();
@@ -113,9 +111,7 @@ bool SignatureCreator::Final(std::vector<uint8>* signature) {
return true;
}
-SignatureCreator::SignatureCreator()
- : key_(NULL),
- sign_context_(NULL) {
+SignatureCreator::SignatureCreator() : sign_context_(NULL) {
EnsureNSSInit();
}
« no previous file with comments | « crypto/signature_creator.h ('k') | crypto/signature_creator_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698