pkixtestnss.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. */
  6. // This file provides some implementation-specific test utilities. This is only
  7. // necessary because some PSM xpcshell test utilities overlap in functionality
  8. // with these test utilities, so the underlying implementation is shared.
  9. #ifndef mozilla_pkix_test_pkixtestnss_h
  10. #define mozilla_pkix_test_pkixtestnss_h
  11. #include <keyhi.h>
  12. #include <keythi.h>
  13. #include "nss_scoped_ptrs.h"
  14. #include "pkix/test/pkixtestutil.h"
  15. namespace mozilla {
  16. namespace pkix {
  17. namespace test {
  18. TestKeyPair* CreateTestKeyPair(const TestPublicKeyAlgorithm publicKeyAlg,
  19. const ScopedSECKEYPublicKey& publicKey,
  20. const ScopedSECKEYPrivateKey& privateKey);
  21. }
  22. }
  23. } // namespace mozilla::pkix::test
  24. #endif // mozilla_pkix_test_pkixtestnss_h