[29167] in Kerberos
Re: SSPI API to get tokensize for client and server
daemon@ATHENA.MIT.EDU (Markus Moeller)
Mon Jan 28 16:33:46 2008
To: kerberos@mit.edu
From: "Markus Moeller" <huaraz@moeller.plus.com>
Date: Mon, 28 Jan 2008 21:27:42 -0000
Message-ID: <fnlhlh$aea$1@ger.gmane.org>
Mime-Version: 1.0
X-Complaints-To: usenet@ger.gmane.org
In-Reply-To: <OF33A20401.F373E098-ON862573DE.006EA38A-862573DE.006EF5EE@us.ibm.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
Check the global flags. You should be able to set ASC_REQ_ALLOCATE_MEMORY
Markus
"Manoj Mohan" <manojm@us.ibm.com> wrote in message
news:OF33A20401.F373E098-ON862573DE.006EA38A-862573DE.006EF5EE@us.ibm.com...
>
> Hi,
>
> Right now I am calling InitializeSecurityContext and AcceptSecurityContext
> with fixed token size (4096)
> and things are working. I was wondering if I can call
> QueryContextAttributes or some other function
> to get the right value rather than using a fixed value?
>
> For example, I am using using AcceptSecurityContext like this:
>
> ....................
> outBuffer.cbBuffer = 4096;
> outBuffer.BufferType = SECBUFFER_TOKEN;
> outToken.ulVersion = SECBUFFER_VERSION;
> outToken.cBuffers = 1;
> outToken.pBuffers = &outBuffer;
>
> ss = AcceptSecurityContext( pCredHandle,
> pInCtxHandle,
> &inToken,
> NULL,
> SECURITY_NATIVE_DREP,
> pOutCtxHandle,
> &outToken,
> &outFlags,
> &lifetime );
> if( ss != SEC_E_OK )
> .................................
>
> Regards,.........................
> Manoj
> ________________________________________________
> Kerberos mailing list Kerberos@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
>
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos