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

« back to all changes in this revision

Viewing changes to src/lib/crypto/des/f_parity.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:
23
23
void
24
24
mit_des_fixup_key_parity(mit_des_cblock key)
25
25
{
26
 
    int i;
 
26
    unsigned int i;
27
27
    for (i=0; i<sizeof(mit_des_cblock); i++) 
28
28
      {
29
29
        key[i] &= 0xfe;
41
41
int
42
42
mit_des_check_key_parity(mit_des_cblock key)
43
43
{
44
 
    int i;
 
44
    unsigned int i;
45
45
    
46
46
    for (i=0; i<sizeof(mit_des_cblock); i++) 
47
47
      {