KRB5_CONTEXT(3) UNIX Programmer's Manual KRB5_CONTEXT(3) NNAAMMEE kkrrbb55__iinniitt__ccoonntteexxtt, kkrrbb55__ffrreeee__ccoonntteexxtt - create and delete krb5_context structures LLIIBBRRAARRYY Kerberos 5 Library (libkrb5, -lkrb5) SSYYNNOOPPSSIISS _k_r_b_5___e_r_r_o_r___c_o_d_e kkrrbb55__iinniitt__ccoonntteexxtt(_k_r_b_5___c_o_n_t_e_x_t _*_c_o_n_t_e_x_t) _v_o_i_d kkrrbb55__ffrreeee__ccoonntteexxtt(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t) DDEESSCCRRIIPPTTIIOONN The kkrrbb55__iinniitt__ccoonntteexxtt() function initializes the _c_o_n_t_e_x_t structure and reads the configuration file _/_e_t_c_/_k_r_b_5_._c_o_n_f. The structure should be freed by calling kkrrbb55__ffrreeee__ccoonntteexxtt() when it is no longer being used. RREETTUURRNN VVAALLUUEESS kkrrbb55__iinniitt__ccoonntteexxtt() returns 0 to indicate success. Otherwise an errno code is returned. Failure means either that something bad happened dur- ing initialization (typically [ENOMEM]) or that Kerberos should not be used [ENXIO]. SSEEEE AALLSSOO errno(2), krb5_context(3), kerberos(8) HEIMDAL January 21, 2001 1