question

Yelamanchi-5247 avatar image
0 Votes"
Yelamanchi-5247 asked WilhelmNoeker-7193 answered

sample code for TCP server/client connection using windows CNG

Hi,


I am looking for sample code (preferably in C/C++) that establishes an SSL/TLS Connection between TCP client and server using windows CNG. I tried to find the sample code for this, but not able to get it anywhere.

Please help me to find the samples.
Any help is greatly appreciated. Thanks.

windows-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

WilhelmNoeker-7193 avatar image
0 Votes"
WilhelmNoeker-7193 answered

If you really want to use the SSL provider functions in CNG, may I ask why? Schannel has not become deprecated, as far as I know, and for Schannel, there is client/server sample code in the Server 2003 platform SDK (in Samples\Security\SSPI\SSL).

I just noticed that there is a new Cryptographic Provider Development Kit, apparently released just a month ago. It claims to be an updated version of the CNG SDK (which is why I noticed it at all), but its emphasis is of course on implementing cryptography providers, not clients. The new release notes even say: "Code samples which demonstrate how to use the CNG API have been moved to the Windows SDK." But even in the CNG SDK that I used to know, there was sample code for an SSL provider, but not for an SSL client.

Good luck.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.