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

Unified Diff: crypto/signature_creator_nss.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
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') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698