Mercurial > hg > orthanc-databases
diff Framework/PostgreSQL/PostgreSQLParameters.h @ 80:16df1a6ea452 db-changes
Fix issue #105 (Unable to connect to PostgreSQL database using SSL)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jan 2019 12:53:00 +0100 |
parents | 714c5d2bee76 |
children | 4cd7e45b671e |
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLParameters.h Tue Jan 08 14:37:41 2019 +0100 +++ b/Framework/PostgreSQL/PostgreSQLParameters.h Thu Jan 10 12:53:00 2019 +0100 @@ -38,6 +38,7 @@ std::string password_; std::string database_; std::string uri_; + bool ssl_; bool lock_; void Reset(); @@ -91,6 +92,16 @@ return database_; } + void SetSsl(bool ssl) + { + ssl_ = ssl; + } + + bool IsSsl() const + { + return ssl_; + } + void SetLock(bool lock) { lock_ = lock;