aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-18 23:00:08 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-18 23:00:08 -0800
commit680b53f7ad7c93947003dcf8d377f2b33c7623e9 (patch)
treef65b4e4658680e4cd4d74e60dfb9f50616865c60 /src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
parentf0cbcde73195b8e17130538c3479d4c0e3bcd2a2 (diff)
clang-format
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
index 2e7f1a0dbe..69f70de17d 100644
--- a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
+++ b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
@@ -29,9 +29,9 @@
}
+ (instancetype)factoryWithPEMRootCertificates:(NSString *)rootCerts
- privateKey:(NSString *)privateKey
- certChain:(NSString *)certChain
- error:(NSError **)errorPtr {
+ privateKey:(NSString *)privateKey
+ certChain:(NSString *)certChain
+ error:(NSError **)errorPtr {
return [[self alloc] initWithPEMRootCerts:rootCerts
privateKey:privateKey
certChain:certChain
@@ -50,9 +50,9 @@
}
- (instancetype)initWithPEMRootCerts:(NSString *)rootCerts
- privateKey:(NSString *)privateKey
- certChain:(NSString *)certChain
- error:(NSError **)errorPtr {
+ privateKey:(NSString *)privateKey
+ certChain:(NSString *)certChain
+ error:(NSError **)errorPtr {
static NSData *defaultRootsASCII;
static NSError *defaultRootsError;
static dispatch_once_t loading;
@@ -115,8 +115,7 @@
return self;
}
-- (grpc_channel *)createChannelWithHost:(NSString *)host
- channelArgs:(NSDictionary *)args {
+- (grpc_channel *)createChannelWithHost:(NSString *)host channelArgs:(NSDictionary *)args {
grpc_channel_args *coreChannelArgs = GRPCBuildChannelArgs([args copy]);
grpc_channel *unmanagedChannel =
grpc_secure_channel_create(_channelCreds, host.UTF8String, coreChannelArgs, NULL);