Skip to content
Snippets Groups Projects
Commit 735d2281 authored by jiangtaoli2016's avatar jiangtaoli2016
Browse files

Add url scheme to ALTS security connector

parent a02d6b9b
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class grpc_alts_channel_security_connector final ...@@ -69,7 +69,7 @@ class grpc_alts_channel_security_connector final
grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds,
grpc_core::RefCountedPtr<grpc_call_credentials> request_metadata_creds, grpc_core::RefCountedPtr<grpc_call_credentials> request_metadata_creds,
const char* target_name) const char* target_name)
: grpc_channel_security_connector(/*url_scheme=*/nullptr, : grpc_channel_security_connector(GRPC_ALTS_URL_SCHEME,
std::move(channel_creds), std::move(channel_creds),
std::move(request_metadata_creds)), std::move(request_metadata_creds)),
target_name_(gpr_strdup(target_name)) {} target_name_(gpr_strdup(target_name)) {}
...@@ -129,7 +129,7 @@ class grpc_alts_server_security_connector final ...@@ -129,7 +129,7 @@ class grpc_alts_server_security_connector final
public: public:
grpc_alts_server_security_connector( grpc_alts_server_security_connector(
grpc_core::RefCountedPtr<grpc_server_credentials> server_creds) grpc_core::RefCountedPtr<grpc_server_credentials> server_creds)
: grpc_server_security_connector(/*url_scheme=*/nullptr, : grpc_server_security_connector(GRPC_ALTS_URL_SCHEME,
std::move(server_creds)) {} std::move(server_creds)) {}
~grpc_alts_server_security_connector() override = default; ~grpc_alts_server_security_connector() override = default;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h" #include "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h"
#define GRPC_ALTS_TRANSPORT_SECURITY_TYPE "alts" #define GRPC_ALTS_TRANSPORT_SECURITY_TYPE "alts"
#define GRPC_ALTS_URL_SCHEME "https"
/** /**
* This method creates an ALTS channel security connector. * This method creates an ALTS channel security connector.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment