bug 986171 - mozilla::pkix: telemetry for what cert validation library is in use r=cviecco

This commit is contained in:
David Keeler 2014-03-25 13:43:01 -07:00
parent b72a98810f
commit d56c7b6534
2 changed files with 16 additions and 0 deletions

View File

@ -982,6 +982,16 @@ void nsNSSComponent::setValidationOptions(bool isInitialSetting,
#endif
}
if (isInitialSetting) {
if (certVerifierImplementation == CertVerifier::classic) {
Telemetry::Accumulate(Telemetry::CERT_VALIDATION_LIBRARY, 1);
} else if (certVerifierImplementation == CertVerifier::libpkix) {
Telemetry::Accumulate(Telemetry::CERT_VALIDATION_LIBRARY, 2);
} else if (certVerifierImplementation == CertVerifier::mozillapkix) {
Telemetry::Accumulate(Telemetry::CERT_VALIDATION_LIBRARY, 3);
}
}
CertVerifier::ocsp_download_config odc;
CertVerifier::ocsp_strict_config osc;
CertVerifier::ocsp_get_config ogc;

View File

@ -1210,6 +1210,12 @@
"extended_statistics_ok": true,
"description": "ms elapsed time of OCSP etc.. that failed"
},
"CERT_VALIDATION_LIBRARY": {
"expires_in_version": "never",
"kind": "enumerated",
"n_values": 4,
"description": "Which certificate validation library is in use? (1=classic, 2=libpkix, 3=mozilla::pkix)"
},
"SSL_KEY_EXCHANGE_ALGORITHM_FULL": {
"expires_in_version": "never",
"kind": "enumerated",