|
|
|
@ -70,9 +70,9 @@ static void alts_channel_add_handshakers( |
|
|
|
|
auto c = reinterpret_cast<grpc_alts_channel_security_connector*>(sc); |
|
|
|
|
grpc_alts_credentials* creds = |
|
|
|
|
reinterpret_cast<grpc_alts_credentials*>(c->base.channel_creds); |
|
|
|
|
GPR_ASSERT(alts_tsi_handshaker_create( |
|
|
|
|
creds->options, c->target_name, creds->handshaker_service_url, |
|
|
|
|
true, sc->base.interested_parties, &handshaker) == TSI_OK); |
|
|
|
|
GPR_ASSERT(alts_tsi_handshaker_create(creds->options, c->target_name, |
|
|
|
|
creds->handshaker_service_url, true, |
|
|
|
|
&handshaker) == TSI_OK); |
|
|
|
|
grpc_handshake_manager_add(handshake_manager, grpc_security_handshaker_create( |
|
|
|
|
handshaker, &sc->base)); |
|
|
|
|
} |
|
|
|
@ -84,9 +84,9 @@ static void alts_server_add_handshakers( |
|
|
|
|
auto c = reinterpret_cast<grpc_alts_server_security_connector*>(sc); |
|
|
|
|
grpc_alts_server_credentials* creds = |
|
|
|
|
reinterpret_cast<grpc_alts_server_credentials*>(c->base.server_creds); |
|
|
|
|
GPR_ASSERT(alts_tsi_handshaker_create( |
|
|
|
|
creds->options, nullptr, creds->handshaker_service_url, false, |
|
|
|
|
sc->base.interested_parties, &handshaker) == TSI_OK); |
|
|
|
|
GPR_ASSERT(alts_tsi_handshaker_create(creds->options, nullptr, |
|
|
|
|
creds->handshaker_service_url, false, |
|
|
|
|
&handshaker) == TSI_OK); |
|
|
|
|
grpc_handshake_manager_add(handshake_manager, grpc_security_handshaker_create( |
|
|
|
|
handshaker, &sc->base)); |
|
|
|
|
} |
|
|
|
|