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

« back to all changes in this revision

Viewing changes to src/appl/telnet/telnet/main.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:
235
235
#endif
236
236
                        break;
237
237
                case 'k':
238
 
#if defined(AUTHENTICATION) && defined(KRB4)
239
 
                    {
240
 
                        extern char *dest_realm, dst_realm_buf[];
241
 
                        extern unsigned int dst_realm_sz;
242
 
                        dest_realm = dst_realm_buf;
243
 
                        (void)strncpy(dest_realm, optarg, dst_realm_sz);
244
 
                    }
245
 
#endif
246
238
#if defined(AUTHENTICATION) && defined(KRB5)
247
239
                    {
248
240
                        extern char *telnet_krb5_realm;
250
242
                        telnet_krb5_realm = optarg;
251
243
                        break;
252
244
                    }
253
 
#endif
254
 
#if !defined(AUTHENTICATION) || (!defined(KRB4) && !defined(KRB5))
 
245
#else
255
246
                        fprintf(stderr,
256
247
                           "%s: Warning: -k ignored, no Kerberos V4 support.\n",
257
248
                                                                prompt);