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

Side by Side Diff: crypto/crypto_module_blocking_password_delegate.h

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam review changes Created 7 years 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 | « crypto/crypto.gyp ('k') | crypto/nss_crypto_module_delegate.h » ('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 CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
6 #define CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
7
8 #include <string>
9
10 namespace crypto {
11
12 // PK11_SetPasswordFunc is a global setting. An implementation of
13 // CryptoModuleBlockingPasswordDelegate should be passed as the user data
14 // argument (|wincx|) to relevant NSS functions, which the global password
15 // handler will call to do the actual work.
16 class CryptoModuleBlockingPasswordDelegate {
17 public:
18 virtual ~CryptoModuleBlockingPasswordDelegate() {}
19
20 // Requests a password to unlock |slot_name|. The interface is
21 // synchronous because NSS cannot issue an asynchronous
22 // request. |retry| is true if this is a request for the retry
23 // and we previously returned the wrong password.
24 // The implementation should set |*cancelled| to true if the user cancelled
25 // instead of entering a password, otherwise it should return the password the
26 // user entered.
27 virtual std::string RequestPassword(const std::string& slot_name, bool retry,
28 bool* cancelled) = 0;
29 };
30
31 } // namespace crypto
32
33 #endif // CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
OLDNEW
« no previous file with comments | « crypto/crypto.gyp ('k') | crypto/nss_crypto_module_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698