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

« back to all changes in this revision

Viewing changes to src/plugins/preauth/wpse/wpse_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:
32
32
 
33
33
#ident "$Id: wpse_main.c,v 1.3 2007/01/02 22:33:51 kwc Exp $"
34
34
 
35
 
#ifdef HAVE_CONFIG_H
36
 
#include "config.h"
37
 
#endif
 
35
#include "autoconf.h"
38
36
 
39
37
#ifdef HAVE_ERRNO_H
40
38
#include <errno.h>
335
333
        my_authz_data[0]->ad_type = 1;
336
334
        my_authz_data[0]->length = AD_ALLOC_SIZE;
337
335
        memcpy(my_authz_data[0]->contents, ad_header, sizeof(ad_header));
338
 
        sprintf(my_authz_data[0]->contents + sizeof(ad_header),
339
 
               "wpse authorization data: %d bytes worth!\n", AD_ALLOC_SIZE);
 
336
        snprintf(my_authz_data[0]->contents + sizeof(ad_header),
 
337
                 AD_ALLOC_SIZE - sizeof(ad_header),
 
338
                 "wpse authorization data: %d bytes worth!\n", AD_ALLOC_SIZE);
340
339
        *authz_data = my_authz_data;
341
340
#ifdef DEBUG
342
341
        fprintf(stderr, "Returning %d bytes of authorization data\n",