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

« back to all changes in this revision

Viewing changes to src/plugins/preauth/pkinit/pkinit_lib.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:
36
36
#include <ctype.h>
37
37
#include <assert.h>
38
38
 
 
39
#include "k5-platform.h"
 
40
 
39
41
#include "pkinit.h"
40
42
 
41
43
#define FAKECERT
470
472
    if ((f = fopen(filename, "w")) == NULL)
471
473
        return;
472
474
 
 
475
    set_cloexec_file(f);
 
476
 
473
477
    for (i = 0; i < len; i++)
474
478
        fputc(buf[i], f);
475
479