// // // Copyright 2018 gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // #ifndef GRPC_SRC_CORE_LIB_SECURITY_CREDENTIALS_ALTS_GRPC_ALTS_CREDENTIALS_OPTIONS_H #define GRPC_SRC_CORE_LIB_SECURITY_CREDENTIALS_ALTS_GRPC_ALTS_CREDENTIALS_OPTIONS_H #include <grpc/support/port_platform.h> #include <grpc/grpc_security.h> #include "src/core/tsi/alts/handshaker/transport_security_common_api.h" // V-table for grpc_alts_credentials_options grpc_alts_credentials_options_vtable; struct grpc_alts_credentials_options { … }; target_service_account; /// /// Main struct for ALTS client credentials options. The options contain a /// a list of target service accounts (if specified) used for secure naming /// check. /// grpc_alts_credentials_client_options; /// /// Main struct for ALTS server credentials options. The options currently /// do not contain any server-specific fields. /// grpc_alts_credentials_server_options; /// /// This method performs a deep copy on grpc_alts_credentials_options instance. /// ///- options: a grpc_alts_credentials_options instance that needs to be copied. /// /// It returns a new grpc_alts_credentials_options instance on success and NULL /// on failure. /// grpc_alts_credentials_options* grpc_alts_credentials_options_copy( const grpc_alts_credentials_options* options); #endif // GRPC_SRC_CORE_LIB_SECURITY_CREDENTIALS_ALTS_GRPC_ALTS_CREDENTIALS_OPTIONS_H