jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.h
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef NATIVE_FUNC_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define NATIVE_FUNC_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "gssapi.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#ifndef TRUE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#define TRUE    1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#ifndef FALSE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#define FALSE   0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
char* loadNative(const char *libName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
/* function pointer definitions */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
typedef OM_uint32 (*RELEASE_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
                                gss_name_t *name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
typedef OM_uint32 (*IMPORT_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                                gss_buffer_t input_name_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
                                gss_OID input_name_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                                gss_name_t *output_name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
typedef OM_uint32 (*COMPARE_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                                gss_name_t name1,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                                gss_name_t name2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                                int *name_equal);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
typedef OM_uint32 (*CANONICALIZE_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                                gss_name_t input_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                                gss_OID mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                                gss_name_t *output_name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
typedef OM_uint32 (*EXPORT_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                                gss_name_t input_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                                gss_buffer_t exported_name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
typedef OM_uint32 (*DISPLAY_NAME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                                gss_name_t input_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                                gss_buffer_t output_name_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                                gss_OID *output_name_type);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
typedef OM_uint32 (*ACQUIRE_CRED_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                                gss_name_t desired_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                                OM_uint32 time_req,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                                gss_OID_set desired_mech,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                                gss_cred_usage_t cred_usage,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                                gss_cred_id_t *output_cred_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                                gss_OID_set *actual_mechs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                                OM_uint32 *time_rec);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
typedef OM_uint32 (*RELEASE_CRED_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                                gss_cred_id_t *cred_handle);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
typedef OM_uint32 (*INQUIRE_CRED_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                                gss_cred_id_t cred_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                                gss_name_t *name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                                OM_uint32 *lifetime,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                                gss_cred_usage_t *cred_usage,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                                gss_OID_set *mechanisms);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
typedef OM_uint32 (*IMPORT_SEC_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                                gss_buffer_t interprocess_token,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                                gss_ctx_id_t *context_handle);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
typedef OM_uint32 (*INIT_SEC_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                gss_cred_id_t initiator_cred_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                gss_ctx_id_t *context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                gss_name_t *target_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                                gss_OID mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                                OM_uint32 req_flags,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                                OM_uint32 time_req,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                                gss_channel_bindings_t input_chan_bindings,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                                gss_buffer_t input_token,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                                gss_OID *actual_mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                                gss_buffer_t output_token,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                                OM_uint32 *ret_flags,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                                OM_uint32 *time_rec);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
typedef OM_uint32 (*ACCEPT_SEC_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                                gss_ctx_id_t *context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                                gss_cred_id_t acceptor_cred_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                                gss_buffer_t input_token,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                                gss_channel_bindings_t input_chan_bindings,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                                gss_name_t *src_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                                gss_OID *mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                                gss_buffer_t output_token,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                                OM_uint32 *ret_flags,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                                OM_uint32 *time_rec,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                gss_cred_id_t *delegated_cred_handle);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
typedef OM_uint32 (*INQUIRE_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                                gss_name_t *src_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                                gss_name_t *targ_name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                                OM_uint32 *lifetime_rec,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                                gss_OID *mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                                OM_uint32 *ctx_flags,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                int *locally_initiated,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                                int *open);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
typedef OM_uint32 (*DELETE_SEC_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                                gss_ctx_id_t *context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                                gss_buffer_t output_token);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
typedef OM_uint32 (*CONTEXT_TIME_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                gss_ctx_id_t *context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                                OM_uint32 *time_rec);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
typedef OM_uint32 (*WRAP_SIZE_LIMIT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                                int conf_req_flag,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                                gss_qop_t qop_req,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                                OM_uint32 req_output_size,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                                OM_uint32 *max_input_size);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
typedef OM_uint32 (*EXPORT_SEC_CONTEXT_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                                gss_ctx_id_t *context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                                gss_buffer_t interprocess_token);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
typedef OM_uint32 (*GET_MIC_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                                gss_qop_t qop_req,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                                gss_buffer_t message_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                                gss_buffer_t msg_token);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
typedef OM_uint32 (*VERIFY_MIC_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                                gss_buffer_t message_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
                                gss_buffer_t token_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                                gss_qop_t *qop_state);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
typedef OM_uint32 (*WRAP_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                                int conf_req_flag,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                                gss_qop_t qop_req,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                                gss_buffer_t input_message_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                                int *conf_state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                                gss_buffer_t output_message_buffer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
typedef OM_uint32 (*UNWRAP_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                                gss_ctx_id_t context_handle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                                gss_buffer_t input_message_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                                gss_buffer_t output_message_buffer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                                int *conf_state,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                                gss_qop_t *qop_state);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
typedef OM_uint32 (*INDICATE_MECHS_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                                gss_OID_set *mech_set);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
typedef OM_uint32 (*INQUIRE_NAMES_FOR_MECH_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                                const gss_OID mechanism,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                                gss_OID_set *name_types);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
typedef OM_uint32 (*ADD_OID_SET_MEMBER_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                                gss_OID member_oid,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                                gss_OID_set *oid_set);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
typedef OM_uint32 (*DISPLAY_STATUS_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                                OM_uint32 status_value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
                                int status_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                                gss_OID mech_type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                                OM_uint32 *message_context,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                                gss_buffer_t status_string);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
typedef OM_uint32 (*CREATE_EMPTY_OID_SET_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                                gss_OID_set *oid_set);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
typedef OM_uint32 (*RELEASE_OID_SET_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                                gss_OID_set *set);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
typedef OM_uint32 (*RELEASE_BUFFER_FN_PTR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
                                (OM_uint32 *minor_status,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                                gss_buffer_t buffer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
/* dynamically resolved functions from gss library */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
typedef struct GSS_FUNCTION_TABLE {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    gss_OID_set                         mechs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    RELEASE_NAME_FN_PTR                 releaseName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    IMPORT_NAME_FN_PTR                  importName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    COMPARE_NAME_FN_PTR                 compareName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    CANONICALIZE_NAME_FN_PTR            canonicalizeName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    EXPORT_NAME_FN_PTR                  exportName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    DISPLAY_NAME_FN_PTR                 displayName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    ACQUIRE_CRED_FN_PTR                 acquireCred;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    RELEASE_CRED_FN_PTR                 releaseCred;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
    INQUIRE_CRED_FN_PTR                 inquireCred;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    IMPORT_SEC_CONTEXT_FN_PTR           importSecContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
    INIT_SEC_CONTEXT_FN_PTR             initSecContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    ACCEPT_SEC_CONTEXT_FN_PTR           acceptSecContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    INQUIRE_CONTEXT_FN_PTR              inquireContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    DELETE_SEC_CONTEXT_FN_PTR           deleteSecContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    CONTEXT_TIME_FN_PTR                 contextTime;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    WRAP_SIZE_LIMIT_FN_PTR              wrapSizeLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    EXPORT_SEC_CONTEXT_FN_PTR           exportSecContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    GET_MIC_FN_PTR                      getMic;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    VERIFY_MIC_FN_PTR                   verifyMic;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    WRAP_FN_PTR                         wrap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    UNWRAP_FN_PTR                       unwrap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    INDICATE_MECHS_FN_PTR               indicateMechs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
    INQUIRE_NAMES_FOR_MECH_FN_PTR       inquireNamesForMech;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    ADD_OID_SET_MEMBER_FN_PTR           addOidSetMember;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    DISPLAY_STATUS_FN_PTR               displayStatus;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    CREATE_EMPTY_OID_SET_FN_PTR         createEmptyOidSet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    RELEASE_OID_SET_FN_PTR              releaseOidSet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    RELEASE_BUFFER_FN_PTR               releaseBuffer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
} GSS_FUNCTION_TABLE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
typedef GSS_FUNCTION_TABLE *GSS_FUNCTION_TABLE_PTR;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
/* global GSS function table */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
GSS_FUNCTION_TABLE_PTR ftab;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
#endif