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

Side by Side Diff: crypto/apple_keychain.h

Issue 2932473004: Remove depprecated methods in AppleKeychain. (Closed)
Patch Set: Clean up everything Created 3 years, 6 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 | « no previous file | crypto/apple_keychain_mac.mm » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CRYPTO_APPLE_KEYCHAIN_H_ 5 #ifndef CRYPTO_APPLE_KEYCHAIN_H_
6 #define CRYPTO_APPLE_KEYCHAIN_H_ 6 #define CRYPTO_APPLE_KEYCHAIN_H_
7 7
8 #include <Security/Security.h> 8 #include <Security/Security.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual OSStatus AddGenericPassword(SecKeychainRef keychain, 47 virtual OSStatus AddGenericPassword(SecKeychainRef keychain,
48 UInt32 serviceNameLength, 48 UInt32 serviceNameLength,
49 const char* serviceName, 49 const char* serviceName,
50 UInt32 accountNameLength, 50 UInt32 accountNameLength,
51 const char* accountName, 51 const char* accountName,
52 UInt32 passwordLength, 52 UInt32 passwordLength,
53 const void* passwordData, 53 const void* passwordData,
54 SecKeychainItemRef* itemRef) const; 54 SecKeychainItemRef* itemRef) const;
55 55
56 #if !defined(OS_IOS) 56 #if !defined(OS_IOS)
57 virtual OSStatus ItemCopyAttributesAndData(
58 SecKeychainItemRef itemRef,
59 SecKeychainAttributeInfo* info,
60 SecItemClass* itemClass,
61 SecKeychainAttributeList** attrList,
62 UInt32* length,
63 void** outData) const;
64
65 virtual OSStatus ItemModifyAttributesAndData(
66 SecKeychainItemRef itemRef,
67 const SecKeychainAttributeList* attrList,
68 UInt32 length,
69 const void* data) const;
70
71 virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
72 void* data) const;
73
74 virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const; 57 virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const;
75
76 virtual OSStatus SearchCreateFromAttributes(
77 CFTypeRef keychainOrArray,
78 SecItemClass itemClass,
79 const SecKeychainAttributeList* attrList,
80 SecKeychainSearchRef* searchRef) const;
81
82 virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
83 SecKeychainItemRef* itemRef) const;
84
85 virtual OSStatus AddInternetPassword(SecKeychainRef keychain,
86 UInt32 serverNameLength,
87 const char* serverName,
88 UInt32 securityDomainLength,
89 const char* securityDomain,
90 UInt32 accountNameLength,
91 const char* accountName,
92 UInt32 pathLength, const char* path,
93 UInt16 port, SecProtocolType protocol,
94 SecAuthenticationType authenticationType,
95 UInt32 passwordLength,
96 const void* passwordData,
97 SecKeychainItemRef* itemRef) const;
98
99 // Calls CFRelease on the given ref, after checking that |ref| is non-NULL.
100 virtual void Free(CFTypeRef ref) const;
101 #endif // !defined(OS_IOS) 58 #endif // !defined(OS_IOS)
102 59
103 private: 60 private:
104 DISALLOW_COPY_AND_ASSIGN(AppleKeychain); 61 DISALLOW_COPY_AND_ASSIGN(AppleKeychain);
105 }; 62 };
106 63
107 } // namespace crypto 64 } // namespace crypto
108 65
109 #endif // CRYPTO_APPLE_KEYCHAIN_H_ 66 #endif // CRYPTO_APPLE_KEYCHAIN_H_
OLDNEW
« no previous file with comments | « no previous file | crypto/apple_keychain_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698