~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/libs/sgeobj/sge_krbL.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SGE_KRBL_H
 
2
#define __SGE_KRBL_H
 
3
/*___INFO__MARK_BEGIN__*/
 
4
/*************************************************************************
 
5
 * 
 
6
 *  The Contents of this file are made available subject to the terms of
 
7
 *  the Sun Industry Standards Source License Version 1.2
 
8
 * 
 
9
 *  Sun Microsystems Inc., March, 2001
 
10
 * 
 
11
 * 
 
12
 *  Sun Industry Standards Source License Version 1.2
 
13
 *  =================================================
 
14
 *  The contents of this file are subject to the Sun Industry Standards
 
15
 *  Source License Version 1.2 (the "License"); You may not use this file
 
16
 *  except in compliance with the License. You may obtain a copy of the
 
17
 *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 
18
 * 
 
19
 *  Software provided under this License is provided on an "AS IS" basis,
 
20
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 
21
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 
22
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 
23
 *  See the License for the specific provisions governing your rights and
 
24
 *  obligations concerning the Software.
 
25
 * 
 
26
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
27
 * 
 
28
 *   Copyright: 2001 by Sun Microsystems, Inc.
 
29
 * 
 
30
 *   All Rights Reserved.
 
31
 * 
 
32
 ************************************************************************/
 
33
/*___INFO__MARK_END__*/
 
34
 
 
35
#include "sge_boundaries.h"
 
36
#include "cull.h"
 
37
 
 
38
#ifdef  __cplusplus
 
39
extern "C" {
 
40
#endif
 
41
 
 
42
/* *INDENT-OFF* */
 
43
 
 
44
/*
 
45
 * This is the list type we use to hold the client
 
46
 *  connection list for kerberos authentication
 
47
 */
 
48
 
 
49
enum {
 
50
   KRB_commproc=KRB_LOWERBOUND,
 
51
   KRB_id,
 
52
   KRB_host,
 
53
   KRB_timestamp,
 
54
   KRB_auth_context,
 
55
   KRB_tgt_list
 
56
};
 
57
 
 
58
LISTDEF( KRB_Type )
 
59
   SGE_STRING(KRB_commproc, CULL_DEFAULT)
 
60
   SGE_ULONG(KRB_id, CULL_DEFAULT)
 
61
   SGE_HOST(KRB_host, CULL_DEFAULT)                    /* CR - hostname change */
 
62
   SGE_ULONG(KRB_timestamp, CULL_DEFAULT)
 
63
   SGE_STRING(KRB_auth_context, CULL_DEFAULT)
 
64
   SGE_LIST(KRB_tgt_list, KTGT_Type, CULL_DEFAULT)
 
65
LISTEND
 
66
 
 
67
NAMEDEF( KRBN )
 
68
    NAME( "KRB_commproc" )
 
69
    NAME( "KRB_id" )
 
70
    NAME( "KRB_host" )
 
71
    NAME( "KRB_timestamp" )
 
72
    NAME( "KRB_auth_context" )
 
73
    NAME( "KRB_tgt_list" )
 
74
NAMEEND
 
75
 
 
76
#define KRBS sizeof(KRBN)/sizeof(char*)
 
77
 
 
78
/*
 
79
 * This is the list type we use to hold the client
 
80
 * TGT list for kerberos TGT forwarding
 
81
 */
 
82
 
 
83
enum {
 
84
    KTGT_id=KTGT_LOWERBOUND,
 
85
    KTGT_tgt
 
86
};
 
87
 
 
88
LISTDEF( KTGT_Type )
 
89
   SGE_ULONG(KTGT_id, CULL_DEFAULT)
 
90
   SGE_STRING(KTGT_tgt, CULL_DEFAULT)
 
91
LISTEND
 
92
 
 
93
NAMEDEF( KTGTN )
 
94
   NAME( "KTGT_id" )
 
95
   NAME( "KTGT_tgt" )
 
96
NAMEEND
 
97
 
 
98
/* *INDENT-ON* */
 
99
 
 
100
#define KTGTS sizeof(KTGTN)/sizeof(char*)
 
101
 
 
102
#ifdef  __cplusplus
 
103
}
 
104
#endif
 
105
 
 
106
#endif /* __SGE_KRBL_H*/
 
107