[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion 1.3, neon 0.25.x and SSPI

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-01-06 21:13:41 CET

Followup:

I found something strange in the neon source. In the file src/ne_sspi.c,
line 466 ff (the 0.25.4 tag):

     if (base64Token) {
         SecBufferDesc inBufferDesc;
         SecBuffer inBuffer;

         if (!sspiContext->continueNeeded) {
             NE_DEBUG(NE_DBG_HTTPAUTH, "sspi: Got an unexpected token.\n");
             return -1;
         }

         initSingleEmptyBuffer(&inBufferDesc, &inBuffer);

         status = base64ToBuffer(base64Token, &inBufferDesc);
         if (status) {
             return status;
         }

         securityStatus =
             initializeSecurityContext(&sspiContext->credentials,
                                       &(sspiContext->context),
                                       sspiContext->serverName,
contextFlags,
                                       &inBufferDesc,
&(sspiContext->context),
                                       &outBufferDesc);
         freeBuffer(&inBufferDesc);
     } else {
         if (sspiContext->continueNeeded) {
             NE_DEBUG(NE_DBG_HTTPAUTH, "sspi: Expected a token from
server.\n");
             return -1;
         }

First, there's 'if (!sspiContext->continueNeeded)' which returns -1, for
non-base64Tokens, there's 'if (sspiContext->continueNeeded)'.

Could that be the bug?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 6 21:15:45 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.