Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
f82a30d9
Commit
f82a30d9
authored
10 years ago
by
Yang Gao
Browse files
Options
Downloads
Patches
Plain Diff
Use ssl name override if it's in the channel argument
parent
e0e8edfe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc++/channel_arguments.h
+1
-1
1 addition, 1 deletion
include/grpc++/channel_arguments.h
src/cpp/client/secure_credentials.cc
+2
-1
2 additions, 1 deletion
src/cpp/client/secure_credentials.cc
with
3 additions
and
2 deletions
include/grpc++/channel_arguments.h
+
1
−
1
View file @
f82a30d9
...
...
@@ -66,7 +66,7 @@ class ChannelArguments {
void
SetChannelArgs
(
grpc_channel_args
*
channel_args
)
const
;
private
:
friend
class
Channel
;
friend
class
SecureCredentials
;
friend
class
testing
::
ChannelArgumentsTest
;
// TODO(yangg) implement copy and assign
...
...
This diff is collapsed.
Click to expand it.
src/cpp/client/secure_credentials.cc
+
2
−
1
View file @
f82a30d9
...
...
@@ -54,7 +54,8 @@ class SecureCredentials GRPC_FINAL : public Credentials {
grpc_channel_args
channel_args
;
args
.
SetChannelArgs
(
&
channel_args
);
return
std
::
shared_ptr
<
ChannelInterface
>
(
new
Channel
(
target
,
args
.
GetSslTargetNameOverride
().
empty
()
?
target
:
args
.
GetSslTargetNameOverride
(),
grpc_secure_channel_create
(
c_creds_
,
target
.
c_str
(),
&
channel_args
)));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment