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

Side by Side Diff: base/crypto/signature_creator_nss.cc

Issue 265032: Reland: HTML Pack Extension Dialog / Linux & Mac Packaging Support (Closed)
Patch Set: blarg Created 11 years, 2 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 unified diff | Download patch
« no previous file with comments | « base/crypto/signature_creator.h ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/crypto/signature_creator.h" 5 #include "base/crypto/signature_creator.h"
6 6
7 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424
8 // until NSS 3.12.2 comes out and we update to it.
9 #define Lock FOO_NSS_Lock
7 #include <cryptohi.h> 10 #include <cryptohi.h>
8 #include <keyhi.h> 11 #include <keyhi.h>
9 #include <stdlib.h> 12 #include <stdlib.h>
13 #undef Lock
10 14
11 #include "base/logging.h" 15 #include "base/logging.h"
12 #include "base/nss_init.h" 16 #include "base/nss_init.h"
13 #include "base/scoped_ptr.h" 17 #include "base/scoped_ptr.h"
14 18
15 namespace base { 19 namespace base {
16 20
17 // static 21 // static
18 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) { 22 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) {
19 scoped_ptr<SignatureCreator> result(new SignatureCreator); 23 scoped_ptr<SignatureCreator> result(new SignatureCreator);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 NOTREACHED(); 71 NOTREACHED();
68 return false; 72 return false;
69 } 73 }
70 signature->assign(signature_item.data, 74 signature->assign(signature_item.data,
71 signature_item.data + signature_item.len); 75 signature_item.data + signature_item.len);
72 SECITEM_FreeItem(&signature_item, PR_FALSE); 76 SECITEM_FreeItem(&signature_item, PR_FALSE);
73 return true; 77 return true;
74 } 78 }
75 79
76 } // namespace base 80 } // namespace base
OLDNEW
« no previous file with comments | « base/crypto/signature_creator.h ('k') | chrome/browser/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698