ssl_pin_verifier.h 772 B

12345678910111213141516171819202122232425
  1. /*
  2. ssl_pin_verifier.h
  3. TrustKit
  4. Copyright 2015 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. #import "../TSKTrustDecision.h"
  9. #if __has_feature(modules)
  10. @import Foundation;
  11. #else
  12. #import <Foundation/Foundation.h>
  13. #endif
  14. @class TSKSPKIHashCache;
  15. // Validate that the server trust contains at least one of the know/expected pins
  16. TSKTrustEvaluationResult verifyPublicKeyPin(SecTrustRef _Nonnull serverTrust,
  17. NSString * _Nonnull serverHostname,
  18. NSSet<NSData *> * _Nonnull knownPins,
  19. TSKSPKIHashCache * _Nullable hashCache);