From b6d16885ef970faa237d97f8374d0cf0659fc655 Mon Sep 17 00:00:00 2001 From: Julien Boeuf Date: Thu, 19 Nov 2015 22:00:30 -0800 Subject: [PATCH] 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); --- ext/call_credentials.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/call_credentials.cc b/ext/call_credentials.cc index d0d7140b..8cbfb1eb 100644 --- a/ext/call_credentials.cc +++ b/ext/call_credentials.cc @@ -162,6 +162,7 @@ NAN_METHOD(CallCredentials::CreateFromPlugin) { plugin.get_metadata = plugin_get_metadata; plugin.destroy = plugin_destroy_state; plugin.state = reinterpret_cast(state); + plugin.type = ""; grpc_call_credentials *creds = grpc_metadata_credentials_create_from_plugin( plugin, NULL); info.GetReturnValue().Set(WrapStruct(creds));