summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLConnectionDelegate.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLConnectionDelegate.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLConnectionDelegate.h b/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLConnectionDelegate.h
new file mode 100644
index 00000000..13537455
--- /dev/null
+++ b/web/server/h2o/libh2o/deps/ssl-conservatory/ios/SSLCertificatePinning/SSLCertificatePinning/ISPPinnedNSURLConnectionDelegate.h
@@ -0,0 +1,23 @@
+//
+// ISPPinnedNSURLConnectionDelegate.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 NSURLConnection.
+
+ ISPPinnedNSURLConnectionDelegate is designed to be subclassed in order to
+ implement an NSURLConnectionDelegate class. The
+ connection:willSendRequestForAuthenticationChallenge: 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 ISPPinnedNSURLConnectionDelegate : NSObject
+
+- (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
+
+@end