diff --git a/src/cpp/common/tls_credentials_options.cc b/src/cpp/common/tls_credentials_options.cc index 760ae7f491b..830c1a4c8dd 100644 --- a/src/cpp/common/tls_credentials_options.cc +++ b/src/cpp/common/tls_credentials_options.cc @@ -119,8 +119,8 @@ TlsCredentialReloadConfig::TlsCredentialReloadConfig( cancel_ = cancel; destruct_ = destruct; c_config_ = grpc_tls_credential_reload_config_create( - config_user_data_, &tls_credential_reload_config_c_schedule, - &tls_credential_reload_config_c_cancel, destruct_); + config_user_data_, &TlsCredentialReloadConfigCSchedule, + &TlsCredentialReloadConfigCCancel, destruct_); c_config_->set_context(static_cast(this)); } @@ -226,8 +226,8 @@ TlsServerAuthorizationCheckConfig::TlsServerAuthorizationCheckConfig( cancel_ = cancel; destruct_ = destruct; c_config_ = grpc_tls_server_authorization_check_config_create( - config_user_data_, &tls_server_authorization_check_config_c_schedule, - &tls_server_authorization_check_config_c_cancel, destruct_); + config_user_data_, &TlsServerAuthorizationCheckConfigCSchedule, + &TlsServerAuthorizationCheckConfigCCancel, destruct_); c_config_->set_context(static_cast(this)); } diff --git a/src/cpp/common/tls_credentials_options_util.cc b/src/cpp/common/tls_credentials_options_util.cc index 702f416d51a..14de025c075 100644 --- a/src/cpp/common/tls_credentials_options_util.cc +++ b/src/cpp/common/tls_credentials_options_util.cc @@ -75,7 +75,7 @@ std::shared_ptr ConvertToCppKeyMaterialsConfig( } /** The C schedule and cancel functions for the credential reload config. **/ -int tls_credential_reload_config_c_schedule( +int TlsCredentialReloadConfigCSchedule( void* config_user_data, grpc_tls_credential_reload_arg* arg) { TlsCredentialReloadConfig* cpp_config = static_cast(arg->config->context()); @@ -89,7 +89,7 @@ int tls_credential_reload_config_c_schedule( return schedule_output; } -void tls_credential_reload_config_c_cancel( +void TlsCredentialReloadConfigCCancel( void* config_user_data, grpc_tls_credential_reload_arg* arg) { TlsCredentialReloadConfig* cpp_config = static_cast(arg->config->context()); @@ -104,7 +104,7 @@ void tls_credential_reload_config_c_cancel( /** The C schedule and cancel functions for the server authorization check * config. **/ -int tls_server_authorization_check_config_c_schedule( +int TlsServerAuthorizationCheckConfigCSchedule( void* config_user_data, grpc_tls_server_authorization_check_arg* arg) { TlsServerAuthorizationCheckConfig* cpp_config = static_cast(arg->config->context()); @@ -119,7 +119,7 @@ int tls_server_authorization_check_config_c_schedule( return schedule_output; } -void tls_server_authorization_check_config_c_cancel( +void TlsServerAuthorizationCheckConfigCCancel( void* config_user_data, grpc_tls_server_authorization_check_arg* arg) { TlsServerAuthorizationCheckConfig* cpp_config = static_cast(arg->config->context()); diff --git a/src/cpp/common/tls_credentials_options_util.h b/src/cpp/common/tls_credentials_options_util.h index 8cdcf3bd851..6ce34be7ed8 100644 --- a/src/cpp/common/tls_credentials_options_util.h +++ b/src/cpp/common/tls_credentials_options_util.h @@ -36,16 +36,16 @@ std::shared_ptr ConvertToCppKeyMaterialsConfig( /** The following 4 functions convert the user-provided schedule or cancel * functions into C style schedule or cancel functions. **/ -int tls_credential_reload_config_c_schedule( +int TlsCredentialReloadConfigCSchedule( void* config_user_data, grpc_tls_credential_reload_arg* arg); -void tls_credential_reload_config_c_cancel(void* config_user_data, +void TlsCredentialReloadConfigCCancel(void* config_user_data, grpc_tls_credential_reload_arg* arg); -int tls_server_authorization_check_config_c_schedule( +int TlsServerAuthorizationCheckConfigCSchedule( void* config_user_data, grpc_tls_server_authorization_check_arg* arg); -void tls_server_authorization_check_config_c_cancel( +void TlsServerAuthorizationCheckConfigCCancel( void* config_user_data, grpc_tls_server_authorization_check_arg* arg); } // namespace experimental