gssapi_private.h
1 /* This is a generated file */ 2 #ifndef __gssapi_private_h__ 3 #define __gssapi_private_h__ 4 5 #include <stdarg.h> 6 7 #ifndef HEIMDAL_PRINTF_ATTRIBUTE 8 #if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 ))) 9 #define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x)) 10 #else 11 #define HEIMDAL_PRINTF_ATTRIBUTE(x) 12 #endif 13 #endif 14 15 bool 16 GSSCheckNTLMReflection (uint8_t challange[8]); 17 18 struct gssapi_mech_interface_desc *__nullable 19 __gss_get_mechanism (__nonnull gss_const_OID mech); 20 21 OM_uint32 22 _gss_acquire_mech_cred ( 23 OM_uint32 *__nonnull minor_status, 24 struct gssapi_mech_interface_desc *__nonnull m, 25 const struct _gss_mechanism_name *__nullable mn, 26 __nullable gss_const_OID credential_type, 27 const void *__nullable credential_data, 28 OM_uint32 time_req, 29 gss_const_OID __nullable desired_mech, 30 gss_cred_usage_t cred_usage, 31 struct _gss_mechanism_cred *__nonnull* __nullable output_cred_handle); 32 33 OM_uint32 34 _gss_copy_buffer ( 35 OM_uint32 *__nonnull minor_status, 36 __nonnull const gss_buffer_t from_buf, 37 __nonnull gss_buffer_t to_buf); 38 39 struct _gss_mechanism_cred *__nullable 40 _gss_copy_cred (struct _gss_mechanism_cred *__nonnull mc); 41 42 OM_uint32 43 _gss_copy_oid ( 44 OM_uint32 *__nonnull minor_status, 45 __nonnull gss_const_OID from_oid, 46 __nonnull gss_OID to_oid); 47 48 struct _gss_name * __nullable 49 _gss_create_name ( 50 __nullable gss_name_t new_mn, 51 struct gssapi_mech_interface_desc * __nullable m); 52 53 __nullable gss_name_t 54 _gss_cred_copy_name ( 55 OM_uint32 *__nonnull minor_status, 56 __nonnull gss_cred_id_t credential, 57 __nullable gss_const_OID mech); 58 59 OM_uint32 60 _gss_find_mn ( 61 OM_uint32 *__nonnull minor_status, 62 struct _gss_name *__nonnull name, 63 __nonnull gss_const_OID mech, 64 struct _gss_mechanism_name *__nonnull* __nullable output_mn); 65 66 OM_uint32 67 _gss_free_oid ( 68 OM_uint32 *__nonnull minor_status, 69 __nonnull gss_OID oid); 70 71 void 72 _gss_load_mech (void); 73 74 void 75 _gss_load_plugins (void); 76 77 OM_uint32 78 _gss_mech_import_name ( 79 OM_uint32 * __nonnull minor_status, 80 __nonnull gss_const_OID mech, 81 struct _gss_name_type *__nonnull names, 82 __nonnull const gss_buffer_t input_name_buffer, 83 __nonnull gss_const_OID input_name_type, 84 __nonnull gss_name_t * __nullable output_name); 85 86 OM_uint32 87 _gss_mech_inquire_names_for_mech ( 88 OM_uint32 * __nonnull minor_status, 89 struct _gss_name_type *__nonnull names, 90 gss_OID_set __nonnull * __nullable name_types); 91 92 struct _gss_cred * __nullable 93 _gss_mg_alloc_cred (void); 94 95 OM_uint32 96 _gss_mg_allocate_buffer ( 97 OM_uint32 * __nonnull minor_status, 98 gss_iov_buffer_desc * __nonnull buffer, 99 size_t size); 100 101 void 102 _gss_mg_check_credential (gss_cred_id_t __nullable credential); 103 104 void 105 _gss_mg_check_name (__nonnull gss_name_t name); 106 107 __nullable CFTypeRef 108 _gss_mg_copy_key ( 109 __nonnull CFStringRef domain, 110 __nonnull CFStringRef key); 111 112 __nullable CFErrorRef 113 _gss_mg_create_cferror ( 114 OM_uint32 major_status, 115 OM_uint32 minor_status, 116 __nullable gss_const_OID mech); 117 118 void 119 _gss_mg_decode_be_uint32 ( 120 const void *__nonnull ptr, 121 uint32_t *__nonnull n); 122 123 void 124 _gss_mg_decode_le_uint32 ( 125 const void *__nonnull ptr, 126 uint32_t *__nonnull n); 127 128 void 129 _gss_mg_encode_be_uint32 ( 130 uint32_t n, 131 uint8_t *__nonnull p); 132 133 void 134 _gss_mg_encode_le_uint32 ( 135 uint32_t n, 136 uint8_t *__nonnull p); 137 138 void 139 _gss_mg_error ( 140 struct gssapi_mech_interface_desc *__nonnull m, 141 OM_uint32 min); 142 143 gss_iov_buffer_desc *__nullable 144 _gss_mg_find_buffer ( 145 gss_iov_buffer_desc *__nonnull iov, 146 int iov_count, 147 OM_uint32 type); 148 149 OM_uint32 150 _gss_mg_get_error ( 151 __nonnull const gss_OID mech, 152 OM_uint32 value, 153 __nonnull gss_buffer_t string); 154 155 __nullable gss_name_t 156 _gss_mg_get_underlaying_mech_name ( 157 __nonnull gss_name_t name, 158 __nonnull gss_const_OID mech); 159 160 void 161 _gss_mg_log ( 162 int level, 163 const char *__nonnull fmt, 164 ...) 165 HEIMDAL_PRINTF_ATTRIBUTE((printf, 2, 3)); 166 167 void 168 _gss_mg_log_cred ( 169 int level, 170 struct _gss_cred *__nullable cred, 171 const char *__nonnull fmt, 172 ...) 173 HEIMDAL_PRINTF_ATTRIBUTE((printf, 3, 4)); 174 175 int 176 _gss_mg_log_level (int level); 177 178 void 179 _gss_mg_log_name ( 180 int level, 181 struct _gss_name *__nonnull name, 182 __nonnull gss_OID mech_type, 183 const char *__nonnull fmt, 184 ...) 185 HEIMDAL_PRINTF_ATTRIBUTE((printf, 4, 5)); 186 187 void 188 _gss_mg_release_cred (struct _gss_cred *__nonnull cred); 189 190 void 191 _gss_mg_release_name (struct _gss_name *__nonnull name); 192 193 __nullable gss_OID 194 _gss_mg_support_mechanism (__nonnull gss_const_OID mech); 195 196 int 197 _gss_mo_get_ctx_as_string ( 198 __nonnull gss_const_OID mech, 199 struct gss_mo_desc *__nonnull mo, 200 __nullable gss_buffer_t value); 201 202 int 203 _gss_mo_get_option_0 ( 204 __nonnull gss_const_OID mech, 205 struct gss_mo_desc *__nonnull mo, 206 __nonnull gss_buffer_t value); 207 208 int 209 _gss_mo_get_option_1 ( 210 __nonnull gss_const_OID mech, 211 struct gss_mo_desc *__nonnull mo, 212 __nonnull gss_buffer_t value); 213 214 OM_uint32 GSSAPI_LIB_FUNCTION 215 gss_acquire_cred_ex ( 216 __nonnull const gss_name_t desired_name, 217 OM_uint32 flags, 218 OM_uint32 time_req, 219 __nonnull gss_const_OID desired_mech, 220 gss_cred_usage_t cred_usage, 221 __nonnull gss_auth_identity_t identity, 222 __nonnull gss_acquire_cred_complete complete); 223 224 OM_uint32 GSSAPI_LIB_FUNCTION 225 gss_acquire_cred_ex_f ( 226 __nullable gss_status_id_t status, 227 __nullable gss_name_t desired_name, 228 OM_uint32 flags, 229 OM_uint32 time_req, 230 __nonnull gss_const_OID desired_mech, 231 gss_cred_usage_t cred_usage, 232 __nonnull gss_auth_identity_t identity, 233 void * __nullable userctx, 234 void (*__nonnull usercomplete)(void *__nullable, OM_uint32, gss_status_id_t __nullable, gss_cred_id_t __nullable, gss_OID_set __nullable, OM_uint32)); 235 236 OM_uint32 237 gss_acquire_cred_ext ( 238 OM_uint32 *__nonnull minor_status, 239 __nonnull const gss_name_t desired_name, 240 __nonnull gss_const_OID credential_type, 241 const void *__nonnull credential_data, 242 OM_uint32 time_req, 243 __nullable gss_const_OID desired_mech, 244 gss_cred_usage_t cred_usage, 245 __nonnull gss_cred_id_t *__nullable output_cred_handle); 246 247 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 248 gss_add_cred_with_password ( 249 OM_uint32 * __nonnull minor_status, 250 __nullable const gss_cred_id_t input_cred_handle, 251 __nonnull const gss_name_t desired_name, 252 __nonnull const gss_OID desired_mech, 253 __nonnull const gss_buffer_t password, 254 gss_cred_usage_t cred_usage, 255 OM_uint32 initiator_time_req, 256 OM_uint32 acceptor_time_req, 257 __nonnull gss_cred_id_t *__nullable output_cred_handle, 258 __nullable gss_OID_set * __nullable actual_mechs, 259 OM_uint32 * __nonnull initiator_time_rec, 260 OM_uint32 * __nonnull acceptor_time_rec); 261 262 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 263 gss_authorize_localname ( 264 OM_uint32 * __nonnull minor_status, 265 __nonnull const gss_name_t gss_name, 266 __nonnull const gss_name_t gss_user); 267 268 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 269 gss_context_query_attributes ( 270 OM_uint32 * __nonnull minor_status, 271 __nonnull const gss_ctx_id_t context_handle, 272 __nonnull const gss_OID attribute, 273 void *__nonnull data, 274 size_t len); 275 276 OM_uint32 277 gss_cred_hold ( 278 OM_uint32 * __nonnull min_stat, 279 __nonnull gss_cred_id_t cred_handle); 280 281 OM_uint32 282 gss_cred_label_get ( 283 OM_uint32 * __nonnull min_stat, 284 __nonnull gss_cred_id_t cred_handle, 285 const char * __nonnull label, 286 __nonnull gss_buffer_t value); 287 288 OM_uint32 289 gss_cred_label_set ( 290 OM_uint32 * __nonnull min_stat, 291 __nonnull gss_cred_id_t cred_handle, 292 const char * __nonnull label, 293 __nullable gss_buffer_t value); 294 295 OM_uint32 296 gss_cred_unhold ( 297 OM_uint32 * __nonnull min_stat, 298 __nonnull gss_cred_id_t cred_handle); 299 300 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 301 gss_delete_name_attribute ( 302 OM_uint32 *__nonnull minor_status, 303 __nonnull gss_name_t input_name, 304 __nonnull gss_buffer_t attr); 305 306 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 307 gss_display_name_ext ( 308 OM_uint32 *__nonnull minor_status, 309 __nonnull gss_name_t input_name, 310 __nonnull gss_OID display_as_name_type, 311 __nonnull gss_buffer_t display_name); 312 313 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 314 gss_export_name_composite ( 315 OM_uint32 *__nonnull minor_status, 316 __nonnull gss_name_t input_name, 317 __nonnull gss_buffer_t exp_composite_name); 318 319 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 320 gss_get_name_attribute ( 321 OM_uint32 *__nonnull minor_status, 322 __nonnull gss_name_t input_name, 323 __nonnull gss_buffer_t attr, 324 int *__nullable authenticated, 325 int *__nullable complete, 326 __nullable gss_buffer_t value, 327 __nullable gss_buffer_t display_value, 328 int *__nonnull more); 329 330 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 331 gss_krb5_get_tkt_flags ( 332 OM_uint32 *__nonnull minor_status, 333 __nonnull gss_ctx_id_t context_handle, 334 OM_uint32 *__nonnull tkt_flags); 335 336 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 337 gss_krb5_import_cred ( 338 OM_uint32 *__nonnull minor_status, 339 struct krb5_ccache_data *__nullable id, 340 struct Principal *__nullable keytab_principal, 341 struct krb5_keytab_data *__nullable keytab, 342 __nonnull gss_cred_id_t * __nullable cred); 343 344 void 345 gss_mg_collect_error ( 346 __nonnull gss_OID mech, 347 OM_uint32 maj, 348 OM_uint32 min); 349 350 OM_uint32 351 gss_mg_export_name ( 352 OM_uint32 * __nonnull minor_status, 353 __nonnull const gss_const_OID mech, 354 const void *__nonnull name, 355 size_t length, 356 __nonnull gss_buffer_t exported_name); 357 358 OM_uint32 359 gss_mg_gen_cb ( 360 OM_uint32 *__nonnull minor_status, 361 __nonnull const gss_channel_bindings_t b, 362 uint8_t p[16], 363 __nullable gss_buffer_t buffer); 364 365 OM_uint32 366 gss_mg_set_error_string ( 367 __nullable gss_OID mech, 368 OM_uint32 maj, 369 OM_uint32 min, 370 const char *__nonnull fmt, 371 ...) 372 HEIMDAL_PRINTF_ATTRIBUTE((printf, 4, 5)); 373 374 OM_uint32 375 gss_mg_validate_cb ( 376 OM_uint32 *__nonnull minor_status, 377 __nonnull const gss_channel_bindings_t b, 378 const uint8_t p[16], 379 __nonnull gss_buffer_t buffer); 380 381 GSSAPI_LIB_FUNCTION int GSSAPI_LIB_CALL 382 gss_mo_get ( 383 __nonnull gss_const_OID mech, 384 __nonnull gss_const_OID option, 385 __nullable gss_buffer_t value); 386 387 GSSAPI_LIB_FUNCTION void GSSAPI_LIB_CALL 388 gss_mo_list ( 389 __nonnull gss_const_OID mech, 390 __nonnull gss_OID_set *__nullable options); 391 392 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 393 gss_mo_name ( 394 __nonnull gss_const_OID mech, 395 __nonnull gss_const_OID option, 396 __nonnull gss_buffer_t name); 397 398 GSSAPI_LIB_FUNCTION int GSSAPI_LIB_CALL 399 gss_mo_set ( 400 __nonnull gss_const_OID mech, 401 __nonnull gss_const_OID option, 402 int enable, 403 __nullable gss_buffer_t value); 404 405 GSSAPI_LIB_FUNCTION __nullable gss_const_OID GSSAPI_LIB_CALL 406 gss_name_to_oid (const char *__nonnull name); 407 408 GSSAPI_LIB_FUNCTION const char * __nullable GSSAPI_LIB_CALL 409 gss_oid_to_name (__nonnull gss_const_OID oid); 410 411 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 412 gss_pname_to_uid ( 413 OM_uint32 *__nonnull minor_status, 414 __nonnull const gss_name_t pname, 415 __nonnull const gss_OID mech_type, 416 uid_t *__nonnull uidp); 417 418 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 419 gss_release_iov_buffer ( 420 OM_uint32 * __nonnull minor_status, 421 gss_iov_buffer_desc *__nonnull iov, 422 int iov_count); 423 424 void 425 gss_set_log_function ( 426 void *__nullable ctx, 427 void (*__nullable func)(void * __nullable ctx, int level, const char *__nonnull fmt, va_list)); 428 429 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 430 gss_set_name_attribute ( 431 OM_uint32 *__nonnull minor_status, 432 __nonnull gss_name_t input_name, 433 int complete, 434 __nonnull gss_buffer_t attr, 435 __nullable gss_buffer_t value); 436 437 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 438 gss_store_cred ( 439 OM_uint32 *__nonnull minor_status, 440 __nonnull gss_cred_id_t input_cred_handle, 441 gss_cred_usage_t cred_usage, 442 __nullable const gss_OID desired_mech, 443 OM_uint32 overwrite_cred, 444 OM_uint32 default_cred, 445 __nullable gss_OID_set *__nullable elements_stored, 446 gss_cred_usage_t *__nullable cred_usage_stored); 447 448 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 449 gss_unwrap_iov ( 450 OM_uint32 * __nonnull minor_status, 451 __nonnull gss_ctx_id_t context_handle, 452 int * __nullable conf_state, 453 gss_qop_t *__nullable qop_state, 454 gss_iov_buffer_desc *__nonnull iov, 455 int iov_count); 456 457 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 458 gss_wrap_iov ( 459 OM_uint32 * __nonnull minor_status, 460 __nonnull gss_ctx_id_t context_handle, 461 int conf_req_flag, 462 gss_qop_t qop_req, 463 int * __nonnull conf_state, 464 gss_iov_buffer_desc *__nonnull iov, 465 int iov_count); 466 467 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 468 gss_wrap_iov_length ( 469 OM_uint32 * __nonnull minor_status, 470 __nonnull gss_ctx_id_t context_handle, 471 int conf_req_flag, 472 gss_qop_t qop_req, 473 int * __nullable conf_state, 474 gss_iov_buffer_desc *__nonnull iov, 475 int iov_count); 476 477 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 478 gsskrb5_extract_authtime_from_sec_context ( 479 OM_uint32 *__nonnull minor_status, 480 __nonnull gss_ctx_id_t context_handle, 481 time_t * __nonnull authtime); 482 483 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 484 gsskrb5_extract_service_keyblock ( 485 OM_uint32 *__nonnull minor_status, 486 __nonnull gss_ctx_id_t context_handle, 487 struct EncryptionKey *__nonnull* __nullable keyblock); 488 489 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 490 gsskrb5_get_initiator_subkey ( 491 OM_uint32 *__nonnull minor_status, 492 __nonnull gss_ctx_id_t context_handle, 493 struct EncryptionKey *__nonnull* __nullable keyblock); 494 495 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 496 gsskrb5_get_subkey ( 497 OM_uint32 *__nonnull minor_status, 498 __nonnull gss_ctx_id_t context_handle, 499 struct EncryptionKey *__nonnull* __nullable keyblock); 500 501 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 502 gsskrb5_get_time_offset (int *__nonnull offset); 503 504 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 505 gsskrb5_plugin_register (struct gsskrb5_krb5_plugin *__nonnull c); 506 507 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 508 gsskrb5_set_default_realm (const char *__nonnull realm); 509 510 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 511 gsskrb5_set_dns_canonicalize (int flag); 512 513 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 514 gsskrb5_set_send_to_kdc (struct gsskrb5_send_to_kdc *__nonnull c); 515 516 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 517 gsskrb5_set_time_offset (int offset); 518 519 #endif /* __gssapi_private_h__ */