Skip to content
Snippets Groups Projects
Commit 6724ece9 authored by Donna Dionne's avatar Donna Dionne
Browse files

Merge branch 'master' of github.com:google/grpc into go-auth-tests

parents fc975090 783eddfd
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
#include "src/core/support/string.h" #include "src/core/support/string.h"
#include "src/core/surface/lame_client.h" #include "src/core/surface/lame_client.h"
#include "src/core/transport/chttp2/alpn.h" #include "src/core/transport/chttp2/alpn.h"
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/host_port.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/slice_buffer.h> #include <grpc/support/slice_buffer.h>
#include "src/core/tsi/fake_transport_security.h" #include "src/core/tsi/fake_transport_security.h"
...@@ -443,6 +445,7 @@ grpc_security_status grpc_ssl_channel_security_context_create( ...@@ -443,6 +445,7 @@ grpc_security_status grpc_ssl_channel_security_context_create(
size_t i; size_t i;
const unsigned char *pem_root_certs; const unsigned char *pem_root_certs;
size_t pem_root_certs_size; size_t pem_root_certs_size;
char *port;
for (i = 0; i < num_alpn_protocols; i++) { for (i = 0; i < num_alpn_protocols; i++) {
alpn_protocol_strings[i] = alpn_protocol_strings[i] =
...@@ -468,9 +471,8 @@ grpc_security_status grpc_ssl_channel_security_context_create( ...@@ -468,9 +471,8 @@ grpc_security_status grpc_ssl_channel_security_context_create(
c->base.base.url_scheme = GRPC_SSL_URL_SCHEME; c->base.base.url_scheme = GRPC_SSL_URL_SCHEME;
c->base.request_metadata_creds = grpc_credentials_ref(request_metadata_creds); c->base.request_metadata_creds = grpc_credentials_ref(request_metadata_creds);
c->base.check_call_host = ssl_channel_check_call_host; c->base.check_call_host = ssl_channel_check_call_host;
if (target_name != NULL) { gpr_split_host_port(target_name, &c->target_name, &port);
c->target_name = gpr_strdup(target_name); gpr_free(port);
}
if (overridden_target_name != NULL) { if (overridden_target_name != NULL) {
c->overridden_target_name = gpr_strdup(overridden_target_name); c->overridden_target_name = gpr_strdup(overridden_target_name);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment