File tree 2 files changed +6
-0
lines changed
include/ydb-cpp-sdk/client/draft 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class TConnectionParams: private TCommonClientSettings {
51
51
52
52
const std::string& GetDiscoveryEndpoint () const ;
53
53
const std::string& GetDatabase () const ;
54
+ bool GetEnableSsl () const ;
54
55
55
56
ECredentials GetCredentials () const ;
56
57
const TStaticCredentials& GetStaticCredentials () const ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ namespace NReplication {
19
19
TConnectionParams::TConnectionParams (const Ydb::Replication::ConnectionParams& params) {
20
20
DiscoveryEndpoint (params.endpoint ());
21
21
Database (params.database ());
22
+ SslCredentials (params.enable_ssl ());
22
23
23
24
switch (params.credentials_case ()) {
24
25
case Ydb::Replication::ConnectionParams::kStaticCredentials :
@@ -47,6 +48,10 @@ const std::string& TConnectionParams::GetDatabase() const {
47
48
return *Database_;
48
49
}
49
50
51
+ bool TConnectionParams::GetEnableSsl () const {
52
+ return SslCredentials_->IsEnabled ;
53
+ }
54
+
50
55
TConnectionParams::ECredentials TConnectionParams::GetCredentials () const {
51
56
return static_cast <ECredentials>(Credentials_.index ());
52
57
}
You can’t perform that action at this time.
0 commit comments