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

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

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « base/crypto/secure_hash_default.cc ('k') | base/crypto/signature_verifier_mac.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 </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram ework/Headers/cssmapi.h>
6 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram ework/Headers/cssmtype.h>
7 #include <stdbool.h>
8 #include <stdlib.h>
9 #include <string.h>
10 #include <vector>
11
12 #include "base/basictypes.h"
13 #include "base/crypto/cssm_init.h"
14 #include "base/crypto/rsa_private_key.h"
5 #include "base/crypto/signature_creator.h" 15 #include "base/crypto/signature_creator.h"
6
7 #include <stdlib.h>
8
9 #include "base/crypto/cssm_init.h"
10 #include "base/logging.h" 16 #include "base/logging.h"
11 #include "base/scoped_ptr.h" 17 #include "base/scoped_ptr.h"
12 18
13 namespace base { 19 namespace base {
14 20
15 // static 21 // static
16 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) { 22 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) {
17 scoped_ptr<SignatureCreator> result(new SignatureCreator); 23 scoped_ptr<SignatureCreator> result(new SignatureCreator);
18 result->key_ = key; 24 result->key_ = key;
19 25
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 75 }
70 76
71 signature->assign(sig.Data, sig.Data + sig.Length); 77 signature->assign(sig.Data, sig.Data + sig.Length);
72 kCssmMemoryFunctions.free_func(sig.Data, NULL); // Release data alloc'd 78 kCssmMemoryFunctions.free_func(sig.Data, NULL); // Release data alloc'd
73 // by CSSM 79 // by CSSM
74 80
75 return true; 81 return true;
76 } 82 }
77 83
78 } // namespace base 84 } // namespace base
OLDNEW
« no previous file with comments | « base/crypto/secure_hash_default.cc ('k') | base/crypto/signature_verifier_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698