removed sniHostName no longer used

This commit is contained in:
gasbytes
2024-06-03 21:33:55 +02:00
parent c04c7685b1
commit b2e7707f18

View File

@ -85,7 +85,6 @@ public class wolfSSL_TLS_CSHarp
IntPtr ctx; IntPtr ctx;
IntPtr ssl; IntPtr ssl;
Socket fd; Socket fd;
IntPtr sniHostName;
IntPtr arg_sni; IntPtr arg_sni;
/* These paths should be changed for use */ /* These paths should be changed for use */
@ -155,11 +154,6 @@ public class wolfSSL_TLS_CSHarp
if (haveSNI(args)) if (haveSNI(args))
{ {
string sniHostNameString = args[1].Trim();
sniHostName = Marshal.StringToHGlobalAnsi(sniHostNameString);
ushort size = (ushort)sniHostNameString.Length;
// Allocating memory and setting SNI arg // Allocating memory and setting SNI arg
int test_value = 32; int test_value = 32;
arg_sni = Marshal.AllocHGlobal(sizeof(int)); arg_sni = Marshal.AllocHGlobal(sizeof(int));