Extract privet::AuthManager from privet::SecurityManager
BUG:25934385
Change-Id: I45fb7c79053a6009330b4debae1065266d1ce972
Reviewed-on: https://weave-review.googlesource.com/1735
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
diff --git a/src/config.h b/src/config.h
index f4c3465..fe9e159 100644
--- a/src/config.h
+++ b/src/config.h
@@ -28,7 +28,7 @@
std::string refresh_token;
std::string robot_account;
std::string last_configured_ssid;
- std::string secret;
+ std::vector<uint8_t> secret;
};
using OnChangedCallback = base::Callback<void(const weave::Settings&)>;
@@ -89,7 +89,9 @@
void set_last_configured_ssid(const std::string& ssid) {
settings_->last_configured_ssid = ssid;
}
- void set_secret(const std::string& secret) { settings_->secret = secret; }
+ void set_secret(const std::vector<uint8_t>& secret) {
+ settings_->secret = secret;
+ }
void Commit();