bug 807435 - telemetry for ssl key exchange algorithm r=bsmith r=honzab

This commit is contained in:
Patrick McManus 2012-11-22 11:43:27 -05:00
Родитель 763e59f9fd
Коммит 338f6b9d27
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -978,6 +978,15 @@ void HandshakeCallback(PRFileDesc* fd, void* client_data) {
// 0=ssl3, 1=tls1, 2=tls1.1, 3=tls1.2
unsigned int versionEnum = channelInfo.protocolVersion & 0xFF;
Telemetry::Accumulate(Telemetry::SSL_HANDSHAKE_VERSION, versionEnum);
SSLCipherSuiteInfo cipherInfo;
if (SSL_GetCipherSuiteInfo(channelInfo.cipherSuite, &cipherInfo,
sizeof (cipherInfo)) == SECSuccess) {
// keyExchange null=0, rsa=1, dh=2, fortezza=3, ecdh=4
Telemetry::Accumulate(Telemetry::SSL_KEY_EXCHANGE_ALGORITHM,
cipherInfo.keaType);
}
}
infoObject->SetHandshakeCompleted();
}

Просмотреть файл

@ -739,6 +739,11 @@
"n_buckets": 200,
"description": "ms elapsed time of OCSP etc.. that failed"
},
"SSL_KEY_EXCHANGE_ALGORITHM": {
"kind": "enumerated",
"n_values": 16,
"description": "SSL Handshake Key Exchange Algorithm (null=0, rsa=1, dh=2, fortezza=3, ecdh=4)"
},
"WEBSOCKETS_HANDSHAKE_TYPE": {
"kind": "enumerated",
"n_values": 16,