Skip to content

Commit

Permalink
removed sniHostName no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed Jun 3, 2024
1 parent c04c768 commit b2e7707
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public static void Main(string[] args)
IntPtr ctx;
IntPtr ssl;
Socket fd;
IntPtr sniHostName;
IntPtr arg_sni;

/* These paths should be changed for use */
Expand Down Expand Up @@ -155,11 +154,6 @@ public static void Main(string[] args)

if (haveSNI(args))
{
string sniHostNameString = args[1].Trim();
sniHostName = Marshal.StringToHGlobalAnsi(sniHostNameString);

ushort size = (ushort)sniHostNameString.Length;

// Allocating memory and setting SNI arg
int test_value = 32;
arg_sni = Marshal.AllocHGlobal(sizeof(int));
Expand Down

0 comments on commit b2e7707

Please sign in to comment.