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

« back to all changes in this revision

Viewing changes to src/lib/crypto/yarrow/ycipher.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:
1
1
/*
2
2
 * lib/crypto/yarrow/ycipher.c
3
3
 *
4
 
 * Copyright (C) 2001 by the Massachusetts Institute of Technology.
 
4
 * Copyright (C) 2001, 2007 by the Massachusetts Institute of Technology.
5
5
 * All rights reserved.
6
6
 *
7
7
 * Export of this software from the United States of America may
74
74
  const struct krb5_enc_provider *enc = &yarrow_enc_provider;
75
75
  ind.data = (char *) in;
76
76
  ind.length = CIPHER_BLOCK_SIZE;
77
 
  outd.data = out;
 
77
  outd.data = (char *) out;
78
78
  outd.length = CIPHER_BLOCK_SIZE;
79
79
  ret = enc->encrypt (&ctx->key, 0, &ind, &outd);
80
80
  if (ret)