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

Unified Diff: chromeos_login.h

Issue 3166035: add more ownership API methods to libcros (Closed) Base URL: http://git.chromium.org/git/cros.git
Patch Set: Forgot to INIT_FUNC some new stuff Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos_cros_api.h ('k') | chromeos_login.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos_login.h
diff --git a/chromeos_login.h b/chromeos_login.h
index 044b007ce3334fe2b444bb3703589bef83c631be..1b31f39b8ea057d4f65da27b31ba6d9bf93cf8f0 100644
--- a/chromeos_login.h
+++ b/chromeos_login.h
@@ -5,6 +5,7 @@
#ifndef CHROMEOS_LOGIN_H_
#define CHROMEOS_LOGIN_H_
+#include <string>
#include <vector>
#include <base/basictypes.h>
@@ -20,8 +21,8 @@ enum OwnershipEvent {
SetKeyFailure = 1,
WhitelistOpSuccess = 2,
WhitelistOpFailure = 3,
- SettingsOpSuccess = 4,
- SettingsOpFailure = 5,
+ PropertyOpSuccess = 4,
+ PropertyOpFailure = 5,
};
static const char kOwnerKeyFile[] = "/var/lib/whitelist/owner.key";
@@ -33,12 +34,24 @@ typedef void(*SessionMonitor)(void*, const OwnershipEvent&);
extern SessionConnection (*MonitorSession)(SessionMonitor monitor, void*);
extern void (*DisconnectSession)(SessionConnection connection);
+extern bool (*CheckWhitelist)(const char* email,
+ std::vector<uint8>* OUT_signature);
extern bool (*EmitLoginPromptReady)();
+extern bool (*RestartJob)(int pid, const char* command_line);
+extern bool (*RetrieveProperty)(const char* name,
+ std::string* OUT_value,
+ std::vector<uint8>* OUT_signature);
extern bool (*SetOwnerKey)(const std::vector<uint8>& public_key_der);
extern bool (*StartSession)(const char* user_email,
const char* unique_id /* unused */);
extern bool (*StopSession)(const char* unique_id /* unused */);
-extern bool (*RestartJob)(int pid, const char* command_line);
+extern bool (*StoreProperty)(const char* name,
+ const char* value,
+ const std::vector<uint8>& signature);
+extern bool (*Unwhitelist)(const char* email,
+ const std::vector<uint8>& signature);
+extern bool (*Whitelist)(const char* email,
+ const std::vector<uint8>& signature);
} // namespace chromeos
« no previous file with comments | « chromeos_cros_api.h ('k') | chromeos_login.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698