• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 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_INTERNAL_SYSTEM_TRUST_STORE_NSS_H_
6 #define NET_CERT_INTERNAL_SYSTEM_TRUST_STORE_NSS_H_
7 
8 #include "crypto/scoped_nss_types.h"
9 #include "net/base/net_export.h"
10 #include "net/cert/internal/system_trust_store.h"
11 
12 namespace net {
13 
14 // Create a SystemTrustStore that will accept trust for:
15 // (*) Chrome Root Store certificates
16 // (*) certificates stored on the |user_slot_restriction| slot.
17 NET_EXPORT std::unique_ptr<SystemTrustStore>
18 CreateSslSystemTrustStoreChromeRootWithUserSlotRestriction(
19     std::unique_ptr<TrustStoreChrome> chrome_root,
20     crypto::ScopedPK11Slot user_slot_restriction);
21 
22 }  // namespace net
23 
24 #endif  // NET_CERT_INTERNAL_SYSTEM_TRUST_STORE_NSS_H_
25