ocsp.pyi 868 B

1234567891011121314151617181920212223
  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 cryptography.hazmat.primitives import hashes
  5. from cryptography.hazmat.primitives.asymmetric.types import PrivateKeyTypes
  6. from cryptography.x509 import ocsp
  7. class OCSPRequest: ...
  8. class OCSPResponse: ...
  9. class OCSPSingleResponse: ...
  10. def load_der_ocsp_request(data: bytes) -> ocsp.OCSPRequest: ...
  11. def load_der_ocsp_response(data: bytes) -> ocsp.OCSPResponse: ...
  12. def create_ocsp_request(
  13. builder: ocsp.OCSPRequestBuilder,
  14. ) -> ocsp.OCSPRequest: ...
  15. def create_ocsp_response(
  16. status: ocsp.OCSPResponseStatus,
  17. builder: ocsp.OCSPResponseBuilder | None,
  18. private_key: PrivateKeyTypes | None,
  19. hash_algorithm: hashes.HashAlgorithm | None,
  20. ) -> ocsp.OCSPResponse: ...