OLD | NEW |
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/CoreFoundatio
n.framework/Headers/CFBase.h> |
| 6 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/SecBase.h> |
| 7 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmapi.h> |
| 8 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmapple.h> |
| 9 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmconfig.h> |
| 10 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmtype.h> |
| 11 #include <stdbool.h> |
| 12 #include <stdlib.h> |
| 13 #include <string> |
| 14 |
| 15 #include "base/basictypes.h" |
5 #include "base/crypto/cssm_init.h" | 16 #include "base/crypto/cssm_init.h" |
6 | |
7 #include <Security/SecBase.h> | |
8 | |
9 #include "base/logging.h" | 17 #include "base/logging.h" |
10 #include "base/singleton.h" | 18 #include "base/singleton.h" |
11 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
12 #include "base/sys_string_conversions.h" | 20 #include "base/sys_string_conversions.h" |
13 | 21 |
14 // When writing crypto code for Mac OS X, you may find the following | 22 // When writing crypto code for Mac OS X, you may find the following |
15 // documentation useful: | 23 // documentation useful: |
16 // - Common Security: CDSA and CSSM, Version 2 (with corrigenda) | 24 // - Common Security: CDSA and CSSM, Version 2 (with corrigenda) |
17 // http://www.opengroup.org/security/cdsa.htm | 25 // http://www.opengroup.org/security/cdsa.htm |
18 // - Apple Cryptographic Service Provider Functional Specification | 26 // - Apple Cryptographic Service Provider Functional Specification |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } else { | 160 } else { |
153 LOG(ERROR) << fn_name << " returned " << err; | 161 LOG(ERROR) << fn_name << " returned " << err; |
154 } | 162 } |
155 } | 163 } |
156 | 164 |
157 base::Lock& GetMacSecurityServicesLock() { | 165 base::Lock& GetMacSecurityServicesLock() { |
158 return SecurityServicesSingleton::GetInstance()->lock(); | 166 return SecurityServicesSingleton::GetInstance()->lock(); |
159 } | 167 } |
160 | 168 |
161 } // namespace base | 169 } // namespace base |
OLD | NEW |