EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TLS ServerName Extension

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#16212
Posted: 04/14/2011 01:42:45
by Aamir Khan (Basic support level)
Joined: 04/14/2011
Posts: 5

Hi,

I am using the following code to initiate a request

HTTPSClient.SSLEnabled = true;
HTTPSClient.Versions = 4;

int index = HTTPSClient.Extensions.ServerName.Add();

HTTPSClient.Extensions.ServerName.get_Names(index).Name= "https://hostName";

HTTPSClient.Extensions.ServerName.get_Names(index).NameType = SBSSLCommon.TSBSSLServerNameType.ntHostName;

I am calling PUT on the client object.
I am using WireShark to monitor the traffic. I cannot see the ServerName added to the list of extensions.

Where am I going wrong?

Thanks
#16213
Posted: 04/14/2011 02:19:44
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You should add next line to your code:

HTTPSClient.Extensions.ServerName.Enabled = true;
#16215
Posted: 04/14/2011 08:00:57
by Aamir Khan (Basic support level)
Joined: 04/14/2011
Posts: 5

Thanks a lot.

Reply

Statistics

Topic viewed 801 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!