Skip to content

Commit b2e7707

Browse files
committed
removed sniHostName no longer used
1 parent c04c768 commit b2e7707

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public static void Main(string[] args)
8585
IntPtr ctx;
8686
IntPtr ssl;
8787
Socket fd;
88-
IntPtr sniHostName;
8988
IntPtr arg_sni;
9089

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

156155
if (haveSNI(args))
157156
{
158-
string sniHostNameString = args[1].Trim();
159-
sniHostName = Marshal.StringToHGlobalAnsi(sniHostNameString);
160-
161-
ushort size = (ushort)sniHostNameString.Length;
162-
163157
// Allocating memory and setting SNI arg
164158
int test_value = 32;
165159
arg_sni = Marshal.AllocHGlobal(sizeof(int));

0 commit comments

Comments
 (0)