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

Side by Side Diff: base/crypto/crypto_module_blocking_password_delegate.h

Issue 6303004: Cleanup: replace usage of "pk11" with "pkcs11" or "crypto module", as appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indentation, compile fix Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 BASE_CRYPTO_PK11_BLOCKING_PASSWORD_DELEGATE_H_ 5 #ifndef BASE_CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
6 #define BASE_CRYPTO_PK11_BLOCKING_PASSWORD_DELEGATE_H_ 6 #define BASE_CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 namespace base { 11 namespace base {
12 12
13 // PK11_SetPasswordFunc is a global setting. An implementation of 13 // PK11_SetPasswordFunc is a global setting. An implementation of
14 // PK11BlockingPasswordDelegate should be passed as the user data argument 14 // CryptoModuleBlockingPasswordDelegate should be passed as the user data
15 // (|wincx|) to relevant NSS functions, which the global password handler will 15 // argument (|wincx|) to relevant NSS functions, which the global password
16 // call to do the actual work. 16 // handler will call to do the actual work.
17 class PK11BlockingPasswordDelegate { 17 class CryptoModuleBlockingPasswordDelegate {
wtc 2011/01/15 17:40:40 If this class is and will remain NSS-specific, it
mattm 2011/01/19 00:59:34 Yeah, openssl will use it too
18 public: 18 public:
19 virtual ~PK11BlockingPasswordDelegate() {} 19 virtual ~CryptoModuleBlockingPasswordDelegate() {}
20 20
21 // Requests a password to unlock |slot_name|. The interface is 21 // Requests a password to unlock |slot_name|. The interface is
22 // synchronous because NSS cannot issue an asynchronous 22 // synchronous because NSS cannot issue an asynchronous
23 // request. |retry| is true if this is a request for the retry 23 // request. |retry| is true if this is a request for the retry
24 // and we previously returned the wrong password. 24 // and we previously returned the wrong password.
25 // The implementation should set |*cancelled| to true if the user cancelled 25 // The implementation should set |*cancelled| to true if the user cancelled
26 // instead of entering a password, otherwise it should return the password the 26 // instead of entering a password, otherwise it should return the password the
27 // user entered. 27 // user entered.
28 virtual std::string RequestPassword(const std::string& slot_name, bool retry, 28 virtual std::string RequestPassword(const std::string& slot_name, bool retry,
29 bool* cancelled) = 0; 29 bool* cancelled) = 0;
30 }; 30 };
31 31
32 } 32 }
33 33
34 #endif // BASE_CRYPTO_PK11_BLOCKING_PASSWORD_DELEGATE_H_ 34 #endif // BASE_CRYPTO_CRYPTO_MODULE_BLOCKING_PASSWORD_DELEGATE_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/nss_util.cc » ('j') | chrome/app/generated_resources.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698