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
5from __future__ import annotations
6
7import typing
8
9from cryptography.hazmat.bindings._rust import x509 as rust_x509
10from cryptography.x509.general_name import DNSName, IPAddress
11
12__all__ = [
13 "ClientVerifier",
14 "Criticality",
15 "ExtensionPolicy",
16 "Policy",
17 "PolicyBuilder",
18 "ServerVerifier",
19 "Store",
20 "Subject",
21 "VerificationError",
22 "VerifiedClient",
23]
24
25Store = rust_x509.Store
26Subject = typing.Union[DNSName, IPAddress]
27VerifiedClient = rust_x509.VerifiedClient
28ClientVerifier = rust_x509.ClientVerifier
29ServerVerifier = rust_x509.ServerVerifier
30PolicyBuilder = rust_x509.PolicyBuilder
31Policy = rust_x509.Policy
32ExtensionPolicy = rust_x509.ExtensionPolicy
33Criticality = rust_x509.Criticality
34VerificationError = rust_x509.VerificationError