~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/crypto/des/d3_cbc.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
         * forward.  Otherwise we have to fart around.
85
85
         */
86
86
        if (length >= 8) {
87
 
            left  ^= ((*ip++) & FF_UINT32) << 24;
88
 
            left  ^= ((*ip++) & FF_UINT32) << 16;
89
 
            left  ^= ((*ip++) & FF_UINT32) <<  8;
90
 
            left  ^=  (*ip++) & FF_UINT32;
91
 
            right ^= ((*ip++) & FF_UINT32) << 24;
92
 
            right ^= ((*ip++) & FF_UINT32) << 16;
93
 
            right ^= ((*ip++) & FF_UINT32) <<  8;
94
 
            right ^=  (*ip++) & FF_UINT32;
 
87
            unsigned DES_INT32 temp;
 
88
            GET_HALF_BLOCK(temp, ip);
 
89
            left  ^= temp;
 
90
            GET_HALF_BLOCK(temp, ip);
 
91
            right ^= temp;
95
92
            length -= 8;
96
93
        } else {
97
94
            /*