Any ideas why I get extra junk chars received using schannel SSL

sfoxover_at_gmail.com
Date: 09/19/05

  • Next message: Yan-Hong Huang[MSFT]: "RE: Alternative store vs. MY store"
    Date: 19 Sep 2005 00:44:00 -0700
    
    

    Hi,

    I am using schannel dll on XP with IE 6 SP2.
    I seem to have it working well except I get some extra junk characters
    received in the XML data stream.

    Before the junk chars appear I have 261 bytes in SECBUFFER_EXTRA. So I
    loop and do a
    scRet = DecryptMessage(&m_hContext,&Message,0,NULL);
    on this data that returns a result of scRet == 0 so its OK.
    I then have 6 junk bytes in SECBUFFER_DATA which are hex "65 36 65 64
    0d 0a" and I have 234 bytes in SECBUFFER_EXTRA. The rest of the data
    including the 234 bytes in SECBUFFER_EXTRA is good.

    Is there any method I can use to test on SECBUFFER_DATA and find out
    that the 6 bytes unencrypted are invalid?

    Are there any header sizes in _SecPkgContext_StreamSizes etc I can play
    with?

    My client is connecting to
    Server: Apache/1.3.29 Ben-SSL/1.52 (Debian GNU/Linux) mod_perl/1.29.

    I believe the server is OK as I can get good data using a .Net
    HttpWebRequest class.

    Any suggestions why schannel is giving me junk characters or how to
    test data integrity using schannel?

    Regards

    Steve


  • Next message: Yan-Hong Huang[MSFT]: "RE: Alternative store vs. MY store"