summaryrefslogtreecommitdiffstats
path: root/remoting/host/host_key_pair.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-14 04:18:03 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-14 04:18:03 +0000
commitad377ae01314e1b74db3e7810c151ddfc6daaa7c (patch)
treedea06aafff3440509e9e6884ba536c9a3d22020c /remoting/host/host_key_pair.h
parent3f211b664f0b98dc15a413ae5fb6130fe5ab8496 (diff)
downloadchromium_src-ad377ae01314e1b74db3e7810c151ddfc6daaa7c.zip
chromium_src-ad377ae01314e1b74db3e7810c151ddfc6daaa7c.tar.gz
chromium_src-ad377ae01314e1b74db3e7810c151ddfc6daaa7c.tar.bz2
Handle certificate generation errors in chromoting host.
Sometimes self-signed cert generation may fail. In that case it's better to shutdown host instead of crashing. BUG=146839 Review URL: https://chromiumcodereview.appspot.com/10919277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_key_pair.h')
-rw-r--r--remoting/host/host_key_pair.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/host_key_pair.h b/remoting/host/host_key_pair.h
index 8af41d9..f7aa651 100644
--- a/remoting/host/host_key_pair.h
+++ b/remoting/host/host_key_pair.h
@@ -37,6 +37,9 @@ class HostKeyPair {
// Make a new copy of private key. Caller will own the generated private key.
crypto::RSAPrivateKey* CopyPrivateKey() const;
+
+ // Generates self-signed certificate using the key pair. Returns empty string
+ // if cert generation fails (e.g. it may happen when the system clock is off).
std::string GenerateCertificate() const;
private: