Michael Ershov | 1c50ac95 | 2020-12-02 21:01:17 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors. All rights reserved. |
| 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 CRYPTO_CHAPS_SUPPORT_H_ |
| 6 | #define CRYPTO_CHAPS_SUPPORT_H_ |
| 7 | |
| 8 | #include <secmodt.h> |
| 9 | |
| 10 | #include "crypto/crypto_export.h" |
| 11 | |
| 12 | namespace crypto { |
| 13 | |
| 14 | // Loads chaps module for this NSS session. |
| 15 | CRYPTO_EXPORT SECMODModule* LoadChaps(); |
| 16 | |
| 17 | // Returns true if chaps is the module to which |slot| is attached. |
| 18 | CRYPTO_EXPORT bool IsSlotProvidedByChaps(PK11SlotInfo* slot); |
| 19 | |
| 20 | } // namespace crypto |
| 21 | |
| 22 | #endif // CRYPTO_CHAPS_SUPPORT_H_ |