diff options
Diffstat (limited to 'chromeos/dbus/shill_manager_client.h')
-rw-r--r-- | chromeos/dbus/shill_manager_client.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_manager_client.h b/chromeos/dbus/shill_manager_client.h index f191753..473efc0 100644 --- a/chromeos/dbus/shill_manager_client.h +++ b/chromeos/dbus/shill_manager_client.h @@ -31,6 +31,8 @@ class CHROMEOS_EXPORT ShillManagerClient { typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler; typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; typedef ShillClientHelper::ErrorCallback ErrorCallback; + typedef ShillClientHelper::StringCallback StringCallback; + typedef ShillClientHelper::BooleanCallback BooleanCallback; // Interface for setting up devices, services, and technologies for testing. // Accessed through GetTestInterface(), only implemented in the Stub Impl. @@ -126,6 +128,42 @@ class CHROMEOS_EXPORT ShillManagerClient { const ObjectPathCallback& callback, const ErrorCallback& error_callback) = 0; + // Verify that the given data corresponds to a trusted device, and return true + // to the callback if it is. + virtual void VerifyDestination(const std::string& certificate, + const std::string& public_key, + const std::string& nonce, + const std::string& signed_data, + const std::string& device_serial, + const BooleanCallback& callback, + const ErrorCallback& error_callback) = 0; + + // Verify that the given data corresponds to a trusted device, and if it is, + // return the encrypted credentials for connecting to the network represented + // by the given |service_path|, encrypted using the |public_key| for the + // trusted device. If the device is not trusted, return the empty string. + virtual void VerifyAndSignCredentials( + const std::string& certificate, + const std::string& public_key, + const std::string& nonce, + const std::string& signed_data, + const std::string& device_serial, + const std::string& service_path, + const StringCallback& callback, + const ErrorCallback& error_callback) = 0; + + // Verify that the given data corresponds to a trusted device, and return the + // |data| encrypted using the |public_key| for the trusted device. If the + // device is not trusted, return the empty string. + virtual void VerifyAndSignData(const std::string& certificate, + const std::string& public_key, + const std::string& nonce, + const std::string& signed_data, + const std::string& device_serial, + const std::string& data, + const StringCallback& callback, + const ErrorCallback& error_callback) = 0; + // Returns an interface for testing (stub only), or returns NULL. virtual TestInterface* GetTestInterface() = 0; |