source: trunk/ORBit2-2.14.0/src/idl/interop/GSSUP.idl

Last change on this file was 92, checked in by cinc, 19 years ago

Orbit2 modified for use with NOM

File size: 1.7 KB
Line 
1//
2// File: GSSUP.idl
3// CORBA 3.0 Chapter 24
4
5#ifndef _GSSUP_IDL_
6#define _GSSUP_IDL_
7
8#ifdef _PRE_3_0_COMPILER_
9#include <CSI.idl>
10
11#pragma prefix "omg.org"
12#else
13import ::CSI;
14#endif // _PRE_3_0_COMPILER_
15
16module GSSUP {
17
18#ifndef _PRE_3_0_COMPILER_
19 typeprefix GSSUP "omg.org";
20#endif // _PRE_3_0_COMPILER_
21
22 // The GSS Object Identifier allocated for the
23 // username/password mechanism is defined below.
24 //
25 // { iso-itu-t (2) international-organization (23) omg (130)
26 // security (1) authentication (1) gssup-mechanism (1) }
27
28 const CSI::StringOID GSSUPMechOID = "oid:2.23.130.1.1.1";
29
30 // The following structure defines the inner contents of the
31 // username password initial context token. This structure is
32 // CDR encapsulated and appended at the end of the
33 // username/password GSS (initial context) Token.
34
35 struct InitialContextToken {
36 CSI::UTF8String username;
37 CSI::UTF8String password;
38 CSI::GSS_NT_ExportedName target_name;
39 };
40
41 typedef unsigned long ErrorCode;
42
43 // GSSUP Mechanism-Specific Error Token
44 struct ErrorToken {
45 ErrorCode error_code;
46 };
47
48 // The context validator has chosen not to reveal the GSSUP
49 // specific cause of the failure.
50 const ErrorCode GSS_UP_S_G_UNSPECIFIED = 1;
51
52 // The user identified in the username field of the
53 // GSSUP::InitialContextToken is unknown to the target.
54 const ErrorCode GSS_UP_S_G_NOUSER = 2;
55
56 // The password supplied in the GSSUP::InitialContextToken was
57 // incorrect.
58 const ErrorCode GSS_UP_S_G_BAD_PASSWORD = 3;
59
60 // The target_name supplied in the GSSUP::InitialContextToken does
61 // not match a target_name in a mechanism definition of the target.
62 const ErrorCode GSS_UP_S_G_BAD_TARGET = 4;
63
64}; // GSSUP
65
66#endif
Note: See TracBrowser for help on using the repository browser.