Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting client to host(ssl)

Status
Not open for further replies.

RenBuzz

Programmer
Sep 25, 2007
1
0
0
ZA
Hi ppl.

I'm trying to create a host sim for a client using ssl, but when I call "AcquireCredentialsHandle" I get the following return. "No credentials are available in the security package" I call it as follows:
AcquireCredentialsHandle(
NULL,
UNISP_NAME,
SECPKG_CRED_INBOUND,
NULL,
(PVOID)authData,
NULL,
NULL,
&_credentials,
&_timeStamp);

I read I should use "UNISP_NAME" for ssl.
If I call "AcquireCredentialsHandle" with "NEGOSSP_NAME" as the second parameter it returns fine, but then when I put the token received from the client into "AcceptSecurityContext" it returns "The token supplied to the function is invalid." Can anyone please assist in what I am doing wrong or how I can solve this problem.

Thanks
Renier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top