Skip to content

Commit

Permalink
dh2048Pem -> dhparam
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed Jun 5, 2024
1 parent 2ab709c commit 453e2fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public static void Main(string[] args)
/* These paths should be changed for use */
string fileCert = wolfssl.setPath("server-cert.pem");
string fileKey = wolfssl.setPath("server-key.pem");
StringBuilder dh2048Pem = new StringBuilder(wolfssl.setPath("dh2048.pem"));
StringBuilder dhparam = new StringBuilder(wolfssl.setPath("dh2048.pem"));

if (fileCert == "" || fileKey == "" || dh2048Pem.Length == 0) {
if (fileCert == "" || fileKey == "" || dhparam.Length == 0) {
Console.WriteLine("Platform not supported.");
return;
}
Expand Down Expand Up @@ -190,7 +190,7 @@ public static void Main(string[] args)
return;
}

if (wolfssl.SetTmpDH_file(ssl, dh2048Pem, wolfssl.SSL_FILETYPE_PEM) != wolfssl.SUCCESS)
if (wolfssl.SetTmpDH_file(ssl, dhparam, wolfssl.SSL_FILETYPE_PEM) != wolfssl.SUCCESS)
{
Console.WriteLine("Error in setting dh2048Pem");
Console.WriteLine(wolfssl.get_error(ssl));
Expand Down

0 comments on commit 453e2fa

Please sign in to comment.