зеркало из https://github.com/mozilla/gecko-dev.git
bug 986171 - mozilla::pkix: telemetry for what cert validation library is in use r=cviecco
This commit is contained in:
Родитель
879c1d85a0
Коммит
744496ea74
|
@ -982,6 +982,18 @@ void nsNSSComponent::setValidationOptions(bool isInitialSetting,
|
|||
#endif
|
||||
}
|
||||
|
||||
if (isInitialSetting) {
|
||||
if (certVerifierImplementation == CertVerifier::classic) {
|
||||
Telemetry::Accumulate(Telemetry::CERT_VALIDATION_LIBRARY, 1);
|
||||
#ifndef NSS_NO_LIBPKIX
|
||||
} else if (certVerifierImplementation == CertVerifier::libpkix) {
|
||||
Telemetry::Accumulate(Telemetry::CERT_VALIDATION_LIBRARY, 2);
|
||||
#endif
|
||||
} 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;
|
||||
|
|
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче