mirror of https://github.com/grpc/grpc-node.git
Also adding a credentials type to the plugin API.
The purpose of this is to be able to install a composition policy that describes which types are incompatible and that will be enforced during call creds composition. If this functionality is wanted it will be done in an additive function in the API like : void grpc_call_credentials_set_composite_policy( grpc_call_credentials_composite_policy policy);
This commit is contained in:
parent
f011452c08
commit
b6d16885ef
|
@ -162,6 +162,7 @@ NAN_METHOD(CallCredentials::CreateFromPlugin) {
|
|||
plugin.get_metadata = plugin_get_metadata;
|
||||
plugin.destroy = plugin_destroy_state;
|
||||
plugin.state = reinterpret_cast<void*>(state);
|
||||
plugin.type = "";
|
||||
grpc_call_credentials *creds = grpc_metadata_credentials_create_from_plugin(
|
||||
plugin, NULL);
|
||||
info.GetReturnValue().Set(WrapStruct(creds));
|
||||
|
|
Loading…
Reference in New Issue