Skip to content

Commit

Permalink
Remove use of mutable_c_credentials_options.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewstevenson88 committed Jan 30, 2024
1 parent 14b0064 commit 70bca82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/common/tls_credentials_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ void TlsCredentialsOptions::set_certificate_verifier(
}

void TlsCredentialsOptions::set_min_tls_version(grpc_tls_version tls_version) {
grpc_tls_credentials_options* options = mutable_c_credentials_options();
grpc_tls_credentials_options* options = c_credentials_options();
GPR_ASSERT(options != nullptr);
grpc_tls_credentials_options_set_min_tls_version(options, tls_version);
}

void TlsCredentialsOptions::set_max_tls_version(grpc_tls_version tls_version) {
grpc_tls_credentials_options* options = mutable_c_credentials_options();
grpc_tls_credentials_options* options = c_credentials_options();
GPR_ASSERT(options != nullptr);
grpc_tls_credentials_options_set_max_tls_version(options, tls_version);
}
Expand Down

0 comments on commit 70bca82

Please sign in to comment.