You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 line
958 B

  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. "Criticality",
  11. "ExtensionPolicy",
  12. "Policy",
  13. "PolicyBuilder",
  14. "ServerVerifier",
  15. "Store",
  16. "Subject",
  17. "VerificationError",
  18. "VerifiedClient",
  19. ]
  20. Store = rust_x509.Store
  21. Subject = typing.Union[DNSName, IPAddress]
  22. VerifiedClient = rust_x509.VerifiedClient
  23. ClientVerifier = rust_x509.ClientVerifier
  24. ServerVerifier = rust_x509.ServerVerifier
  25. PolicyBuilder = rust_x509.PolicyBuilder
  26. Policy = rust_x509.Policy
  27. ExtensionPolicy = rust_x509.ExtensionPolicy
  28. Criticality = rust_x509.Criticality
  29. VerificationError = rust_x509.VerificationError