jdk/src/share/native/sun/security/jgss/wrapper/gssapi.h
author ohair
Tue, 25 May 2010 15:58:33 -0700
changeset 5506 202f599c92aa
parent 2 90ce3da70b43
child 17435 ec797e955dca
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
2
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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
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
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/* This is the gssapi.h prologue. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
/* It contains some choice pieces of autoconf.h */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#define GSS_SIZEOF_INT 4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#define GSS_SIZEOF_LONG 4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#define GSS_SIZEOF_SHORT 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#ifndef _GSSAPI_H_
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#define _GSSAPI_H_
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
extern "C" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * First, include stddef.h to get size_t defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#include <stddef.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * POSIX says that sys/types.h is where size_t is defined.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#include <sys/types.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
typedef void * gss_name_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
typedef void * gss_cred_id_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
typedef void * gss_ctx_id_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * The following type must be defined as the smallest natural unsigned integer
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * supported by the platform that has at least 32 bits of precision.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#if (GSS_SIZEOF_SHORT == 4)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
typedef unsigned short gss_uint32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
typedef short gss_int32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#elif (GSS_SIZEOF_INT == 4)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
typedef unsigned int gss_uint32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
typedef int gss_int32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#elif (GSS_SIZEOF_LONG == 4)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
typedef unsigned long gss_uint32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
typedef long gss_int32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
typedef gss_uint32      OM_uint32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
typedef struct gss_OID_desc_struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      OM_uint32 length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
      void *elements;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
} gss_OID_desc, *gss_OID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
typedef struct gss_OID_set_desc_struct  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
      size_t  count;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
      gss_OID elements;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
} gss_OID_set_desc, *gss_OID_set;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
typedef struct gss_buffer_desc_struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
      size_t length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
      void *value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
} gss_buffer_desc, *gss_buffer_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
typedef struct gss_channel_bindings_struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
      OM_uint32 initiator_addrtype;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
      gss_buffer_desc initiator_address;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
      OM_uint32 acceptor_addrtype;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
      gss_buffer_desc acceptor_address;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
      gss_buffer_desc application_data;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
} *gss_channel_bindings_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * For now, define a QOP-type as an OM_uint32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
typedef OM_uint32       gss_qop_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
typedef int             gss_cred_usage_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 * Flag bits for context-level services.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
#define GSS_C_DELEG_FLAG 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#define GSS_C_MUTUAL_FLAG 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
#define GSS_C_REPLAY_FLAG 4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#define GSS_C_SEQUENCE_FLAG 8
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
#define GSS_C_CONF_FLAG 16
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
#define GSS_C_INTEG_FLAG 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#define GSS_C_ANON_FLAG 64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
#define GSS_C_PROT_READY_FLAG 128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
#define GSS_C_TRANS_FLAG 256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 * Credential usage options
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#define GSS_C_BOTH 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
#define GSS_C_INITIATE 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#define GSS_C_ACCEPT 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 * Status code types for gss_display_status
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
#define GSS_C_GSS_CODE 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
#define GSS_C_MECH_CODE 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 * The constant definitions for channel-bindings address families
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
#define GSS_C_AF_UNSPEC     0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
#define GSS_C_AF_LOCAL      1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
#define GSS_C_AF_INET       2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
#define GSS_C_AF_IMPLINK    3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
#define GSS_C_AF_PUP        4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
#define GSS_C_AF_CHAOS      5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
#define GSS_C_AF_NS         6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
#define GSS_C_AF_NBS        7
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
#define GSS_C_AF_ECMA       8
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
#define GSS_C_AF_DATAKIT    9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
#define GSS_C_AF_CCITT      10
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
#define GSS_C_AF_SNA        11
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
#define GSS_C_AF_DECnet     12
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
#define GSS_C_AF_DLI        13
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
#define GSS_C_AF_LAT        14
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
#define GSS_C_AF_HYLINK     15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
#define GSS_C_AF_APPLETALK  16
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
#define GSS_C_AF_BSC        17
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
#define GSS_C_AF_DSS        18
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
#define GSS_C_AF_OSI        19
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
#define GSS_C_AF_X25        21
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
#define GSS_C_AF_NULLADDR   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 * Various Null values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
#define GSS_C_NO_NAME ((gss_name_t) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
#define GSS_C_NO_BUFFER ((gss_buffer_t) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
#define GSS_C_NO_OID ((gss_OID) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
#define GSS_C_NO_OID_SET ((gss_OID_set) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
#define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
#define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
#define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
#define GSS_C_EMPTY_BUFFER {0, NULL}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * Some alternate names for a couple of the above values.  These are defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * for V1 compatibility.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
#define GSS_C_NULL_OID          GSS_C_NO_OID
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
#define GSS_C_NULL_OID_SET      GSS_C_NO_OID_SET
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
 * Define the default Quality of Protection for per-message services.  Note
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
 * that an implementation that offers multiple levels of QOP may either reserve
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * a value (for example zero, as assumed here) to mean "default protection", or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * alternatively may simply equate GSS_C_QOP_DEFAULT to a specific explicit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * QOP value.  However a value of 0 should always be interpreted by a GSSAPI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 * implementation as a request for the default protection level.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
#define GSS_C_QOP_DEFAULT 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
 * Expiration time of 2^32-1 seconds means infinite lifetime for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
 * credential or security context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
#define GSS_C_INDEFINITE ((OM_uint32) 0xfffffffful)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
/* Major status codes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
#define GSS_S_COMPLETE 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
 * Some "helper" definitions to make the status code macros obvious.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
#define GSS_C_CALLING_ERROR_OFFSET 24
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
#define GSS_C_ROUTINE_ERROR_OFFSET 16
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
#define GSS_C_SUPPLEMENTARY_OFFSET 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
#define GSS_C_CALLING_ERROR_MASK ((OM_uint32) 0377ul)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
#define GSS_C_ROUTINE_ERROR_MASK ((OM_uint32) 0377ul)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
#define GSS_C_SUPPLEMENTARY_MASK ((OM_uint32) 0177777ul)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
 * The macros that test status codes for error conditions.  Note that the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
 * GSS_ERROR() macro has changed slightly from the V1 GSSAPI so that it now
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
 * evaluates its argument only once.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
#define GSS_CALLING_ERROR(x) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  ((x) & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
#define GSS_ROUTINE_ERROR(x) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
  ((x) & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
#define GSS_SUPPLEMENTARY_INFO(x) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
  ((x) & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
#define GSS_ERROR(x) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
  ((x) & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
          (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
 * Now the actual status code definitions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
 * Calling errors:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
#define GSS_S_CALL_INACCESSIBLE_READ \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
                             (((OM_uint32) 1ul) << GSS_C_CALLING_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
#define GSS_S_CALL_INACCESSIBLE_WRITE \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                             (((OM_uint32) 2ul) << GSS_C_CALLING_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
#define GSS_S_CALL_BAD_STRUCTURE \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                             (((OM_uint32) 3ul) << GSS_C_CALLING_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
 * Routine errors:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
#define GSS_S_BAD_MECH (((OM_uint32) 1ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
#define GSS_S_BAD_NAME (((OM_uint32) 2ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
#define GSS_S_BAD_NAMETYPE (((OM_uint32) 3ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
#define GSS_S_BAD_BINDINGS (((OM_uint32) 4ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
#define GSS_S_BAD_STATUS (((OM_uint32) 5ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
#define GSS_S_BAD_SIG (((OM_uint32) 6ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
#define GSS_S_NO_CRED (((OM_uint32) 7ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
#define GSS_S_NO_CONTEXT (((OM_uint32) 8ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
#define GSS_S_DEFECTIVE_TOKEN (((OM_uint32) 9ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
#define GSS_S_DEFECTIVE_CREDENTIAL \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     (((OM_uint32) 10ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
#define GSS_S_CREDENTIALS_EXPIRED \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     (((OM_uint32) 11ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
#define GSS_S_CONTEXT_EXPIRED \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     (((OM_uint32) 12ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
#define GSS_S_FAILURE (((OM_uint32) 13ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
#define GSS_S_BAD_QOP (((OM_uint32) 14ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
#define GSS_S_UNAUTHORIZED (((OM_uint32) 15ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
#define GSS_S_UNAVAILABLE (((OM_uint32) 16ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
#define GSS_S_DUPLICATE_ELEMENT \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     (((OM_uint32) 17ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
#define GSS_S_NAME_NOT_MN \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     (((OM_uint32) 18ul) << GSS_C_ROUTINE_ERROR_OFFSET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
 * Supplementary info bits:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
#define GSS_S_CONTINUE_NEEDED (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 0))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
#define GSS_S_DUPLICATE_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 1))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
#define GSS_S_OLD_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
#define GSS_S_UNSEQ_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 3))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
#define GSS_S_GAP_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
 * Finally, function prototypes for the GSSAPI routines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
#if defined (_WIN32) && defined (_MSC_VER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
# ifdef GSS_DLL_FILE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
#  define GSS_DLLIMP __declspec(dllexport)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
# else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
#  define GSS_DLLIMP __declspec(dllimport)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
# endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
# define GSS_DLLIMP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
/* Reserved static storage for GSS_oids.  Comments are quotes from RFC 2744.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
 * corresponding to an object-identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
 * {iso(1) member-body(2) United States(840) mit(113554)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
 * infosys(1) gssapi(2) generic(1) user_name(1)}.  The constant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
 * GSS_C_NT_USER_NAME should be initialized to point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
 * to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
GSS_DLLIMP extern gss_OID GSS_C_NT_USER_NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
 * corresponding to an object-identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
 * {iso(1) member-body(2) United States(840) mit(113554)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
 * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
 * The constant GSS_C_NT_MACHINE_UID_NAME should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
 * initialized to point to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
GSS_DLLIMP extern gss_OID GSS_C_NT_MACHINE_UID_NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
 * corresponding to an object-identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
 * {iso(1) member-body(2) United States(840) mit(113554)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
 * infosys(1) gssapi(2) generic(1) string_uid_name(3)}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
 * The constant GSS_C_NT_STRING_UID_NAME should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
 * initialized to point to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
GSS_DLLIMP extern gss_OID GSS_C_NT_STRING_UID_NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
 * {6, (void *)"\x2b\x06\x01\x05\x06\x02"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
 * corresponding to an object-identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
 * {iso(1) org(3) dod(6) internet(1) security(5)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
 * nametypes(6) gss-host-based-services(2)).  The constant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
 * GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
 * to that gss_OID_desc.  This is a deprecated OID value, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
 * implementations wishing to support hostbased-service names
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
 * should instead use the GSS_C_NT_HOSTBASED_SERVICE OID,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
 * defined below, to identify such names;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
 * GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
 * for GSS_C_NT_HOSTBASED_SERVICE when presented as an input
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
 * parameter, but should not be emitted by GSS-API
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
 * implementations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
GSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE_X;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
 *              "\x01\x02\x01\x04"}, corresponding to an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
 * object-identifier value of {iso(1) member-body(2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
 * Unites States(840) mit(113554) infosys(1) gssapi(2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
 * generic(1) service_name(4)}.  The constant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
 * GSS_C_NT_HOSTBASED_SERVICE should be initialized
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
 * to point to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
GSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
 * {6, (void *)"\x2b\x06\01\x05\x06\x03"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
 * corresponding to an object identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
 * 6(nametypes), 3(gss-anonymous-name)}.  The constant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
 * and GSS_C_NT_ANONYMOUS should be initialized to point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
 * to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
GSS_DLLIMP extern gss_OID GSS_C_NT_ANONYMOUS;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
 * The implementation must reserve static storage for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
 * gss_OID_desc object containing the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
 * {6, (void *)"\x2b\x06\x01\x05\x06\x04"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
 * corresponding to an object-identifier value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
 * 6(nametypes), 4(gss-api-exported-name)}.  The constant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
 * GSS_C_NT_EXPORT_NAME should be initialized to point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
 * to that gss_OID_desc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
GSS_DLLIMP extern gss_OID GSS_C_NT_EXPORT_NAME;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
/* Function Prototypes */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
OM_uint32 gss_acquire_cred(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
        gss_name_t,             /* desired_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
        OM_uint32,              /* time_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
        gss_OID_set,            /* desired_mechs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
        gss_cred_usage_t,       /* cred_usage */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
        gss_cred_id_t *,        /* output_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
        gss_OID_set *,          /* actual_mechs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
        OM_uint32 *             /* time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
OM_uint32 gss_release_cred(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
        gss_cred_id_t *         /* cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
OM_uint32 gss_init_sec_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
        gss_cred_id_t,          /* claimant_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
        gss_ctx_id_t *,         /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
        gss_name_t,             /* target_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        gss_OID,                /* mech_type (used to be const) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
        OM_uint32,              /* req_flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
        OM_uint32,              /* time_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
        gss_channel_bindings_t, /* input_chan_bindings */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
        gss_buffer_t,           /* input_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
        gss_OID *,              /* actual_mech_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
        gss_buffer_t,           /* output_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
        OM_uint32 *,            /* ret_flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
        OM_uint32 *             /* time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
OM_uint32 gss_accept_sec_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
        gss_ctx_id_t *,         /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        gss_cred_id_t,          /* acceptor_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
        gss_buffer_t,           /* input_token_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
        gss_channel_bindings_t, /* input_chan_bindings */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
        gss_name_t *,           /* src_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
        gss_OID *,              /* mech_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
        gss_buffer_t,           /* output_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
        OM_uint32 *,            /* ret_flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
        OM_uint32 *,            /* time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
        gss_cred_id_t *         /* delegated_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
OM_uint32 gss_process_context_token(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        gss_buffer_t            /* token_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
OM_uint32 gss_delete_sec_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
        gss_ctx_id_t *,         /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
        gss_buffer_t            /* output_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
OM_uint32 gss_context_time(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
        OM_uint32 *             /* time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
OM_uint32 gss_get_mic(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
        gss_qop_t,              /* qop_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
        gss_buffer_t,           /* message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
        gss_buffer_t            /* message_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
OM_uint32 gss_verify_mic(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
        gss_buffer_t,           /* message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
        gss_buffer_t,           /* message_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
        gss_qop_t *             /* qop_state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
OM_uint32 gss_wrap(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
        int,                    /* conf_req_flag */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
        gss_qop_t,              /* qop_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
        gss_buffer_t,           /* input_message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
        int *,                  /* conf_state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
        gss_buffer_t            /* output_message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
OM_uint32 gss_unwrap(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
        gss_buffer_t,           /* input_message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
        gss_buffer_t,           /* output_message_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
        int *,                  /* conf_state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
        gss_qop_t *             /* qop_state */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
OM_uint32 gss_display_status(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
        OM_uint32,              /* status_value */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
        int,                    /* status_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
        gss_OID,                /* mech_type (used to be const) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
        OM_uint32 *,            /* message_context */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
        gss_buffer_t            /* status_string */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
OM_uint32 gss_indicate_mechs(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
        gss_OID_set *           /* mech_set */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
OM_uint32 gss_compare_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
        gss_name_t,             /* name1 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
        gss_name_t,             /* name2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
        int *                   /* name_equal */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
OM_uint32 gss_display_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
        gss_name_t,             /* input_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
        gss_buffer_t,           /* output_name_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
        gss_OID *               /* output_name_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
OM_uint32 gss_import_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
        gss_buffer_t,           /* input_name_buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
        gss_OID,                /* input_name_type(used to be const) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
        gss_name_t *            /* output_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
OM_uint32 gss_release_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
        gss_name_t *            /* input_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
OM_uint32 gss_release_buffer(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
        gss_buffer_t            /* buffer */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
OM_uint32 gss_release_oid_set(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
        gss_OID_set *           /* set */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
OM_uint32 gss_inquire_cred(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
        gss_cred_id_t,          /* cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
        gss_name_t *,           /* name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
        OM_uint32 *,            /* lifetime */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
        gss_cred_usage_t *,     /* cred_usage */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
        gss_OID_set *           /* mechanisms */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
/* Last argument new for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
OM_uint32 gss_inquire_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
        gss_name_t *,           /* src_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
        gss_name_t *,           /* targ_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
        OM_uint32 *,            /* lifetime_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
        gss_OID *,              /* mech_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
        OM_uint32 *,            /* ctx_flags */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
        int *,                  /* locally_initiated */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
        int *                   /* open */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
OM_uint32 gss_wrap_size_limit(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
        gss_ctx_id_t,           /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
        int,                    /* conf_req_flag */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
        gss_qop_t,              /* qop_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
        OM_uint32,              /* req_output_size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
        OM_uint32 *             /* max_input_size */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
OM_uint32 gss_add_cred(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
        gss_cred_id_t,          /* input_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
        gss_name_t,             /* desired_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
        gss_OID,                /* desired_mech */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
        gss_cred_usage_t,       /* cred_usage */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
        OM_uint32,              /* initiator_time_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
        OM_uint32,              /* acceptor_time_req */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
        gss_cred_id_t *,        /* output_cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
        gss_OID_set *,          /* actual_mechs */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
        OM_uint32 *,            /* initiator_time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
        OM_uint32 *             /* acceptor_time_rec */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
OM_uint32 gss_inquire_cred_by_mech(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
        gss_cred_id_t,          /* cred_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
        gss_OID,                /* mech_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
        gss_name_t *,           /* name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
        OM_uint32 *,            /* initiator_lifetime */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
        OM_uint32 *,            /* acceptor_lifetime */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
        gss_cred_usage_t *      /* cred_usage */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
OM_uint32 gss_export_sec_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
        gss_ctx_id_t *,         /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
        gss_buffer_t            /* interprocess_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
OM_uint32 gss_import_sec_context(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
        gss_buffer_t,           /* interprocess_token */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
        gss_ctx_id_t *          /* context_handle */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
OM_uint32 gss_release_oid(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
        gss_OID *               /* oid */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
OM_uint32 gss_create_empty_oid_set(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
        gss_OID_set *           /* oid_set */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
OM_uint32 gss_add_oid_set_member(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
        gss_OID,                /* member_oid */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
        gss_OID_set *           /* oid_set */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
OM_uint32 gss_test_oid_set_member(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
        gss_OID,                /* member */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
        gss_OID_set,            /* set */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
        int *                   /* present */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
OM_uint32 gss_str_to_oid(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
        gss_buffer_t,           /* oid_str */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
        gss_OID *               /* oid */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
OM_uint32 gss_oid_to_str(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
        gss_OID,                /* oid */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
        gss_buffer_t            /* oid_str */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
OM_uint32 gss_inquire_names_for_mech(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
        OM_uint32 *,            /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
        gss_OID,                /* mechanism */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
        gss_OID_set *           /* name_types */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
OM_uint32 gss_export_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
        OM_uint32  *,           /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
        const gss_name_t,       /* input_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
        gss_buffer_t            /* exported_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
OM_uint32 gss_duplicate_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
        OM_uint32  *,           /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
        const gss_name_t,       /* input_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
        gss_name_t *            /* dest_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
/* New for V2 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
OM_uint32 gss_canonicalize_name(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
        OM_uint32  *,           /* minor_status */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
        const gss_name_t,       /* input_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
        const gss_OID,          /* mech_type */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
        gss_name_t *            /* output_name */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
#endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
#endif /* _GSSAPI_H_ */