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

Side by Side Diff: chrome/browser/keychain_mac.cc

Issue 155451: Support individual Keychain item deletion (Closed)
Patch Set: Created 11 years, 5 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 | « chrome/browser/keychain_mac.h ('k') | chrome/browser/keychain_mock_mac.h » ('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 "chrome/browser/keychain_mac.h" 5 #include "chrome/browser/keychain_mac.h"
6 6
7 OSStatus MacKeychain::ItemCopyAttributesAndData( 7 OSStatus MacKeychain::ItemCopyAttributesAndData(
8 SecKeychainItemRef itemRef, SecKeychainAttributeInfo *info, 8 SecKeychainItemRef itemRef, SecKeychainAttributeInfo *info,
9 SecItemClass *itemClass, SecKeychainAttributeList **attrList, 9 SecItemClass *itemClass, SecKeychainAttributeList **attrList,
10 UInt32 *length, void **outData) const { 10 UInt32 *length, void **outData) const {
11 return SecKeychainItemCopyAttributesAndData(itemRef, info, itemClass, 11 return SecKeychainItemCopyAttributesAndData(itemRef, info, itemClass,
12 attrList, length, outData); 12 attrList, length, outData);
13 } 13 }
14 14
15 OSStatus MacKeychain::ItemModifyAttributesAndData( 15 OSStatus MacKeychain::ItemModifyAttributesAndData(
16 SecKeychainItemRef itemRef, const SecKeychainAttributeList *attrList, 16 SecKeychainItemRef itemRef, const SecKeychainAttributeList *attrList,
17 UInt32 length, const void *data) const { 17 UInt32 length, const void *data) const {
18 return SecKeychainItemModifyAttributesAndData(itemRef, attrList, length, 18 return SecKeychainItemModifyAttributesAndData(itemRef, attrList, length,
19 data); 19 data);
20 } 20 }
21 21
22 OSStatus MacKeychain::ItemFreeAttributesAndData( 22 OSStatus MacKeychain::ItemFreeAttributesAndData(
23 SecKeychainAttributeList *attrList, void *data) const { 23 SecKeychainAttributeList *attrList, void *data) const {
24 return SecKeychainItemFreeAttributesAndData(attrList, data); 24 return SecKeychainItemFreeAttributesAndData(attrList, data);
25 } 25 }
26 26
27 OSStatus MacKeychain::ItemDelete(SecKeychainItemRef itemRef) const {
28 return SecKeychainItemDelete(itemRef);
29 }
30
27 OSStatus MacKeychain::SearchCreateFromAttributes( 31 OSStatus MacKeychain::SearchCreateFromAttributes(
28 CFTypeRef keychainOrArray, SecItemClass itemClass, 32 CFTypeRef keychainOrArray, SecItemClass itemClass,
29 const SecKeychainAttributeList *attrList, 33 const SecKeychainAttributeList *attrList,
30 SecKeychainSearchRef *searchRef) const { 34 SecKeychainSearchRef *searchRef) const {
31 return SecKeychainSearchCreateFromAttributes(keychainOrArray, itemClass, 35 return SecKeychainSearchCreateFromAttributes(keychainOrArray, itemClass,
32 attrList, searchRef); 36 attrList, searchRef);
33 } 37 }
34 38
35 OSStatus MacKeychain::SearchCopyNext(SecKeychainSearchRef searchRef, 39 OSStatus MacKeychain::SearchCopyNext(SecKeychainSearchRef searchRef,
36 SecKeychainItemRef *itemRef) const { 40 SecKeychainItemRef *itemRef) const {
(...skipping 18 matching lines...) Expand all
55 port, protocol, authenticationType, 59 port, protocol, authenticationType,
56 passwordLength, passwordData, 60 passwordLength, passwordData,
57 itemRef); 61 itemRef);
58 } 62 }
59 63
60 void MacKeychain::Free(CFTypeRef ref) const { 64 void MacKeychain::Free(CFTypeRef ref) const {
61 if (ref) { 65 if (ref) {
62 CFRelease(ref); 66 CFRelease(ref);
63 } 67 }
64 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/keychain_mac.h ('k') | chrome/browser/keychain_mock_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698