Skip to content

Commit 453e2fa

Browse files
committed
dh2048Pem -> dhparam
1 parent 2ab709c commit 453e2fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public static void Main(string[] args)
9090
/* These paths should be changed for use */
9191
string fileCert = wolfssl.setPath("server-cert.pem");
9292
string fileKey = wolfssl.setPath("server-key.pem");
93-
StringBuilder dh2048Pem = new StringBuilder(wolfssl.setPath("dh2048.pem"));
93+
StringBuilder dhparam = new StringBuilder(wolfssl.setPath("dh2048.pem"));
9494

95-
if (fileCert == "" || fileKey == "" || dh2048Pem.Length == 0) {
95+
if (fileCert == "" || fileKey == "" || dhparam.Length == 0) {
9696
Console.WriteLine("Platform not supported.");
9797
return;
9898
}
@@ -190,7 +190,7 @@ public static void Main(string[] args)
190190
return;
191191
}
192192

193-
if (wolfssl.SetTmpDH_file(ssl, dh2048Pem, wolfssl.SSL_FILETYPE_PEM) != wolfssl.SUCCESS)
193+
if (wolfssl.SetTmpDH_file(ssl, dhparam, wolfssl.SSL_FILETYPE_PEM) != wolfssl.SUCCESS)
194194
{
195195
Console.WriteLine("Error in setting dh2048Pem");
196196
Console.WriteLine(wolfssl.get_error(ssl));

0 commit comments

Comments
 (0)