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

Side by Side Diff: chrome/browser/mac/keychain_reauthorize.h

Issue 10344009: Implement Keychain reauthorization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « no previous file | chrome/browser/mac/keychain_reauthorize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MAC_KEYCHAIN_REAUTHORIZE_H_
6 #define CHROME_BROWSER_MAC_KEYCHAIN_REAUTHORIZE_H_
7 #pragma once
8
9 namespace chrome {
10 namespace browser {
11 namespace mac {
12
13 // Reauthorizes all Keychain items that can be found in a standard Keychain
14 // search, as long as they are accessible and can be decrypted. This operates
15 // by scanning the requirement strings for each application in each ACL in
16 // each accessible Keychain item. If any requirement string matches a list of
17 // strings to perform reauthorization for, the matching application in the ACL
18 // will be replaced with this application, using this application's designated
19 // requirement as the requirement string. Keychain items that are reauthorized
20 // are made effective by deleting the original item and storing the new one
21 // with its revised access policy in the Keychain. This circuitous method is
22 // used because applications don't generally have permission to modify access
23 // control policies on existing Keychain items (even when they are able to
24 // decrypt those items), but any application can remove a Keychain item.
25 void KeychainReauthorize();
26
27 } // namespace mac
28 } // namespace browser
29 } // namespace chrome
30
31 #endif // CHROME_BROWSER_MAC_KEYCHAIN_REAUTHORIZE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/mac/keychain_reauthorize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698