verification.py 796 B

12345678910111213141516171819202122232425262728
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import annotations
  5. import typing
  6. from cryptography.hazmat.bindings._rust import x509 as rust_x509
  7. from cryptography.x509.general_name import DNSName, IPAddress
  8. __all__ = [
  9. "ClientVerifier",
  10. "PolicyBuilder",
  11. "ServerVerifier",
  12. "Store",
  13. "Subject",
  14. "VerificationError",
  15. "VerifiedClient",
  16. ]
  17. Store = rust_x509.Store
  18. Subject = typing.Union[DNSName, IPAddress]
  19. VerifiedClient = rust_x509.VerifiedClient
  20. ClientVerifier = rust_x509.ClientVerifier
  21. ServerVerifier = rust_x509.ServerVerifier
  22. PolicyBuilder = rust_x509.PolicyBuilder
  23. VerificationError = rust_x509.VerificationError