Solaris 开发者安全性指南

基本 GSS-API 数据类型

本节介绍 GSS-API 使用的数据类型。

OM_uint32

OM_uint32 是与平台无关的 32 位无符号整数。

gss_buffer_desc

包含 gss_buffer_t 指针的 gss_buffer_desc 的定义采用以下格式:

typedef struct gss_buffer_desc_struct {

        size_t length;

        void *value;

} gss_buffer_desc, *gss_buffer_t;

gss_OID_desc

包含 gss_OID 指针的 gss_OID_desc 的定义采用以下格式:

typedef struct gss_OID_desc_struct {

        OM_uint32 length;

        void*elements;

} gss_OID_desc, *gss_OID;

gss_OID_set_desc

包含 gss_OID_set 指针的 gss_OID_set_desc 的定义采用以下格式:

typedef struct gss_OID_set_desc_struct  {

        size_t  count;

        gss_OID elements;

} gss_OID_set_desc, *gss_OID_set;

gss_channel_bindings_struct

gss_channel_bindings_struct 结构和gss_channel_bindings_t 指针的定义的格式如下:

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;