1 // Copyright 2017 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_CERT_KNOWN_ROOTS_H_ 6 #define NET_CERT_KNOWN_ROOTS_H_ 7 8 #include <stdint.h> 9 10 #include "build/build_config.h" 11 #include "net/base/net_export.h" 12 13 namespace net { 14 15 class HashValue; 16 17 // Returns a value within the NetRootCert histogram enum indicating the 18 // ID of the trust anchor whose subjectPublicKeyInfo hash is |spki_hash|, or 19 // 0 if it cannot be found. 20 NET_EXPORT int32_t 21 GetNetTrustAnchorHistogramIdForSPKI(const HashValue& spki_hash); 22 23 } // namespace net 24 25 #endif // NET_CERT_KNOWN_ROOTS_H_ 26