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

« back to all changes in this revision

Viewing changes to src/lib/krb5/ccache/ccapi/stdcc_util.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:
5
5
 * Frank Dabek, July 1998
6
6
 */
7
7
 
 
8
#if defined(_WIN32) || defined(USE_CCAPI)
 
9
 
8
10
#include <stdlib.h>
9
11
#include <string.h>
10
12
#include <errno.h>
1034
1036
    if (((MATCH_SET(KRB5_TC_MATCH_SRV_NAMEONLY) &&
1035
1037
          srvname_match(context, match, base)) ||
1036
1038
         standard_fields_match(context, match, base))
1037
 
        &&
 
1039
        &&
1038
1040
        (! MATCH_SET(KRB5_TC_MATCH_IS_SKEY) ||
1039
1041
         match->is_skey == base->is_skey)
1040
1042
        &&
1063
1065
    return FALSE;
1064
1066
}
1065
1067
 
1066
 
 
 
1068
#endif /* defined(_WIN32) || defined(USE_CCAPI) */