OCSP.h 764 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // OCSP.h
  3. // TunneledWebRequest
  4. //
  5. /*
  6. Licensed under Creative Commons Zero (CC0).
  7. https://creativecommons.org/publicdomain/zero/1.0/
  8. */
  9. // NOTE: this file is shared by TunneledWebRequest and TunneledWebView
  10. #import <Foundation/Foundation.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface OCSP : NSObject
  13. /*
  14. * Check in SecTrustRef (X.509 cert) for Online Certificate Status Protocol (1.3.6.1.5.5.7.48.1)
  15. * authority information access method. This is found in the
  16. * Certificate Authority Information Access (1.3.6.1.5.5.7.1.1) X.509v3 extension.
  17. *
  18. * X.509 Authority Information Access: https://tools.ietf.org/html/rfc2459#section-4.2.2.1
  19. */
  20. + (NSArray<NSURL*>*_Nullable)ocspURLs:(SecTrustRef)secTrustRef error:(NSError**)error;
  21. @end
  22. NS_ASSUME_NONNULL_END