1 /* $NetBSD: ntlm-private.h,v 1.2 2019/12/15 22:50:48 christos Exp $ */ 2 3 /* This is a generated file */ 4 #ifndef __ntlm_private_h__ 5 #define __ntlm_private_h__ 6 7 #include <stdarg.h> 8 9 gssapi_mech_interface 10 __gss_ntlm_initialize (void); 11 12 OM_uint32 GSSAPI_CALLCONV 13 _gss_ntlm_accept_sec_context ( 14 OM_uint32 * /*minor_status*/, 15 gss_ctx_id_t * /*context_handle*/, 16 gss_const_cred_id_t /*acceptor_cred_handle*/, 17 const gss_buffer_t /*input_token_buffer*/, 18 const gss_channel_bindings_t /*input_chan_bindings*/, 19 gss_name_t * /*src_name*/, 20 gss_OID * /*mech_type*/, 21 gss_buffer_t /*output_token*/, 22 OM_uint32 * /*ret_flags*/, 23 OM_uint32 * /*time_rec*/, 24 gss_cred_id_t * delegated_cred_handle ); 25 26 OM_uint32 GSSAPI_CALLCONV 27 _gss_ntlm_acquire_cred ( 28 OM_uint32 */*min_stat*/, 29 gss_const_name_t /*desired_name*/, 30 OM_uint32 /*time_req*/, 31 const gss_OID_set /*desired_mechs*/, 32 gss_cred_usage_t /*cred_usage*/, 33 gss_cred_id_t */*output_cred_handle*/, 34 gss_OID_set */*actual_mechs*/, 35 OM_uint32 */*time_rec*/); 36 37 OM_uint32 GSSAPI_CALLCONV 38 _gss_ntlm_add_cred ( 39 OM_uint32 */*minor_status*/, 40 gss_const_cred_id_t /*input_cred_handle*/, 41 gss_const_name_t /*desired_name*/, 42 const gss_OID /*desired_mech*/, 43 gss_cred_usage_t /*cred_usage*/, 44 OM_uint32 /*initiator_time_req*/, 45 OM_uint32 /*acceptor_time_req*/, 46 gss_cred_id_t */*output_cred_handle*/, 47 gss_OID_set */*actual_mechs*/, 48 OM_uint32 */*initiator_time_rec*/, 49 OM_uint32 */*acceptor_time_rec*/); 50 51 OM_uint32 52 _gss_ntlm_allocate_ctx ( 53 OM_uint32 */*minor_status*/, 54 ntlm_ctx */*ctx*/); 55 56 OM_uint32 GSSAPI_CALLCONV 57 _gss_ntlm_canonicalize_name ( 58 OM_uint32 * /*minor_status*/, 59 gss_const_name_t /*input_name*/, 60 const gss_OID /*mech_type*/, 61 gss_name_t * output_name ); 62 63 OM_uint32 GSSAPI_CALLCONV 64 _gss_ntlm_compare_name ( 65 OM_uint32 * /*minor_status*/, 66 gss_const_name_t /*name1*/, 67 gss_const_name_t /*name2*/, 68 int * name_equal ); 69 70 OM_uint32 GSSAPI_CALLCONV 71 _gss_ntlm_context_time ( 72 OM_uint32 * /*minor_status*/, 73 gss_const_ctx_id_t /*context_handle*/, 74 OM_uint32 * time_rec ); 75 76 OM_uint32 GSSAPI_CALLCONV 77 _gss_ntlm_delete_sec_context ( 78 OM_uint32 * /*minor_status*/, 79 gss_ctx_id_t * /*context_handle*/, 80 gss_buffer_t output_token ); 81 82 OM_uint32 GSSAPI_CALLCONV 83 _gss_ntlm_destroy_cred ( 84 OM_uint32 */*minor_status*/, 85 gss_cred_id_t */*cred_handle*/); 86 87 OM_uint32 GSSAPI_CALLCONV 88 _gss_ntlm_display_name ( 89 OM_uint32 * /*minor_status*/, 90 gss_const_name_t /*input_name*/, 91 gss_buffer_t /*output_name_buffer*/, 92 gss_OID * output_name_type ); 93 94 OM_uint32 GSSAPI_CALLCONV 95 _gss_ntlm_display_status ( 96 OM_uint32 */*minor_status*/, 97 OM_uint32 /*status_value*/, 98 int /*status_type*/, 99 const gss_OID /*mech_type*/, 100 OM_uint32 */*message_context*/, 101 gss_buffer_t /*status_string*/); 102 103 OM_uint32 GSSAPI_CALLCONV 104 _gss_ntlm_duplicate_name ( 105 OM_uint32 * /*minor_status*/, 106 gss_const_name_t /*src_name*/, 107 gss_name_t * dest_name ); 108 109 OM_uint32 GSSAPI_CALLCONV 110 _gss_ntlm_export_name ( 111 OM_uint32 * /*minor_status*/, 112 gss_const_name_t /*input_name*/, 113 gss_buffer_t exported_name ); 114 115 OM_uint32 GSSAPI_CALLCONV 116 _gss_ntlm_export_sec_context ( 117 OM_uint32 * /*minor_status*/, 118 gss_ctx_id_t * /*context_handle*/, 119 gss_buffer_t interprocess_token ); 120 121 OM_uint32 GSSAPI_CALLCONV 122 _gss_ntlm_get_mic ( 123 OM_uint32 * /*minor_status*/, 124 gss_const_ctx_id_t /*context_handle*/, 125 gss_qop_t /*qop_req*/, 126 const gss_buffer_t /*message_buffer*/, 127 gss_buffer_t message_token ); 128 129 int 130 _gss_ntlm_get_user_cred ( 131 const ntlm_name /*target_name*/, 132 ntlm_cred */*rcred*/); 133 134 OM_uint32 GSSAPI_CALLCONV 135 _gss_ntlm_import_name ( 136 OM_uint32 * /*minor_status*/, 137 const gss_buffer_t /*input_name_buffer*/, 138 const gss_OID /*input_name_type*/, 139 gss_name_t * output_name ); 140 141 OM_uint32 GSSAPI_CALLCONV 142 _gss_ntlm_import_sec_context ( 143 OM_uint32 * /*minor_status*/, 144 const gss_buffer_t /*interprocess_token*/, 145 gss_ctx_id_t * context_handle ); 146 147 OM_uint32 148 _gss_ntlm_indicate_mechs ( 149 OM_uint32 * /*minor_status*/, 150 gss_OID_set * mech_set ); 151 152 OM_uint32 GSSAPI_CALLCONV 153 _gss_ntlm_init_sec_context ( 154 OM_uint32 * /*minor_status*/, 155 gss_const_cred_id_t /*initiator_cred_handle*/, 156 gss_ctx_id_t * /*context_handle*/, 157 gss_const_name_t /*target_name*/, 158 const gss_OID /*mech_type*/, 159 OM_uint32 /*req_flags*/, 160 OM_uint32 /*time_req*/, 161 const gss_channel_bindings_t /*input_chan_bindings*/, 162 const gss_buffer_t /*input_token*/, 163 gss_OID * /*actual_mech_type*/, 164 gss_buffer_t /*output_token*/, 165 OM_uint32 * /*ret_flags*/, 166 OM_uint32 * time_rec ); 167 168 OM_uint32 GSSAPI_CALLCONV 169 _gss_ntlm_inquire_context ( 170 OM_uint32 * /*minor_status*/, 171 gss_const_ctx_id_t /*context_handle*/, 172 gss_name_t * /*src_name*/, 173 gss_name_t * /*targ_name*/, 174 OM_uint32 * /*lifetime_rec*/, 175 gss_OID * /*mech_type*/, 176 OM_uint32 * /*ctx_flags*/, 177 int * /*locally_initiated*/, 178 int * open_context ); 179 180 OM_uint32 GSSAPI_CALLCONV 181 _gss_ntlm_inquire_cred ( 182 OM_uint32 * /*minor_status*/, 183 gss_const_cred_id_t /*cred_handle*/, 184 gss_name_t * /*name*/, 185 OM_uint32 * /*lifetime*/, 186 gss_cred_usage_t * /*cred_usage*/, 187 gss_OID_set * mechanisms ); 188 189 OM_uint32 GSSAPI_CALLCONV 190 _gss_ntlm_inquire_cred_by_mech ( 191 OM_uint32 * /*minor_status*/, 192 gss_const_cred_id_t /*cred_handle*/, 193 const gss_OID /*mech_type*/, 194 gss_name_t * /*name*/, 195 OM_uint32 * /*initiator_lifetime*/, 196 OM_uint32 * /*acceptor_lifetime*/, 197 gss_cred_usage_t * cred_usage ); 198 199 OM_uint32 GSSAPI_CALLCONV 200 _gss_ntlm_inquire_mechs_for_name ( 201 OM_uint32 * /*minor_status*/, 202 gss_const_name_t /*input_name*/, 203 gss_OID_set * mech_types ); 204 205 OM_uint32 GSSAPI_CALLCONV 206 _gss_ntlm_inquire_names_for_mech ( 207 OM_uint32 * /*minor_status*/, 208 const gss_OID /*mechanism*/, 209 gss_OID_set * name_types ); 210 211 OM_uint32 GSSAPI_CALLCONV 212 _gss_ntlm_inquire_sec_context_by_oid ( 213 OM_uint32 */*minor_status*/, 214 gss_const_ctx_id_t /*context_handle*/, 215 const gss_OID /*desired_object*/, 216 gss_buffer_set_t */*data_set*/); 217 218 void GSSAPI_CALLCONV 219 _gss_ntlm_iter_creds_f ( 220 OM_uint32 /*flags*/, 221 void *userctx , 222 void (*/*cred_iter*/)(void *, gss_OID, gss_cred_id_t)); 223 224 OM_uint32 GSSAPI_CALLCONV 225 _gss_ntlm_process_context_token ( 226 OM_uint32 */*minor_status*/, 227 gss_const_ctx_id_t /*context_handle*/, 228 const gss_buffer_t token_buffer ); 229 230 OM_uint32 GSSAPI_CALLCONV 231 _gss_ntlm_release_cred ( 232 OM_uint32 * /*minor_status*/, 233 gss_cred_id_t * cred_handle ); 234 235 OM_uint32 GSSAPI_CALLCONV 236 _gss_ntlm_release_name ( 237 OM_uint32 * /*minor_status*/, 238 gss_name_t * input_name ); 239 240 void 241 _gss_ntlm_set_key ( 242 struct ntlmv2_key */*key*/, 243 int /*acceptor*/, 244 int /*sealsign*/, 245 unsigned char */*data*/, 246 size_t /*len*/); 247 248 OM_uint32 GSSAPI_CALLCONV 249 _gss_ntlm_unwrap ( 250 OM_uint32 * /*minor_status*/, 251 gss_const_ctx_id_t /*context_handle*/, 252 const gss_buffer_t /*input_message_buffer*/, 253 gss_buffer_t /*output_message_buffer*/, 254 int * /*conf_state*/, 255 gss_qop_t * qop_state ); 256 257 OM_uint32 GSSAPI_CALLCONV 258 _gss_ntlm_verify_mic ( 259 OM_uint32 * /*minor_status*/, 260 gss_const_ctx_id_t /*context_handle*/, 261 const gss_buffer_t /*message_buffer*/, 262 const gss_buffer_t /*token_buffer*/, 263 gss_qop_t * qop_state ); 264 265 OM_uint32 GSSAPI_CALLCONV 266 _gss_ntlm_wrap ( 267 OM_uint32 * /*minor_status*/, 268 gss_const_ctx_id_t /*context_handle*/, 269 int /*conf_req_flag*/, 270 gss_qop_t /*qop_req*/, 271 const gss_buffer_t /*input_message_buffer*/, 272 int * /*conf_state*/, 273 gss_buffer_t output_message_buffer ); 274 275 OM_uint32 GSSAPI_CALLCONV 276 _gss_ntlm_wrap_size_limit ( 277 OM_uint32 * /*minor_status*/, 278 gss_const_ctx_id_t /*context_handle*/, 279 int /*conf_req_flag*/, 280 gss_qop_t /*qop_req*/, 281 OM_uint32 /*req_output_size*/, 282 OM_uint32 * max_input_size ); 283 284 #endif /* __ntlm_private_h__ */ 285