Skip to content
Snippets Groups Projects
Unverified Commit a6507e0b authored by Jiangtao Li's avatar Jiangtao Li Committed by GitHub
Browse files

Merge pull request #21333 from jiangtaoli2016/url_scheme

Add url scheme to ALTS security connector to be consistent with Java and Go
parents 29bcc3f7 735d2281
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