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

« back to all changes in this revision

Viewing changes to src/lib/gssapi/generic/gssapi_generic.h

  • 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
/* -*- mode: c; indent-tabs-mode: nil -*- */
1
2
/*
2
3
 * Copyright 1993 by OpenVision Technologies, Inc.
3
 
 * 
 
4
 *
4
5
 * Permission to use, copy, modify, distribute, and sell this software
5
6
 * and its documentation for any purpose is hereby granted without fee,
6
7
 * provided that the above copyright notice appears in all copies and
10
11
 * without specific, written prior permission. OpenVision makes no
11
12
 * representations about the suitability of this software for any
12
13
 * purpose.  It is provided "as is" without express or implied warranty.
13
 
 * 
 
14
 *
14
15
 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15
16
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16
17
 * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
24
25
#define _GSSAPI_GENERIC_H_
25
26
 
26
27
/*
27
 
 * $Id: gssapi_generic.h 15252 2003-03-06 20:26:39Z lxs $
 
28
 * $Id: gssapi_generic.h 21778 2009-01-22 23:21:11Z tlyu $
28
29
 */
29
30
 
30
31
#include <gssapi/gssapi.h>
31
32
 
32
33
#if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)
33
 
#define GSSAPIGENERIC_BEGIN_DECLS       extern "C" {
34
 
#define GSSAPIGENERIC_END_DECLS }
 
34
#define GSSAPIGENERIC_BEGIN_DECLS       extern "C" {
 
35
#define GSSAPIGENERIC_END_DECLS }
35
36
#else
36
37
#define GSSAPIGENERIC_BEGIN_DECLS
37
38
#define GSSAPIGENERIC_END_DECLS
38
39
#endif
39
40
 
 
41
#define GSS_EMPTY_BUFFER(buf)   ((buf) == NULL ||\
 
42
        (buf)->value == NULL || (buf)->length == 0)
 
43
 
40
44
GSSAPIGENERIC_BEGIN_DECLS
41
45
 
42
46
/* Deprecated MIT krb5 oid names provided for compatibility.
43
 
 * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744 
 
47
 * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744
44
48
 * are defined in gssapi.h. */
45
49
 
46
50
GSS_DLLIMP extern gss_OID gss_nt_user_name;