Permalink
Browse files

Implemented TLS wihout Client Auth for Database Connections, Client A…

…uth only requires minor changes.
  • Loading branch information...
RyanTopps committed Jan 4, 2017
1 parent 355d08a commit 0eecdd0ca534dbf61ff4b6fd441317a21eaf731a
View
@@ -1,5 +1,5 @@
-#:C:\Git\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj
-#:C:\Git\OrientDB-NET.binary\src\Orient.Console\Orient.Console.xproj
-C:\Git\OrientDB-NET.binary\src\Orient.Console\Orient.Console.xproj|C:\Git\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj
-#:C:\Git\OrientDB-NET.binary\src\Orient.Nunit.Test\Orient.Nunit.Test.xproj
-C:\Git\OrientDB-NET.binary\src\Orient.Nunit.Test\Orient.Nunit.Test.xproj|C:\Git\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj
+#:C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj
+#:C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\Orient.Nunit.Test\Orient.Nunit.Test.xproj
+C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\Orient.Nunit.Test\Orient.Nunit.Test.xproj|C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj
+#:C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\Orient.Console\Orient.Console.xproj
+C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\Orient.Console\Orient.Console.xproj|C:\Users\Ryan\Documents\GitHub\OrientDB-NET.binary\src\OrientDB-Net.binary.Innov8tive\OrientDB-Net.binary.Innov8tive.xproj

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -4,6 +4,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Security.Cryptography.X509Certificates;
using Orient.Client.API;
using Orient.Client.API.Query;
using Orient.Client.API.Query.Interfaces;
@@ -58,7 +59,11 @@ public ODatabase(string hostName, int port, string databaseName, ODatabaseType t
_connectionPool = new ConnectionPool(hostName, port, databaseName, type, userName, userPassword);
ClientCache = new ConcurrentDictionary<ORID, ODocument>();
}
-
+ public ODatabase(string hostName, int port, string databaseName, ODatabaseType type, string userName, string userPassword, X509Certificate2Collection sslCerts)
+ {
+ _connectionPool = new ConnectionPool(hostName, port, databaseName, type, userName, userPassword, sslCerts);
+ ClientCache = new ConcurrentDictionary<ORID, ODocument>();
+ }
public ODatabase(string hostName, int port, string databaseName, ODatabaseType type, string userName, string userPassword, string poolAlias)
{
_connectionPool = new ConnectionPool(hostName, port, databaseName, type, userName, userPassword, poolAlias);
Oops, something went wrong.

0 comments on commit 0eecdd0

Please sign in to comment.