1.\" $NetBSD: gss_acquire_cred.3,v 1.3 2014/04/24 13:45:34 pettai Exp $ 2.\" 3.\" Copyright (c) 2003 - 2007 Kungliga Tekniska Högskolan 4.\" (Royal Institute of Technology, Stockholm, Sweden). 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 18.\" 3. Neither the name of the Institute nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" Id 35.\" 36.Dd October 26, 2005 37.Dt GSS_ACQUIRE_CRED 3 38.Os 39.Sh NAME 40.Nm gss_accept_sec_context , 41.Nm gss_acquire_cred , 42.Nm gss_add_cred , 43.Nm gss_add_oid_set_member , 44.Nm gss_canonicalize_name , 45.Nm gss_compare_name , 46.Nm gss_context_time , 47.Nm gss_create_empty_oid_set , 48.Nm gss_delete_sec_context , 49.Nm gss_display_name , 50.Nm gss_display_status , 51.Nm gss_duplicate_name , 52.Nm gss_export_name , 53.Nm gss_export_sec_context , 54.Nm gss_get_mic , 55.Nm gss_import_name , 56.Nm gss_import_sec_context , 57.Nm gss_indicate_mechs , 58.Nm gss_init_sec_context , 59.Nm gss_inquire_context , 60.Nm gss_inquire_cred , 61.Nm gss_inquire_cred_by_mech , 62.Nm gss_inquire_mechs_for_name , 63.Nm gss_inquire_names_for_mech , 64.Nm gss_krb5_ccache_name , 65.Nm gss_krb5_compat_des3_mic , 66.Nm gss_krb5_copy_ccache , 67.Nm gss_krb5_import_cred 68.Nm gsskrb5_extract_authz_data_from_sec_context , 69.Nm gsskrb5_register_acceptor_identity , 70.Nm gss_krb5_import_ccache , 71.Nm gss_krb5_get_tkt_flags , 72.Nm gss_process_context_token , 73.Nm gss_release_buffer , 74.Nm gss_release_cred , 75.Nm gss_release_name , 76.Nm gss_release_oid_set , 77.Nm gss_seal , 78.Nm gss_sign , 79.Nm gss_test_oid_set_member , 80.Nm gss_unseal , 81.Nm gss_unwrap , 82.Nm gss_verify , 83.Nm gss_verify_mic , 84.Nm gss_wrap , 85.Nm gss_wrap_size_limit 86.Nd Generic Security Service Application Program Interface library 87.Sh LIBRARY 88GSS-API library (libgssapi, -lgssapi) 89.Sh SYNOPSIS 90.In gssapi/gssapi.h 91.Pp 92.Ft OM_uint32 93.Fo gss_accept_sec_context 94.Fa "OM_uint32 * minor_status" 95.Fa "gss_ctx_id_t * context_handle" 96.Fa "const gss_cred_id_t acceptor_cred_handle" 97.Fa "const gss_buffer_t input_token_buffer" 98.Fa "const gss_channel_bindings_t input_chan_bindings" 99.Fa "gss_name_t * src_name" 100.Fa "gss_OID * mech_type" 101.Fa "gss_buffer_t output_token" 102.Fa "OM_uint32 * ret_flags" 103.Fa "OM_uint32 * time_rec" 104.Fa "gss_cred_id_t * delegated_cred_handle" 105.Fc 106.Pp 107.Ft OM_uint32 108.Fo gss_acquire_cred 109.Fa "OM_uint32 * minor_status" 110.Fa "const gss_name_t desired_name" 111.Fa "OM_uint32 time_req" 112.Fa "const gss_OID_set desired_mechs" 113.Fa "gss_cred_usage_t cred_usage" 114.Fa "gss_cred_id_t * output_cred_handle" 115.Fa "gss_OID_set * actual_mechs" 116.Fa "OM_uint32 * time_rec" 117.Fc 118.Ft OM_uint32 119.Fo gss_add_cred 120.Fa "OM_uint32 *minor_status" 121.Fa "const gss_cred_id_t input_cred_handle" 122.Fa "const gss_name_t desired_name" 123.Fa "const gss_OID desired_mech" 124.Fa "gss_cred_usage_t cred_usage" 125.Fa "OM_uint32 initiator_time_req" 126.Fa "OM_uint32 acceptor_time_req" 127.Fa "gss_cred_id_t *output_cred_handle" 128.Fa "gss_OID_set *actual_mechs" 129.Fa "OM_uint32 *initiator_time_rec" 130.Fa "OM_uint32 *acceptor_time_rec" 131.Fc 132.Ft OM_uint32 133.Fo gss_add_oid_set_member 134.Fa "OM_uint32 * minor_status" 135.Fa "const gss_OID member_oid" 136.Fa "gss_OID_set * oid_set" 137.Fc 138.Ft OM_uint32 139.Fo gss_canonicalize_name 140.Fa "OM_uint32 * minor_status" 141.Fa "const gss_name_t input_name" 142.Fa "const gss_OID mech_type" 143.Fa "gss_name_t * output_name" 144.Fc 145.Ft OM_uint32 146.Fo gss_compare_name 147.Fa "OM_uint32 * minor_status" 148.Fa "const gss_name_t name1" 149.Fa "const gss_name_t name2" 150.Fa "int * name_equal" 151.Fc 152.Ft OM_uint32 153.Fo gss_context_time 154.Fa "OM_uint32 * minor_status" 155.Fa "const gss_ctx_id_t context_handle" 156.Fa "OM_uint32 * time_rec" 157.Fc 158.Ft OM_uint32 159.Fo gss_create_empty_oid_set 160.Fa "OM_uint32 * minor_status" 161.Fa "gss_OID_set * oid_set" 162.Fc 163.Ft OM_uint32 164.Fo gss_delete_sec_context 165.Fa "OM_uint32 * minor_status" 166.Fa "gss_ctx_id_t * context_handle" 167.Fa "gss_buffer_t output_token" 168.Fc 169.Ft OM_uint32 170.Fo gss_display_name 171.Fa "OM_uint32 * minor_status" 172.Fa "const gss_name_t input_name" 173.Fa "gss_buffer_t output_name_buffer" 174.Fa "gss_OID * output_name_type" 175.Fc 176.Ft OM_uint32 177.Fo gss_display_status 178.Fa "OM_uint32 *minor_status" 179.Fa "OM_uint32 status_value" 180.Fa "int status_type" 181.Fa "const gss_OID mech_type" 182.Fa "OM_uint32 *message_context" 183.Fa "gss_buffer_t status_string" 184.Fc 185.Ft OM_uint32 186.Fo gss_duplicate_name 187.Fa "OM_uint32 * minor_status" 188.Fa "const gss_name_t src_name" 189.Fa "gss_name_t * dest_name" 190.Fc 191.Ft OM_uint32 192.Fo gss_export_name 193.Fa "OM_uint32 * minor_status" 194.Fa "const gss_name_t input_name" 195.Fa "gss_buffer_t exported_name" 196.Fc 197.Ft OM_uint32 198.Fo gss_export_sec_context 199.Fa "OM_uint32 * minor_status" 200.Fa "gss_ctx_id_t * context_handle" 201.Fa "gss_buffer_t interprocess_token" 202.Fc 203.Ft OM_uint32 204.Fo gss_get_mic 205.Fa "OM_uint32 * minor_status" 206.Fa "const gss_ctx_id_t context_handle" 207.Fa "gss_qop_t qop_req" 208.Fa "const gss_buffer_t message_buffer" 209.Fa "gss_buffer_t message_token" 210.Fc 211.Ft OM_uint32 212.Fo gss_import_name 213.Fa "OM_uint32 * minor_status" 214.Fa "const gss_buffer_t input_name_buffer" 215.Fa "const gss_OID input_name_type" 216.Fa "gss_name_t * output_name" 217.Fc 218.Ft OM_uint32 219.Fo gss_import_sec_context 220.Fa "OM_uint32 * minor_status" 221.Fa "const gss_buffer_t interprocess_token" 222.Fa "gss_ctx_id_t * context_handle" 223.Fc 224.Ft OM_uint32 225.Fo gss_indicate_mechs 226.Fa "OM_uint32 * minor_status" 227.Fa "gss_OID_set * mech_set" 228.Fc 229.Ft OM_uint32 230.Fo gss_init_sec_context 231.Fa "OM_uint32 * minor_status" 232.Fa "const gss_cred_id_t initiator_cred_handle" 233.Fa "gss_ctx_id_t * context_handle" 234.Fa "const gss_name_t target_name" 235.Fa "const gss_OID mech_type" 236.Fa "OM_uint32 req_flags" 237.Fa "OM_uint32 time_req" 238.Fa "const gss_channel_bindings_t input_chan_bindings" 239.Fa "const gss_buffer_t input_token" 240.Fa "gss_OID * actual_mech_type" 241.Fa "gss_buffer_t output_token" 242.Fa "OM_uint32 * ret_flags" 243.Fa "OM_uint32 * time_rec" 244.Fc 245.Ft OM_uint32 246.Fo gss_inquire_context 247.Fa "OM_uint32 * minor_status" 248.Fa "const gss_ctx_id_t context_handle" 249.Fa "gss_name_t * src_name" 250.Fa "gss_name_t * targ_name" 251.Fa "OM_uint32 * lifetime_rec" 252.Fa "gss_OID * mech_type" 253.Fa "OM_uint32 * ctx_flags" 254.Fa "int * locally_initiated" 255.Fa "int * open_context" 256.Fc 257.Ft OM_uint32 258.Fo gss_inquire_cred 259.Fa "OM_uint32 * minor_status" 260.Fa "const gss_cred_id_t cred_handle" 261.Fa "gss_name_t * name" 262.Fa "OM_uint32 * lifetime" 263.Fa "gss_cred_usage_t * cred_usage" 264.Fa "gss_OID_set * mechanisms" 265.Fc 266.Ft OM_uint32 267.Fo gss_inquire_cred_by_mech 268.Fa "OM_uint32 * minor_status" 269.Fa "const gss_cred_id_t cred_handle" 270.Fa "const gss_OID mech_type" 271.Fa "gss_name_t * name" 272.Fa "OM_uint32 * initiator_lifetime" 273.Fa "OM_uint32 * acceptor_lifetime" 274.Fa "gss_cred_usage_t * cred_usage" 275.Fc 276.Ft OM_uint32 277.Fo gss_inquire_mechs_for_name 278.Fa "OM_uint32 * minor_status" 279.Fa "const gss_name_t input_name" 280.Fa "gss_OID_set * mech_types" 281.Fc 282.Ft OM_uint32 283.Fo gss_inquire_names_for_mech 284.Fa "OM_uint32 * minor_status" 285.Fa "const gss_OID mechanism" 286.Fa "gss_OID_set * name_types" 287.Fc 288.Ft OM_uint32 289.Fo gss_krb5_ccache_name 290.Fa "OM_uint32 *minor" 291.Fa "const char *name" 292.Fa "const char **old_name" 293.Fc 294.Ft OM_uint32 295.Fo gss_krb5_copy_ccache 296.Fa "OM_uint32 *minor" 297.Fa "gss_cred_id_t cred" 298.Fa "krb5_ccache out" 299.Fc 300.Ft OM_uint32 301.Fo gss_krb5_import_cred 302.Fa "OM_uint32 *minor_status" 303.Fa "krb5_ccache id" 304.Fa "krb5_principal keytab_principal" 305.Fa "krb5_keytab keytab" 306.Fa "gss_cred_id_t *cred" 307.Fc 308.Ft OM_uint32 309.Fo gss_krb5_compat_des3_mic 310.Fa "OM_uint32 * minor_status" 311.Fa "gss_ctx_id_t context_handle" 312.Fa "int onoff" 313.Fc 314.Ft OM_uint32 315.Fo gsskrb5_extract_authz_data_from_sec_context 316.Fa "OM_uint32 *minor_status" 317.Fa "gss_ctx_id_t context_handle" 318.Fa "int ad_type" 319.Fa "gss_buffer_t ad_data" 320.Fc 321.Ft OM_uint32 322.Fo gsskrb5_register_acceptor_identity 323.Fa "const char *identity" 324.Fc 325.Ft OM_uint32 326.Fo gss_krb5_import_cache 327.Fa "OM_uint32 *minor" 328.Fa "krb5_ccache id" 329.Fa "krb5_keytab keytab" 330.Fa "gss_cred_id_t *cred" 331.Fc 332.Ft OM_uint32 333.Fo gss_krb5_get_tkt_flags 334.Fa "OM_uint32 *minor_status" 335.Fa "gss_ctx_id_t context_handle" 336.Fa "OM_uint32 *tkt_flags" 337.Fc 338.Ft OM_uint32 339.Fo gss_process_context_token 340.Fa "OM_uint32 * minor_status" 341.Fa "const gss_ctx_id_t context_handle" 342.Fa "const gss_buffer_t token_buffer" 343.Fc 344.Ft OM_uint32 345.Fo gss_release_buffer 346.Fa "OM_uint32 * minor_status" 347.Fa "gss_buffer_t buffer" 348.Fc 349.Ft OM_uint32 350.Fo gss_release_cred 351.Fa "OM_uint32 * minor_status" 352.Fa "gss_cred_id_t * cred_handle" 353.Fc 354.Ft OM_uint32 355.Fo gss_release_name 356.Fa "OM_uint32 * minor_status" 357.Fa "gss_name_t * input_name" 358.Fc 359.Ft OM_uint32 360.Fo gss_release_oid_set 361.Fa "OM_uint32 * minor_status" 362.Fa "gss_OID_set * set" 363.Fc 364.Ft OM_uint32 365.Fo gss_seal 366.Fa "OM_uint32 * minor_status" 367.Fa "gss_ctx_id_t context_handle" 368.Fa "int conf_req_flag" 369.Fa "int qop_req" 370.Fa "gss_buffer_t input_message_buffer" 371.Fa "int * conf_state" 372.Fa "gss_buffer_t output_message_buffer" 373.Fc 374.Ft OM_uint32 375.Fo gss_sign 376.Fa "OM_uint32 * minor_status" 377.Fa "gss_ctx_id_t context_handle" 378.Fa "int qop_req" 379.Fa "gss_buffer_t message_buffer" 380.Fa "gss_buffer_t message_token" 381.Fc 382.Ft OM_uint32 383.Fo gss_test_oid_set_member 384.Fa "OM_uint32 * minor_status" 385.Fa "const gss_OID member" 386.Fa "const gss_OID_set set" 387.Fa "int * present" 388.Fc 389.Ft OM_uint32 390.Fo gss_unseal 391.Fa "OM_uint32 * minor_status" 392.Fa "gss_ctx_id_t context_handle" 393.Fa "gss_buffer_t input_message_buffer" 394.Fa "gss_buffer_t output_message_buffer" 395.Fa "int * conf_state" 396.Fa "int * qop_state" 397.Fc 398.Ft OM_uint32 399.Fo gss_unwrap 400.Fa "OM_uint32 * minor_status" 401.Fa "const gss_ctx_id_t context_handle" 402.Fa "const gss_buffer_t input_message_buffer" 403.Fa "gss_buffer_t output_message_buffer" 404.Fa "int * conf_state" 405.Fa "gss_qop_t * qop_state" 406.Fc 407.Ft OM_uint32 408.Fo gss_verify 409.Fa "OM_uint32 * minor_status" 410.Fa "gss_ctx_id_t context_handle" 411.Fa "gss_buffer_t message_buffer" 412.Fa "gss_buffer_t token_buffer" 413.Fa "int * qop_state" 414.Fc 415.Ft OM_uint32 416.Fo gss_verify_mic 417.Fa "OM_uint32 * minor_status" 418.Fa "const gss_ctx_id_t context_handle" 419.Fa "const gss_buffer_t message_buffer" 420.Fa "const gss_buffer_t token_buffer" 421.Fa "gss_qop_t * qop_state" 422.Fc 423.Ft OM_uint32 424.Fo gss_wrap 425.Fa "OM_uint32 * minor_status" 426.Fa "const gss_ctx_id_t context_handle" 427.Fa "int conf_req_flag" 428.Fa "gss_qop_t qop_req" 429.Fa "const gss_buffer_t input_message_buffer" 430.Fa "int * conf_state" 431.Fa "gss_buffer_t output_message_buffer" 432.Fc 433.Ft OM_uint32 434.Fo gss_wrap_size_limit 435.Fa "OM_uint32 * minor_status" 436.Fa "const gss_ctx_id_t context_handle" 437.Fa "int conf_req_flag" 438.Fa "gss_qop_t qop_req" 439.Fa "OM_uint32 req_output_size" 440.Fa "OM_uint32 * max_input_size" 441.Fc 442.Sh DESCRIPTION 443Generic Security Service API (GSS-API) version 2, and its C binding, 444is described in 445.Li RFC2743 446and 447.Li RFC2744 . 448Version 1 (deprecated) of the C binding is described in 449.Li RFC1509 . 450.Pp 451Heimdals GSS-API implementation supports the following mechanisms 452.Bl -bullet 453.It 454.Li GSS_KRB5_MECHANISM 455.It 456.Li GSS_SPNEGO_MECHANISM 457.El 458.Pp 459GSS-API have generic name types that all mechanism are supposed to 460implement (if possible): 461.Bl -bullet 462.It 463.Li GSS_C_NT_USER_NAME 464.It 465.Li GSS_C_NT_MACHINE_UID_NAME 466.It 467.Li GSS_C_NT_STRING_UID_NAME 468.It 469.Li GSS_C_NT_HOSTBASED_SERVICE 470.It 471.Li GSS_C_NT_ANONYMOUS 472.It 473.Li GSS_C_NT_EXPORT_NAME 474.El 475.Pp 476GSS-API implementations that supports Kerberos 5 have some additional 477name types: 478.Bl -bullet 479.It 480.Li GSS_KRB5_NT_PRINCIPAL_NAME 481.It 482.Li GSS_KRB5_NT_USER_NAME 483.It 484.Li GSS_KRB5_NT_MACHINE_UID_NAME 485.It 486.Li GSS_KRB5_NT_STRING_UID_NAME 487.El 488.Pp 489In GSS-API, names have two forms, internal names and contiguous string 490names. 491.Bl -bullet 492.It 493.Li Internal name and mechanism name 494.Pp 495Internal names are implementation specific representation of 496a GSS-API name. 497.Li Mechanism names 498special form of internal names corresponds to one and only one mechanism. 499.Pp 500In GSS-API an internal name is stored in a 501.Dv gss_name_t . 502.It 503.Li Contiguous string name and exported name 504.Pp 505Contiguous string names are gssapi names stored in a 506.Dv OCTET STRING 507that together with a name type identifier (OID) uniquely specifies a 508gss-name. 509A special form of the contiguous string name is the exported name that 510have a OID embedded in the string to make it unique. 511Exported name have the nametype 512.Dv GSS_C_NT_EXPORT_NAME . 513.Pp 514In GSS-API an contiguous string name is stored in a 515.Dv gss_buffer_t . 516.Pp 517Exported names also have the property that they are specified by the 518mechanism itself and compatible between different GSS-API 519implementations. 520.El 521.Sh ACCESS CONTROL 522There are two ways of comparing GSS-API names, either comparing two 523internal names with each other or two contiguous string names with 524either other. 525.Pp 526To compare two internal names with each other, import (if needed) the 527names with 528.Fn gss_import_name 529into the GSS-API implementation and the compare the imported name with 530.Fn gss_compare_name . 531.Pp 532Importing names can be slow, so when its possible to store exported 533names in the access control list, comparing contiguous string name 534might be better. 535.Pp 536when comparing contiguous string name, first export them into a 537.Dv GSS_C_NT_EXPORT_NAME 538name with 539.Fn gss_export_name 540and then compare with 541.Xr memcmp 3 . 542.Pp 543Note that there are might be a difference between the two methods of 544comparing names. 545The first (using 546.Fn gss_compare_name ) 547will compare to (unauthenticated) names are the same. 548The second will compare if a mechanism will authenticate them as the 549same principal. 550.Pp 551For example, if 552.Fn gss_import_name 553name was used with 554.Dv GSS_C_NO_OID 555the default syntax is used for all mechanism the GSS-API 556implementation supports. 557When compare the imported name of 558.Dv GSS_C_NO_OID 559it may match serveral mechanism names (MN). 560.Pp 561The resulting name from 562.Fn gss_display_name 563must not be used for acccess control. 564.Sh FUNCTIONS 565.Fn gss_display_name 566takes the gss name in 567.Fa input_name 568and puts a printable form in 569.Fa output_name_buffer . 570.Fa output_name_buffer 571should be freed when done using 572.Fn gss_release_buffer . 573.Fa output_name_type 574can either be 575.Dv NULL 576or a pointer to a 577.Li gss_OID 578and will in the latter case contain the OID type of the name. 579The name must only be used for printing. 580If access control is needed, see section 581.Sx ACCESS CONTROL . 582.Pp 583.Fn gss_inquire_context 584returns information about the context. 585Information is available even after the context have expired. 586.Fa lifetime_rec 587argument is set to 588.Dv GSS_C_INDEFINITE 589(dont expire) or the number of seconds that the context is still valid. 590A value of 0 means that the context is expired. 591.Fa mech_type 592argument should be considered readonly and must not be released. 593.Fa src_name 594and 595.Fn dest_name 596are both mechanims names and must be released with 597.Fn gss_release_name 598when no longer used. 599.Pp 600.Nm gss_context_time 601will return the amount of time (in seconds) of the context is still 602valid. 603If its expired 604.Fa time_rec 605will be set to 0 and 606.Dv GSS_S_CONTEXT_EXPIRED 607returned. 608.Pp 609.Fn gss_sign , 610.Fn gss_verify , 611.Fn gss_seal , 612and 613.Fn gss_unseal 614are part of the GSS-API V1 interface and are obsolete. 615The functions should not be used for new applications. 616They are provided so that version 1 applications can link against the 617library. 618.Sh EXTENSIONS 619.Fn gss_krb5_ccache_name 620sets the internal kerberos 5 credential cache name to 621.Fa name . 622The old name is returned in 623.Fa old_name , 624and must not be freed. 625The data allocated for 626.Fa old_name 627is free upon next call to 628.Fn gss_krb5_ccache_name . 629This function is not threadsafe if 630.Fa old_name 631argument is used. 632.Pp 633.Fn gss_krb5_copy_ccache 634will extract the krb5 credentials that are transferred from the 635initiator to the acceptor when using token delegation in the Kerberos 636mechanism. 637The acceptor receives the delegated token in the last argument to 638.Fn gss_accept_sec_context . 639.Pp 640.Fn gss_krb5_import_cred 641will import the krb5 credentials (both keytab and/or credential cache) 642into gss credential so it can be used withing GSS-API. 643The 644.Fa ccache 645is copied by reference and thus shared, so if the credential is destroyed 646with 647.Fa krb5_cc_destroy , 648all users of thep 649.Fa gss_cred_id_t 650returned by 651.Fn gss_krb5_import_ccache 652will fail. 653.Pp 654.Fn gsskrb5_register_acceptor_identity 655sets the Kerberos 5 filebased keytab that the acceptor will use. The 656.Fa identifier 657is the file name. 658.Pp 659.Fn gsskrb5_extract_authz_data_from_sec_context 660extracts the Kerberos authorizationdata that may be stored within the 661context. 662Tha caller must free the returned buffer 663.Fa ad_data 664with 665.Fn gss_release_buffer 666upon success. 667.Pp 668.Fn gss_krb5_get_tkt_flags 669return the ticket flags for the kerberos ticket receive when 670authenticating the initiator. 671Only valid on the acceptor context. 672.Pp 673.Fn gss_krb5_compat_des3_mic 674turns on or off the compatibility with older version of Heimdal using 675des3 get and verify mic, this is way to programmatically set the 676[gssapi]broken_des3_mic and [gssapi]correct_des3_mic flags (see 677COMPATIBILITY section in 678.Xr gssapi 3 ) . 679If the CPP symbol 680.Dv GSS_C_KRB5_COMPAT_DES3_MIC 681is present, 682.Fn gss_krb5_compat_des3_mic 683exists. 684.Fn gss_krb5_compat_des3_mic 685will be removed in a later version of the GSS-API library. 686.Sh SEE ALSO 687.Xr gssapi 3 , 688.Xr krb5 3 , 689.Xr krb5_ccache 3 , 690.Xr kerberos 8 691