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

Unified Diff: remoting/host/host_key_pair.h

Issue 10919277: Handle certificate generation errors in chromoting host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | remoting/host/host_key_pair.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_key_pair.h
diff --git a/remoting/host/host_key_pair.h b/remoting/host/host_key_pair.h
index 8af41d931532f0305a94300fe7c7af25c6fe2d28..f7aa651a8d3d3f1db33e375fcb8ecfb957342ad3 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:
« no previous file with comments | « no previous file | remoting/host/host_key_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698