Lines Matching refs:key_path
148 const std::string& key_path, const std::string& tmp_path, in retrieveAndInstallKey() argument
151 if (pathExists(key_path)) { in retrieveAndInstallKey()
152 LOG(DEBUG) << "Key exists, using: " << key_path; in retrieveAndInstallKey()
153 if (!retrieveKey(key_path, key_authentication, &key)) return false; in retrieveAndInstallKey()
156 LOG(ERROR) << "No key found in " << key_path; in retrieveAndInstallKey()
159 LOG(INFO) << "Creating new key in " << key_path; in retrieveAndInstallKey()
161 if (!storeKeyAtomically(key_path, tmp_path, key_authentication, key)) return false; in retrieveAndInstallKey()
165 LOG(ERROR) << "Failed to install key in " << key_path; in retrieveAndInstallKey()
171 bool retrieveKey(bool create_if_absent, const std::string& key_path, const std::string& tmp_path, in retrieveKey() argument
173 if (pathExists(key_path)) { in retrieveKey()
174 LOG(DEBUG) << "Key exists, using: " << key_path; in retrieveKey()
175 if (!retrieveKey(key_path, kEmptyAuthentication, key, keepOld)) return false; in retrieveKey()
178 LOG(ERROR) << "No key found in " << key_path; in retrieveKey()
181 LOG(INFO) << "Creating new key in " << key_path; in retrieveKey()
183 if (!storeKeyAtomically(key_path, tmp_path, kEmptyAuthentication, *key)) return false; in retrieveKey()