Movatterモバイル変換


[0]ホーム

URL:


Go to main content
oracle home

Developer's Guide to Oracle® Solaris 11.4 Security

Exit Print View

 
Search Scope:
  »  ...Documentation Home  »  Oracle Solaris 11.4 Information Library  »  Developer's Guide to Oracle® ...  »  GSS-API Reference  »  GSS-API Data Types and Values
Updated: November 2020
 
 

GSS-API Data Types and Values

    This section describes various types of GSS-API data types and values.Some data types, such as gss_cred_id_t or gss_name_t, are opaque to the user. These data types do not need to bediscussed. This section explains the following topics:

  • Basic GSS-API Data Types ‐Shows the definitions of the OM_uint32, gss_buffer_desc, gss_OID_desc, gss_OID_set_desc_struct,and gss_channel_bindings_struct data types.

  • GSS-API Name Types –Shows the various name formats recognized by the GSS-API for specifying names.

  • GSS-API Address Types for Channel Bindings – Shows the various values that can be used as theinitiator_addrtype andacceptor_addrtype fields ofthe gss_channel_bindings_t structure.

Basic GSS-API Data Types

This section describes data types that are used by GSS-API.

OM_uint32 Data Type

The OM_uint32 is a platform-independent 32-bit unsignedinteger.

gss_buffer_desc Data Type

The definition of the gss_buffer_desc withthe gss_buffer_t pointer takes the following form:

typedef struct gss_buffer_desc_struct {        size_t length;        void *value;} gss_buffer_desc, *gss_buffer_t;

gss_OID_desc Data Type

The definition of the gss_OID_desc with the gss_OID pointer takes the following form:

typedef struct gss_OID_desc_struct {        OM_uint32 length;        void*elements;} gss_OID_desc, *gss_OID;

gss_OID_set_desc Data Type

The definition of the gss_OID_set_desc withthe gss_OID_set pointer takes the following form:

typedef struct gss_OID_set_desc_struct  {        size_t  count;        gss_OID elements;} gss_OID_set_desc, *gss_OID_set;

gss_channel_bindings_struct Data Type

The definition of the gss_channel_bindings_struct structureand the gss_channel_bindings_t pointer has the followingform:

typedef struct gss_channel_bindings_struct {        OM_uint32 initiator_addrtype;        gss_buffer_desc initiator_address;        OM_uint32 acceptor_addrtype;        gss_buffer_desc acceptor_address;        gss_buffer_desc application_data;} *gss_channel_bindings_t;

GSS-API Name Types

A name type indicates the format of the associated name. SeeNames in GSS-API andGSS-API OIDs for more on names and name types.The GSS-API supports the gss_OID name types in thefollowing table.

GSS_C_NO_NAME

The symbolic name GSS_C_NO_NAME is recommended as a parametervalue to indicate that no value is supplied in the transfer of names.

GSS_C_NO_OID

This value corresponds to a null input value instead of anactual object identifier. Where specified, the value indicates interpretationof an associated name that is based on a mechanism-specific default printablesyntax.

GSS_C_NT_ANONYMOUS

A means to identify anonymous names. This value can be comparedwith to determine in a mechanism-independent fashion whether a name refersto an anonymous principal.

GSS_C_NT_EXPORT_NAME

A name that has been exported with thegss_export_name() function.

GSS_C_NT_HOSTBASED_SERVICE

Used to represent services that are associated with the host. This name form is constructed using two elements, service and hostname, as follows:service@hostname.

GSS_C_NT_MACHINE_UID_NAME

Used to indicate a numeric user identifier corresponding toa user on a local system. The interpretation of this value is OS-specific. Thegss_import_name() function resolves this UID intoa user name, which is then treated as the User Name Form.

GSS_C_NT_STRING_STRING_UID_NAME

Used to indicate a string of digits that represents the numericuser identifier of a user on a local system. The interpretation of this valueis OS-specific. This name type is similar to the Machine UID Form, exceptthat the buffer contains a string that represents the user ID.

GSS_C_NT_USER_NAME

A named user on a local system. The interpretation of thisvalue is OS-specific. The value takes the form:username.

GSS-API Address Types for Channel Bindings

The following table shows the possible values for theinitiator_addrtype andacceptor_addrtype fields ofthe gss_channel_bindings_struct structure. Thesefields indicate the format that a name can take, for example, ARPAnet IMPaddress or AppleTalk address. Channel bindings are discussed inUsing Channel Bindings in GSS-API.

Table 6  Channel Binding AddressTypes
Field
Value (Decimal)
Address Type
GSS_C_AF_UNSPEC
0
Unspecified address type
GSS_C_AF_LOCAL
1
Host-local
GSS_C_AF_INET
2
Internet address type, for example, IP
GSS_C_AF_IMPLINK
3
ARPAnet IMP
GSS_C_AF_PUP
4
pup protocols, for example, BSP
GSS_C_AF_CHAOS
5
MIT CHAOS protocol
GSS_C_AF_NS
6
XEROX NS
GSS_C_AF_NBS
7
nbs
GSS_C_AF_ECMA
8
ECMA
GSS_C_AF_DATAKIT
9
Datakit protocols
GSS_C_AF_CCITT
10
CCITT
GSS_C_AF_SNA
11
IBM SNA
GSS_C_AF_DECnet
12
DECnet
GSS_C_AF_DLI
13
Direct data link interface
GSS_C_AF_LAT
14
LAT
GSS_C_AF_HYLINK
15
NSC Hyperchannel
GSS_C_AF_APPLETALK
16
AppleTalk
GSS_C_AF_BSC
17
BISYNC
GSS_C_AF_DSS
18
Distributed system services
GSS_C_AF_OSI
19
OSI TP4
GSS_C_AF_X25
21
X.25
GSS_C_AF_NULLADDR
255
No address specified
Copyright © 2000, 2020, Oracle and/or its affiliates. 
Previous
Next

[8]ページ先頭

©2009-2025 Movatter.jp