Searched refs:key_file (Results 1 - 25 of 32) sorted by relevance

12

/external/chromium_org/chrome/installer/util/
H A Ddelete_tree_work_item.cc59 base::FilePath& key_file = key_paths_[i]; local
65 } else if (!base::CopyFile(key_file,
66 backup.path().Append(key_file.BaseName()))) {
67 PLOG(ERROR) << "Could not back up " << key_file.value()
74 HANDLE file = ::CreateFile(key_file.value().c_str(), FILE_ALL_ACCESS,
78 VLOG(1) << "Acquired exclusive lock for key file: " << key_file.value();
83 PLOG(INFO) << "Failed to open " << key_file.value();
93 base::FilePath& key_file = key_paths_[i]; local
94 if (!base::DeleteFile(key_file, true)) {
96 PLOG(DFATAL) << "Unexpectedly could not delete " << key_file
153 base::FilePath& key_file = key_paths_[i]; local
[all...]
/external/chromium/chrome/browser/extensions/
H A Dpack_extension_job.h26 const FilePath& key_file) = 0;
35 const FilePath& key_file);
46 const FilePath& key_file);
H A Dpack_extension_job.cc18 const FilePath& key_file)
19 : client_(client), key_file_(key_file), asynchronous_(true) {
85 const FilePath& key_file) {
87 string16 key_file_string = key_file.LossyDisplayName();
16 PackExtensionJob(Client* client, const FilePath& root_directory, const FilePath& key_file) argument
84 StandardSuccessMessage(const FilePath& crx_file, const FilePath& key_file) argument
H A Dextensions_ui.h86 const FilePath& key_file);
/external/chromium/chrome/browser/chromeos/login/
H A Downer_key_utils.cc42 bool ImportPublicKey(const FilePath& key_file,
61 const FilePath& key_file);
87 const FilePath& key_file) {
104 file_util::WriteFile(key_file,
111 bool OwnerKeyUtilsImpl::ImportPublicKey(const FilePath& key_file, argument
115 if (!file_util::GetFileSize(key_file, &file_size)) {
116 LOG(ERROR) << "Could not get size of " << key_file.value();
120 LOG(ERROR) << key_file.value() << "is "
128 int data_read = file_util::ReadFile(key_file,
86 ExportPublicKeyToFile(crypto::RSAPrivateKey* pair, const FilePath& key_file) argument
H A Dmock_owner_key_utils.h25 MOCK_METHOD2(ImportPublicKey, bool(const FilePath& key_file,
37 const FilePath& key_file));
H A Downer_key_utils.h47 // Assumes that the file at |key_file| exists.
49 virtual bool ImportPublicKey(const FilePath& key_file,
76 // DER encodes public half of |pair| and writes it out to |key_file|.
80 const FilePath& key_file) = 0;
/external/chromium_org/chrome/browser/extensions/
H A Dpack_extension_job.cc22 const base::FilePath& key_file,
24 : client_(client), key_file_(key_file), asynchronous_(true),
95 const base::FilePath& key_file) {
97 string16 key_file_string = key_file.LossyDisplayName();
20 PackExtensionJob(Client* client, const base::FilePath& root_directory, const base::FilePath& key_file, int run_flags) argument
93 StandardSuccessMessage( const base::FilePath& crx_file, const base::FilePath& key_file) argument
H A Dpack_extension_job.h26 const base::FilePath& key_file) = 0;
36 const base::FilePath& key_file,
48 const base::FilePath& key_file);
/external/chromium_org/chrome/browser/chromeos/settings/
H A Downer_key_util.cc34 OwnerKeyUtilImpl::OwnerKeyUtilImpl(const base::FilePath& key_file) argument
35 : key_file_(key_file) {}
/external/chromium_org/chrome/browser/
H A Dshell_integration_linux.cc420 GKeyFile* key_file = g_key_file_new();
422 if (!g_key_file_load_from_data(key_file, shortcut_contents.c_str(),
427 g_key_file_free(key_file);
432 char* nodisplay_c_string = g_key_file_get_string(key_file, kDesktopEntry,
440 g_key_file_free(key_file);
715 GKeyFile* key_file = g_key_file_new(); local
718 g_key_file_set_string(key_file, kDesktopEntry, "Version", "1.0");
719 g_key_file_set_string(key_file, kDesktopEntry, "Terminal", "false");
720 g_key_file_set_string(key_file, kDesktopEntry, "Type", "Application");
732 g_key_file_set_string(key_file, kDesktopEntr
791 GKeyFile* key_file = g_key_file_new(); local
[all...]
/external/chromium/net/test/
H A Dopenssl_helper.cc61 const char* key_file = kDefaultPEMFile; local
101 key_file = argv[i];
130 if (BIO_read_filename(key, key_file) <= 0) {
131 fprintf(stderr, "Failed to read %s\n", key_file);
137 fprintf(stderr, "Failed to parse %s\n", key_file);
162 fprintf(stderr, "Failed to load %s\n", key_file);
/external/chromium_org/net/test/
H A Dopenssl_helper.cc61 const char* key_file = kDefaultPEMFile; local
101 key_file = argv[i];
130 if (BIO_read_filename(key, key_file) <= 0) {
131 fprintf(stderr, "Failed to read %s\n", key_file);
137 fprintf(stderr, "Failed to parse %s\n", key_file);
162 fprintf(stderr, "Failed to load %s\n", key_file);
/external/chromium_org/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/
H A D__init__.py54 def _create_fancy_connection(tunnel_host=None, key_file=None,
70 self.key_file = key_file
148 keyfile=self.key_file,
161 keyfile=self.key_file,
225 def set_ssl_info(self, key_file=None, cert_file=None, ca_certs=None):
226 self._key_file = key_file
/external/chromium_org/chrome/browser/ui/webui/extensions/
H A Dpack_extension_handler.h38 const base::FilePath& key_file) OVERRIDE;
H A Dpack_extension_handler.cc126 base::FilePath key_file = private_key_path_; local
141 if (!private_key_path_.empty() && key_file.empty()) {
147 pack_job_ = new PackExtensionJob(this, root_directory, key_file, run_flags);
/external/chromium_org/third_party/openssl/openssl/apps/
H A Ds_apps.h156 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
H A Ds_cb.c198 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file) argument
214 if (key_file == NULL) key_file=cert_file;
215 if (SSL_CTX_use_PrivateKey_file(ctx,key_file,
218 BIO_printf(bio_err,"unable to get private key from '%s'\n",key_file);
/external/openssl/apps/
H A Ds_apps.h156 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
H A Ds_cb.c198 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file) argument
214 if (key_file == NULL) key_file=cert_file;
215 if (SSL_CTX_use_PrivateKey_file(ctx,key_file,
218 BIO_printf(bio_err,"unable to get private key from '%s'\n",key_file);
/external/chromium/chrome/browser/ui/webui/options/
H A Dextension_settings_handler.h128 const FilePath& key_file);
/external/chromium_org/net/disk_cache/v3/
H A Dentry_impl_v3.cc272 File* key_file = GetBackingFile(address, kKeyFileIndex); local
279 if (!key_file || !key_file->Write(key.data(), key.size(), offset)) {
285 key_file->SetLength(key.size() + 1);
482 File* key_file = const_cast<EntryImpl*>(this)->GetBackingFile(address, local
484 if (!key_file)
488 if (!offset && key_file->GetLength() != static_cast<size_t>(key_len))
491 if (!key_file->Read(WriteInto(&key_, key_len), key_len, offset))
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
H A D__init__.py66 def _ssl_wrap_socket(sock, key_file, cert_file):
67 ssl_sock = socket.ssl(sock, key_file, cert_file)
755 def __init__(self, host, port=None, key_file=None, cert_file=None,
757 httplib.HTTPSConnection.__init__(self, host, port=port, key_file=key_file,
774 self.sock =_ssl_wrap_socket(sock, self.key_file, self.cert_file)
1012 conn = self.connections[conn_key] = connection_type(authority, key_file=certs[0][0],
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
H A D__init__.py66 def _ssl_wrap_socket(sock, key_file, cert_file):
67 ssl_sock = socket.ssl(sock, key_file, cert_file)
755 def __init__(self, host, port=None, key_file=None, cert_file=None,
757 httplib.HTTPSConnection.__init__(self, host, port=port, key_file=key_file,
774 self.sock =_ssl_wrap_socket(sock, self.key_file, self.cert_file)
1012 conn = self.connections[conn_key] = connection_type(authority, key_file=certs[0][0],
/external/chromium/net/disk_cache/
H A Dentry_impl.cc425 File* key_file = GetBackingFile(address, kKeyFileIndex); local
432 if (!key_file || !key_file->Write(key.data(), key.size(), offset)) {
438 key_file->SetLength(key.size() + 1);
763 File* key_file = const_cast<EntryImpl*>(this)->GetBackingFile(address, local
766 if (!offset && key_file->GetLength() != static_cast<size_t>(key_len + 1))
769 if (!key_file ||
770 !key_file->Read(WriteInto(&key_, key_len + 1), key_len + 1, offset))

Completed in 900 milliseconds

12