Merge pull request #16671 from grpc/security_func_signature

Update function signature in grpc_security
pull/16648/head^2
Muxi Yan 6 years ago committed by GitHub
commit 12f42765cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc
  2. 3
      src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc

@ -72,7 +72,8 @@ static void target_service_account_destroy(
static const grpc_alts_credentials_options_vtable vtable = { static const grpc_alts_credentials_options_vtable vtable = {
alts_client_options_copy, alts_client_options_destroy}; alts_client_options_copy, alts_client_options_destroy};
grpc_alts_credentials_options* grpc_alts_credentials_client_options_create() { grpc_alts_credentials_options* grpc_alts_credentials_client_options_create(
void) {
auto client_options = static_cast<grpc_alts_credentials_client_options*>( auto client_options = static_cast<grpc_alts_credentials_client_options*>(
gpr_zalloc(sizeof(grpc_alts_credentials_client_options))); gpr_zalloc(sizeof(grpc_alts_credentials_client_options)));
client_options->base.vtable = &vtable; client_options->base.vtable = &vtable;

@ -36,7 +36,8 @@ static void alts_server_options_destroy(
static const grpc_alts_credentials_options_vtable vtable = { static const grpc_alts_credentials_options_vtable vtable = {
alts_server_options_copy, alts_server_options_destroy}; alts_server_options_copy, alts_server_options_destroy};
grpc_alts_credentials_options* grpc_alts_credentials_server_options_create() { grpc_alts_credentials_options* grpc_alts_credentials_server_options_create(
void) {
grpc_alts_credentials_server_options* server_options = grpc_alts_credentials_server_options* server_options =
static_cast<grpc_alts_credentials_server_options*>( static_cast<grpc_alts_credentials_server_options*>(
gpr_zalloc(sizeof(*server_options))); gpr_zalloc(sizeof(*server_options)));

Loading…
Cancel
Save