Re: InitializeSecurityContext() returns SEC_E_INVALID_TOKEN on first c

From: Alun Jones [MSFT] (alunj_at_online.microsoft.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 11:37:55 -0800

What value are you passing as the pInput parameter? On the first call, it
should be NULL.

Perhaps you could post a small code snippet.

Alun.
~~~~

-- 
Software Design Engineer, Internet Information Server (FTP)
This posting is provided "AS IS" with no warranties, and confers no rights.
"sherry" <yangcooper@hotmail.com> wrote in message 
news:D4E3E5B2-1EB8-408D-8066-1B6CA0CFBFCB@microsoft.com...
> Based on the InitializeSecurityContext, the first time hContext is passed 
> at
> NULL, it should return a token in newhContext to be used for future
> InitializeSecurityContext calls.
>
> The description in MSDN says:
> SEC_E_INVALID_TOKEN The error is due to a malformed input token, such as a
> token corrupted in transit, a token of incorrect size, or a token passed 
> into
> the wrong security package. Passing a token to the wrong package can 
> happen
> if the client and server did not negotiate the proper security package.
>
> I have not even got a token yet when I first time calls it.
>
> Any other possibility here?
>
> Thanks,
>
> Sherry 


Relevant Pages

  • InitializeSecurityContext() returns SEC_E_INVALID_TOKEN on first c
    ... Based on the InitializeSecurityContext, the first time hContext is passed at ... it should return a token in newhContext to be used for future ... if the client and server did not negotiate the proper security package. ... I have not even got a token yet when I first time calls it. ...
    (microsoft.public.platformsdk.security)
  • Re: UMTM - Pathetic Bunch Of Losers
    ... known as Shrike) wrote: ... That we happened to mention him in passing for the first time in ... FWIW, I incline to the theory that it's some ...
    (uk.media.tv.misc)
  • Re: InitializeSecurityContext returns SEC_E_UNSUPPORTED_FUNCTION on XP??
    ... parameters you are passing into the function, and what security package you ... I get this same error code on more than one XP machine, ... whether or not running with adminstrator permissions. ...
    (microsoft.public.platformsdk.security)
  • Re: What row are you parked on in the North 40?
    ... Saw your camp site back there, but you were never home when we were passing ... We took my grandson to his first AirVenture this year; ... in a tent for the first time, saw his favorite warbirds, took a helicopter ...
    (rec.aviation.piloting)
  • Re: Autobahn reckless driver imprisoned
    ... Accustomed mainly to driving in the US, the first time I passed someone on an Autobahn I took my time and was subjected to a light show by a very large car probably catching up at twice my speed of about 100kph :-) I certainly got a bit of a fright but all it caused me to do was to finish passing as fast as possible. ... This is not to say that I think all drivers of powerful cars in Germany or especially in Italy possess the reactions and skills of a much younger Grand Prix driver, as they often seem to believe! ...
    (rec.travel.europe)