SockAuth Sample: Socket Connection Conversations

Click to open or copy the files for the SockAuth sample.

Click to open or copy the Include files (required).

The SockAuth sample shows both the client and server conversations with the security provider when just a socket connection is used. The server side, in this sample, authenticates the client and provides evidence of this by reporting the client's user name back to the client via the socket connection.

This sample is distantly related to the Httpauth sample, which demonstrates the use of the SSPI package to implement the client side of NTLM authentication when interacting with IIS.

Some of the APIs used in this sample are not Win32® APIs. They are specific APIs for Security Providers.

Building SDK Samples

This sample uses the following keywords:

htons; memcpy; sec_success