TSKPinningValidator_Private.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. TSKPinningValidator_Private.h
  3. TrustKit
  4. Copyright 2017 The TrustKit Project Authors
  5. Licensed under the MIT license, see associated LICENSE file for terms.
  6. See AUTHORS file for the list of project authors.
  7. */
  8. NS_ASSUME_NONNULL_BEGIN
  9. /* Methods that are internal to TrustKit */
  10. @interface TSKPinningValidator (Internal)
  11. /**
  12. Initialize an instance of TSKPinningValidator.
  13. @param domainPinningPolicies A dictionnary of domains and the corresponding pinning policy.
  14. @param hashCache The hash cache to use. If nil, no caching is performed, performance may suffer.
  15. @param ignorePinsForUserTrustAnchors Set to true to ignore the trust anchors in the user trust store
  16. @param validationCallbackQueue The queue used when invoking the validationResultHandler
  17. @param validationCallback The callback invoked with validation results
  18. @return Initialized instance
  19. */
  20. - (instancetype _Nullable)initWithDomainPinningPolicies:(NSDictionary<NSString *, TKSDomainPinningPolicy *> *)domainPinningPolicies
  21. hashCache:(TSKSPKIHashCache *)hashCache
  22. ignorePinsForUserTrustAnchors:(BOOL)ignorePinsForUserTrustAnchors
  23. validationCallbackQueue:(dispatch_queue_t)validationCallbackQueue
  24. validationCallback:(TSKPinningValidatorCallback)validationCallback;
  25. @end
  26. @interface TSKPinningValidatorResult (Internal)
  27. - (instancetype _Nullable)initWithServerHostname:(NSString *)serverHostname
  28. serverTrust:(SecTrustRef)serverTrust
  29. validationResult:(TSKTrustEvaluationResult)validationResult
  30. finalTrustDecision:(TSKTrustDecision)finalTrustDecision
  31. validationDuration:(NSTimeInterval)validationDuration;
  32. @end
  33. NS_ASSUME_NONNULL_END