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

Unified Diff: webrtc/base/sslstreamadapter.h

Issue 2167363002: Log how often DTLS negotiation failed because of incompatible ciphersuites. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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
Index: webrtc/base/sslstreamadapter.h
diff --git a/webrtc/base/sslstreamadapter.h b/webrtc/base/sslstreamadapter.h
index ba60ce3da09b32ce28b832597784cdaa78e0866a..341510fa00f4890794f1f53ed9c2b9ee02906b9c 100644
--- a/webrtc/base/sslstreamadapter.h
+++ b/webrtc/base/sslstreamadapter.h
@@ -76,6 +76,9 @@ enum SSLProtocolVersion {
// Errors for Read -- in the high range so no conflict with OpenSSL.
enum { SSE_MSG_TRUNC = 0xff0001 };
+// Used to back UMA histogram value.
honghaiz3 2016/07/22 21:35:26 => "Used to send back UMA histogram values." or so
Zhi Huang 2016/07/25 17:24:28 Done.
+enum class SSLHandshakeError { ERR_INCOMPATIBLE_CIPHERSUITE, ERR_OTHER };
skvlad 2016/07/22 01:25:14 Would it be better to make ERR_OTHER the first val
Zhi Huang 2016/07/25 17:24:28 Yes, this is better!
+
class SSLStreamAdapter : public StreamAdapterInterface {
public:
// Instantiate an SSLStreamAdapter wrapping the given stream,
@@ -207,6 +210,8 @@ class SSLStreamAdapter : public StreamAdapterInterface {
// depending on specific SSL implementation.
static std::string SslCipherSuiteToName(int cipher_suite);
+ sigslot::signal1<SSLHandshakeError> SignalSSLHandshakeError;
+
private:
// If true, the server certificate need not match the configured
// server_name, and in fact missing certificate authority and other

Powered by Google App Engine
This is Rietveld 408576698