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

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

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
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/cssm_init.h" 5 #include "base/crypto/cssm_init.h"
6 6
7 #include <Security/SecBase.h> 7 #include <Security/SecBase.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
11 #include "base/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.h"
13 13
14 // When writing crypto code for Mac OS X, you may find the following 14 // When writing crypto code for Mac OS X, you may find the following
15 // documentation useful: 15 // documentation useful:
16 // - Common Security: CDSA and CSSM, Version 2 (with corrigenda) 16 // - Common Security: CDSA and CSSM, Version 2 (with corrigenda)
17 // http://www.opengroup.org/security/cdsa.htm 17 // http://www.opengroup.org/security/cdsa.htm
18 // - Apple Cryptographic Service Provider Functional Specification 18 // - Apple Cryptographic Service Provider Functional Specification
19 // - CryptoSample: http://developer.apple.com/SampleCode/CryptoSample/ 19 // - CryptoSample: http://developer.apple.com/SampleCode/CryptoSample/
20 20
21 namespace { 21 namespace {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 196
197 ScopedCSSMData::~ScopedCSSMData() { 197 ScopedCSSMData::~ScopedCSSMData() {
198 if (data_.Data) { 198 if (data_.Data) {
199 CSSMFree(data_.Data); 199 CSSMFree(data_.Data);
200 data_.Data = NULL; 200 data_.Data = NULL;
201 } 201 }
202 } 202 }
203 203
204 } // namespace base 204 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698