From 6774f5ae37a83ced71fb0e319f88f85382bd3404 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 8 Jun 2016 14:58:30 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/EndPointListener.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Net/EndPointListener.cs b/websocket-sharp/Net/EndPointListener.cs index e2b1b0bd..c8451a56 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -193,15 +193,15 @@ namespace WebSocketSharp.Net } private static X509Certificate2 getCertificate ( - int port, string certificateFolderPath, X509Certificate2 defaultCertificate + int port, string folderPath, X509Certificate2 defaultCertificate ) { - if (certificateFolderPath == null || certificateFolderPath.Length == 0) - certificateFolderPath = _defaultCertFolderPath; + if (folderPath == null || folderPath.Length == 0) + folderPath = _defaultCertFolderPath; try { - var cer = Path.Combine (certificateFolderPath, String.Format ("{0}.cer", port)); - var key = Path.Combine (certificateFolderPath, String.Format ("{0}.key", port)); + var cer = Path.Combine (folderPath, String.Format ("{0}.cer", port)); + var key = Path.Combine (folderPath, String.Format ("{0}.key", port)); if (File.Exists (cer) && File.Exists (key)) { var cert = new X509Certificate2 (cer); cert.PrivateKey = createRSAFromFile (key);