aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+Tests.h
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-08-01 23:19:11 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-08-06 11:46:02 -0700
commitb2bd06775e255ebf7de96eb00a5b1738311c682e (patch)
tree092654c01379891297d64ec60873766195051a56 /src/objective-c/GRPCClient/GRPCCall+Tests.h
parent82b68d8a97e1dc506cfd3a7233883e27d5693261 (diff)
Require very explicit registration of non-SSL hosts.
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+Tests.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Tests.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Tests.h b/src/objective-c/GRPCClient/GRPCCall+Tests.h
index 3d617b05d9..981b154b40 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Tests.h
+++ b/src/objective-c/GRPCClient/GRPCCall+Tests.h
@@ -33,6 +33,8 @@
#import "GRPCCall.h"
+// Methods to let tune down the security of gRPC connections for specific hosts. These shouldn't be
+// used in releases, but are sometimes needed for testing.
@interface GRPCCall (Tests)
// Establish all SSL connections to the provided host using the passed SSL target name and the root
@@ -42,4 +44,6 @@
testName:(NSString *)testName
forHost:(NSString *)host;
+// Establish all connections to the provided host using cleartext instead of SSL.
++ (void)useInsecureConnectionsForHost:(NSString *)host;
@end