summaryrefslogtreecommitdiffstats
path: root/src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h')
-rw-r--r--src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h b/src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h
new file mode 100644
index 000000000..1fb3a292d
--- /dev/null
+++ b/src/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLSessionDelegate.h
@@ -0,0 +1,23 @@
+//
+// ISPPinnedNSURLSessionDelegate.h
+// SSLCertificatePinning
+//
+// Created by Alban Diquet on 1/14/14.
+// Copyright (c) 2014 iSEC Partners. All rights reserved.
+//
+
+
+/** Convenience class to automatically perform certificate pinning for NSURLSession.
+
+ ISPPinnedNSURLSessionDelegate is designed to be subclassed in order to
+ implement an NSURLSession class. The
+ URLSession:didReceiveChallenge:completionHandler: method it implements
+ will automatically validate that at least one the certificates pinned to the domain the
+ connection is accessing is part of the server's certificate chain.
+
+ */
+@interface ISPPinnedNSURLSessionDelegate : NSObject
+
+- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler;
+
+@end