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

« back to all changes in this revision

Viewing changes to src/lib/krb5/krb/t_kerb.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
 
6
6
#include "krb5.h"
7
7
#include "autoconf.h"
8
 
#ifdef KRB5_KRB4_COMPAT
9
 
#include "kerberosIV/krb.h"
10
 
#endif
11
8
#include <stdio.h>
12
9
#include <string.h>
13
10
#include <stdlib.h>
68
65
{
69
66
    krb5_principal princ = 0;
70
67
    krb5_error_code retval;
71
 
#ifndef KRB5_KRB4_COMPAT
72
68
#define ANAME_SZ 40
73
69
#define INST_SZ  40
74
70
#define REALM_SZ  40
75
 
#endif
76
71
    char aname[ANAME_SZ+1], inst[INST_SZ+1], realm[REALM_SZ+1];
77
72
 
78
73
    aname[ANAME_SZ] = inst[INST_SZ] = realm[REALM_SZ] = 0;