1226031Sstas<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2226031Sstas<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 3226031Sstas<title>HeimdalKerberos5library: Heimdal Kerberos 5 library</title> 4226031Sstas<link href="doxygen.css" rel="stylesheet" type="text/css"> 5226031Sstas<link href="tabs.css" rel="stylesheet" type="text/css"> 6226031Sstas</head><body> 7226031Sstas<p> 8226031Sstas<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> 9226031Sstas</p> 10226031Sstas<!-- end of header marker --> 11226031Sstas<!-- Generated by Doxygen 1.5.6 --> 12226031Sstas<div class="navigation" id="top"> 13226031Sstas <div class="tabs"> 14226031Sstas <ul> 15226031Sstas <li><a href="index.html"><span>Main Page</span></a></li> 16226031Sstas <li><a href="pages.html"><span>Related Pages</span></a></li> 17226031Sstas <li><a href="modules.html"><span>Modules</span></a></li> 18226031Sstas <li><a href="annotated.html"><span>Data Structures</span></a></li> 19226031Sstas </ul> 20226031Sstas </div> 21226031Sstas</div> 22226031Sstas<div class="contents"> 23226031Sstas<h1>Heimdal Kerberos 5 library</h1><table border="0" cellpadding="0" cellspacing="0"> 24226031Sstas<tr><td></td></tr> 25226031Sstas<tr><td colspan="2"><br><h2>Functions</h2></td></tr> 26226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 27226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gc03fc138d472dd7743a0ab7ecb3061c1">krb5_add_et_list</a> (krb5_context context, void(*func)(struct et_list **))</td></tr> 28226031Sstas 29226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 30226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g02611e3966053f79eda248d76dccc282">krb5_set_password</a> (krb5_context context, krb5_creds *creds, const char *newpw, krb5_principal targprinc, int *result_code, krb5_data *result_code_string, krb5_data *result_string)</td></tr> 31226031Sstas 32226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 33226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gbd94206e186c58a093975424a4a567a8">krb5_init_context</a> (krb5_context *context)</td></tr> 34226031Sstas 35226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 36226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gd30312a0ba95a71478de1b5fba34db3f">krb5_copy_context</a> (krb5_context context, krb5_context *out)</td></tr> 37226031Sstas 38226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 39226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ge51d83f5d5f589883f1cd10887892777">krb5_free_context</a> (krb5_context context)</td></tr> 40226031Sstas 41226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 42226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gd4453861fbfc0372e3c44b59325f62aa">krb5_set_config_files</a> (krb5_context context, char **filenames)</td></tr> 43226031Sstas 44226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 45226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gad9a3fd7b838f053a71424d95bf73d40">krb5_prepend_config_files_default</a> (const char *filelist, char ***pfilenames)</td></tr> 46226031Sstas 47226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 48226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g4276c71bee1ba0c9f2bbd659cd351cb3">krb5_get_default_config_files</a> (char ***pfilenames)</td></tr> 49226031Sstas 50226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 51226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gce1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files</a> (char **filenames)</td></tr> 52226031Sstas 53226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION const <br> 54226031Sstaskrb5_enctype *KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g92110f6472a4fb0a5e0a35da81af4fa2">krb5_kerberos_enctypes</a> (krb5_context context)</td></tr> 55226031Sstas 56226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 57226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g5e028d8b3b0444c98b251f46eb48235a">krb5_set_default_in_tkt_etypes</a> (krb5_context context, const krb5_enctype *etypes)</td></tr> 58226031Sstas 59226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 60226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga2bba3d683f1280ddfe8430d834bd5e8">krb5_get_default_in_tkt_etypes</a> (krb5_context context, krb5_pdu pdu_type, krb5_enctype **etypes)</td></tr> 61226031Sstas 62226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 63226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g0f4f2bf6056a5fd472d9dd3d393f133e">krb5_init_ets</a> (krb5_context context)</td></tr> 64226031Sstas 65226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 66226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g3e1564b6d147482eba7bfb5e40a4ff6f">krb5_set_use_admin_kdc</a> (krb5_context context, krb5_boolean flag)</td></tr> 67226031Sstas 68226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 69226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gc68122daa411ea028bd521e6e9d2ca6b">krb5_get_use_admin_kdc</a> (krb5_context context)</td></tr> 70226031Sstas 71226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 72226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3776874e66baaaad19316d65aeeb4b5">krb5_add_extra_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr> 73226031Sstas 74226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 75226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g3c326674110a2d1c7d3523a0c308dddd">krb5_set_extra_addresses</a> (krb5_context context, const krb5_addresses *addresses)</td></tr> 76226031Sstas 77226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 78226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g0c24a484850684f9252c0f494da2e4c5">krb5_get_extra_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr> 79226031Sstas 80226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 81226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g666a78a6b321bdc7d174343329d0eae9">krb5_add_ignore_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr> 82226031Sstas 83226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 84226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g4d9823757dea2b9884c136fb959383bc">krb5_set_ignore_addresses</a> (krb5_context context, const krb5_addresses *addresses)</td></tr> 85226031Sstas 86226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 87226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g6f089725948937875bc2594d9b8cbaf7">krb5_get_ignore_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr> 88226031Sstas 89226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 90226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g2f77d43f11ad41cd9b5676cc73f052bc">krb5_set_fcache_version</a> (krb5_context context, int version)</td></tr> 91226031Sstas 92226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 93226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g913ff7c6bd16cd3d3cb07529345b65ba">krb5_get_fcache_version</a> (krb5_context context, int *version)</td></tr> 94226031Sstas 95226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 96226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gc5664b887b62be61c00c70fa9e290611">krb5_is_thread_safe</a> (void)</td></tr> 97226031Sstas 98226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 99226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g798fb21edcec6c7b251709f1e447b21b">krb5_set_dns_canonicalize_hostname</a> (krb5_context context, krb5_boolean flag)</td></tr> 100226031Sstas 101226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 102226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gef9f47692fc31c50afc14b581b7aa2fa">krb5_get_dns_canonicalize_hostname</a> (krb5_context context)</td></tr> 103226031Sstas 104226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 105226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gfacf61debb011b06e22e78251104efa0">krb5_get_kdc_sec_offset</a> (krb5_context context, int32_t *sec, int32_t *usec)</td></tr> 106226031Sstas 107226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 108226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gfd16890e03f6dff6f6d013d97e0ee185">krb5_set_kdc_sec_offset</a> (krb5_context context, int32_t sec, int32_t usec)</td></tr> 109226031Sstas 110226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION time_t <br> 111226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gbefb8ef32ceedc5ffe6c9440c093a533">krb5_get_max_time_skew</a> (krb5_context context)</td></tr> 112226031Sstas 113226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 114226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g2257aeff745924c48f12d1893d7523ba">krb5_set_max_time_skew</a> (krb5_context context, time_t t)</td></tr> 115226031Sstas 116226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 117226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g3a8e40d622ff1460b2f554d83a9059ea">krb5_set_home_dir_access</a> (krb5_context context, krb5_boolean allow)</td></tr> 118226031Sstas 119226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 120226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ge730027c647c418850393bce518f9d66">krb5_copy_host_realm</a> (krb5_context context, const krb5_realm *from, krb5_realm **to)</td></tr> 121226031Sstas 122226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 123226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gd89c4c7b633646c39e4a34a7230c94e1">krb5_free_cred_contents</a> (krb5_context context, krb5_creds *c)</td></tr> 124226031Sstas 125226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 126226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gc4fbae1d00b395ec9d69edabd93f432c">krb5_copy_creds_contents</a> (krb5_context context, const krb5_creds *incred, krb5_creds *c)</td></tr> 127226031Sstas 128226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 129226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gcb70cd95ac6806c3265ee6cec400b60d">krb5_copy_creds</a> (krb5_context context, const krb5_creds *incred, krb5_creds **outcred)</td></tr> 130226031Sstas 131226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 132226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g5224797a3ca4c450466ef5102164ee85">krb5_free_creds</a> (krb5_context context, krb5_creds *c)</td></tr> 133226031Sstas 134226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 135226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g45afc77b07b201272eeeaad9890b63cf">krb5_compare_creds</a> (krb5_context context, krb5_flags whichfields, const krb5_creds *mcreds, const krb5_creds *creds)</td></tr> 136226031Sstas 137226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION unsigned <br> 138226031Sstaslong KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g3e6ea2e16872304ac5cc3bed2a0abb88">krb5_creds_get_ticket_flags</a> (krb5_creds *creds)</td></tr> 139226031Sstas 140226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 141226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga059e96dde4e0b8c082eb6f3d570b7bc">krb5_data_zero</a> (krb5_data *p)</td></tr> 142226031Sstas 143226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 144226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gb4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free</a> (krb5_data *p)</td></tr> 145226031Sstas 146226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 147226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g9494f7751d3751c45a5ed4a89a5323b4">krb5_free_data</a> (krb5_context context, krb5_data *p)</td></tr> 148226031Sstas 149226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 150226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gf5b03734f6027c752381986ac0975ea9">krb5_data_alloc</a> (krb5_data *p, int len)</td></tr> 151226031Sstas 152226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 153226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g0602c7a4b056d9004db090df9886811c">krb5_data_realloc</a> (krb5_data *p, int len)</td></tr> 154226031Sstas 155226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 156226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gfb664221cde2d10fb5d1b3dfb5c55e04">krb5_data_copy</a> (krb5_data *p, const void *data, size_t len)</td></tr> 157226031Sstas 158226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 159226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g963388a0eea15e4e43dbe9c983e3e212">krb5_copy_data</a> (krb5_context context, const krb5_data *indata, krb5_data **outdata)</td></tr> 160226031Sstas 161226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gfad0906fca85d7dea0f6b762822d0ff4">krb5_data_cmp</a> (const krb5_data *data1, const krb5_data *data2)</td></tr> 162226031Sstas 163226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gcbeb984ec39d6f8ccb582816c14318ab">krb5_data_ct_cmp</a> (const krb5_data *data1, const krb5_data *data2)</td></tr> 164226031Sstas 165226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 166226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g8dcc8bb7370f2bd91bea895df7e1b1a2">krb5_krbhst_get_addrinfo</a> (krb5_context context, krb5_krbhst_info *host, struct addrinfo **ai)</td></tr> 167226031Sstas 168226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 169226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g3d994aef26269ee2b15e4d34acb28fed">krb5_free_ticket</a> (krb5_context context, krb5_ticket *ticket)</td></tr> 170226031Sstas 171226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 172226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gc2c0c5fe2dc17714287a20785623be45">krb5_copy_ticket</a> (krb5_context context, const krb5_ticket *from, krb5_ticket **to)</td></tr> 173226031Sstas 174226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 175226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g6cf23f11044d79441ea1456a01ebe7d7">krb5_ticket_get_client</a> (krb5_context context, const krb5_ticket *ticket, krb5_principal *client)</td></tr> 176226031Sstas 177226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 178226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gd1f40ffc29f379b7dec60144eefdb553">krb5_ticket_get_server</a> (krb5_context context, const krb5_ticket *ticket, krb5_principal *server)</td></tr> 179226031Sstas 180226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION time_t <br> 181226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g118b98784ccadd98cdaaa1ee5076c9fb">krb5_ticket_get_endtime</a> (krb5_context context, const krb5_ticket *ticket)</td></tr> 182226031Sstas 183226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 184226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga7387c09a85bf3aabe5bae8a2ec4af73">krb5_ticket_get_authorization_data_type</a> (krb5_context context, krb5_ticket *ticket, int type, krb5_data *data)</td></tr> 185226031Sstas 186226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 187226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#g1bb5d4ab0e2ebd85414903617b1ac36b">krb5_set_real_time</a> (krb5_context context, krb5_timestamp sec, int32_t usec)</td></tr> 188226031Sstas 189226031Sstas</table> 190226031Sstas<hr><a name="_details"></a><h2>Detailed Description</h2> 191226031Sstas<hr><h2>Function Documentation</h2> 192226031Sstas<a class="anchor" name="gc03fc138d472dd7743a0ab7ecb3061c1"></a><!-- doxytag: member="add_et_list.c::krb5_add_et_list" ref="gc03fc138d472dd7743a0ab7ecb3061c1" args="(krb5_context context, void(*func)(struct et_list **))" --> 193226031Sstas<div class="memitem"> 194226031Sstas<div class="memproto"> 195226031Sstas <table class="memname"> 196226031Sstas <tr> 197226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_et_list </td> 198226031Sstas <td>(</td> 199226031Sstas <td class="paramtype">krb5_context </td> 200226031Sstas <td class="paramname"> <em>context</em>, </td> 201226031Sstas </tr> 202226031Sstas <tr> 203226031Sstas <td class="paramkey"></td> 204226031Sstas <td></td> 205226031Sstas <td class="paramtype">void(*)(struct et_list **) </td> 206226031Sstas <td class="paramname"> <em>func</em></td><td> </td> 207226031Sstas </tr> 208226031Sstas <tr> 209226031Sstas <td></td> 210226031Sstas <td>)</td> 211226031Sstas <td></td><td></td><td></td> 212226031Sstas </tr> 213226031Sstas </table> 214226031Sstas</div> 215226031Sstas<div class="memdoc"> 216226031Sstas 217226031Sstas<p> 218226031SstasAdd a specified list of error messages to the et list in context. Call func (probably a comerr-generated function) with a pointer to the current et_list.<p> 219226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 220226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 221226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>A kerberos context. </td></tr> 222226031Sstas <tr><td valign="top"></td><td valign="top"><em>func</em> </td><td>The generated com_err et function.</td></tr> 223226031Sstas </table> 224226031Sstas</dl> 225226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 226226031Sstas 227226031Sstas</div> 228226031Sstas</div><p> 229226031Sstas<a class="anchor" name="ga3776874e66baaaad19316d65aeeb4b5"></a><!-- doxytag: member="context.c::krb5_add_extra_addresses" ref="ga3776874e66baaaad19316d65aeeb4b5" args="(krb5_context context, krb5_addresses *addresses)" --> 230226031Sstas<div class="memitem"> 231226031Sstas<div class="memproto"> 232226031Sstas <table class="memname"> 233226031Sstas <tr> 234226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_extra_addresses </td> 235226031Sstas <td>(</td> 236226031Sstas <td class="paramtype">krb5_context </td> 237226031Sstas <td class="paramname"> <em>context</em>, </td> 238226031Sstas </tr> 239226031Sstas <tr> 240226031Sstas <td class="paramkey"></td> 241226031Sstas <td></td> 242226031Sstas <td class="paramtype">krb5_addresses * </td> 243226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 244226031Sstas </tr> 245226031Sstas <tr> 246226031Sstas <td></td> 247226031Sstas <td>)</td> 248226031Sstas <td></td><td></td><td></td> 249226031Sstas </tr> 250226031Sstas </table> 251226031Sstas</div> 252226031Sstas<div class="memdoc"> 253226031Sstas 254226031Sstas<p> 255226031SstasAdd extra address to the address list that the library will add to the client's address list when communicating with the KDC.<p> 256226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 257226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 258226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 259226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>addreses to add</td></tr> 260226031Sstas </table> 261226031Sstas</dl> 262226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 263226031Sstas 264226031Sstas</div> 265226031Sstas</div><p> 266226031Sstas<a class="anchor" name="g666a78a6b321bdc7d174343329d0eae9"></a><!-- doxytag: member="context.c::krb5_add_ignore_addresses" ref="g666a78a6b321bdc7d174343329d0eae9" args="(krb5_context context, krb5_addresses *addresses)" --> 267226031Sstas<div class="memitem"> 268226031Sstas<div class="memproto"> 269226031Sstas <table class="memname"> 270226031Sstas <tr> 271226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_ignore_addresses </td> 272226031Sstas <td>(</td> 273226031Sstas <td class="paramtype">krb5_context </td> 274226031Sstas <td class="paramname"> <em>context</em>, </td> 275226031Sstas </tr> 276226031Sstas <tr> 277226031Sstas <td class="paramkey"></td> 278226031Sstas <td></td> 279226031Sstas <td class="paramtype">krb5_addresses * </td> 280226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 281226031Sstas </tr> 282226031Sstas <tr> 283226031Sstas <td></td> 284226031Sstas <td>)</td> 285226031Sstas <td></td><td></td><td></td> 286226031Sstas </tr> 287226031Sstas </table> 288226031Sstas</div> 289226031Sstas<div class="memdoc"> 290226031Sstas 291226031Sstas<p> 292226031SstasAdd extra addresses to ignore when fetching addresses from the underlaying operating system.<p> 293226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 294226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 295226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 296226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>addreses to ignore</td></tr> 297226031Sstas </table> 298226031Sstas</dl> 299226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 300226031Sstas 301226031Sstas</div> 302226031Sstas</div><p> 303226031Sstas<a class="anchor" name="g45afc77b07b201272eeeaad9890b63cf"></a><!-- doxytag: member="creds.c::krb5_compare_creds" ref="g45afc77b07b201272eeeaad9890b63cf" args="(krb5_context context, krb5_flags whichfields, const krb5_creds *mcreds, const krb5_creds *creds)" --> 304226031Sstas<div class="memitem"> 305226031Sstas<div class="memproto"> 306226031Sstas <table class="memname"> 307226031Sstas <tr> 308226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_compare_creds </td> 309226031Sstas <td>(</td> 310226031Sstas <td class="paramtype">krb5_context </td> 311226031Sstas <td class="paramname"> <em>context</em>, </td> 312226031Sstas </tr> 313226031Sstas <tr> 314226031Sstas <td class="paramkey"></td> 315226031Sstas <td></td> 316226031Sstas <td class="paramtype">krb5_flags </td> 317226031Sstas <td class="paramname"> <em>whichfields</em>, </td> 318226031Sstas </tr> 319226031Sstas <tr> 320226031Sstas <td class="paramkey"></td> 321226031Sstas <td></td> 322226031Sstas <td class="paramtype">const krb5_creds * </td> 323226031Sstas <td class="paramname"> <em>mcreds</em>, </td> 324226031Sstas </tr> 325226031Sstas <tr> 326226031Sstas <td class="paramkey"></td> 327226031Sstas <td></td> 328226031Sstas <td class="paramtype">const krb5_creds * </td> 329226031Sstas <td class="paramname"> <em>creds</em></td><td> </td> 330226031Sstas </tr> 331226031Sstas <tr> 332226031Sstas <td></td> 333226031Sstas <td>)</td> 334226031Sstas <td></td><td></td><td></td> 335226031Sstas </tr> 336226031Sstas </table> 337226031Sstas</div> 338226031Sstas<div class="memdoc"> 339226031Sstas 340226031Sstas<p> 341226031SstasReturn TRUE if `mcreds' and `creds' are equal (`whichfields' determines what equal means).<p> 342226031SstasThe following flags, set in whichfields affects the comparison:<ul> 343226031Sstas<li>KRB5_TC_MATCH_SRV_NAMEONLY Consider all realms equal when comparing the service principal.</li><li>KRB5_TC_MATCH_KEYTYPE Compare enctypes.</li><li>KRB5_TC_MATCH_FLAGS_EXACT Make sure that the ticket flags are identical.</li><li>KRB5_TC_MATCH_FLAGS Make sure that all ticket flags set in mcreds are also present in creds .</li><li>KRB5_TC_MATCH_TIMES_EXACT Compares the ticket times exactly.</li><li>KRB5_TC_MATCH_TIMES Compares only the expiration times of the creds.</li><li>KRB5_TC_MATCH_AUTHDATA Compares the authdata fields.</li><li>KRB5_TC_MATCH_2ND_TKT Compares the second tickets (used by user-to-user authentication).</li><li>KRB5_TC_MATCH_IS_SKEY Compares the existance of the second ticket.</li></ul> 344226031Sstas<p> 345226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 346226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 347226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 348226031Sstas <tr><td valign="top"></td><td valign="top"><em>whichfields</em> </td><td>which fields to compare. </td></tr> 349226031Sstas <tr><td valign="top"></td><td valign="top"><em>mcreds</em> </td><td>cred to compare with. </td></tr> 350226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>cred to compare with.</td></tr> 351226031Sstas </table> 352226031Sstas</dl> 353226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>return TRUE if mcred and creds are equal, FALSE if not. </dd></dl> 354226031Sstas 355226031Sstas</div> 356226031Sstas</div><p> 357226031Sstas<a class="anchor" name="gd30312a0ba95a71478de1b5fba34db3f"></a><!-- doxytag: member="context.c::krb5_copy_context" ref="gd30312a0ba95a71478de1b5fba34db3f" args="(krb5_context context, krb5_context *out)" --> 358226031Sstas<div class="memitem"> 359226031Sstas<div class="memproto"> 360226031Sstas <table class="memname"> 361226031Sstas <tr> 362226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_context </td> 363226031Sstas <td>(</td> 364226031Sstas <td class="paramtype">krb5_context </td> 365226031Sstas <td class="paramname"> <em>context</em>, </td> 366226031Sstas </tr> 367226031Sstas <tr> 368226031Sstas <td class="paramkey"></td> 369226031Sstas <td></td> 370226031Sstas <td class="paramtype">krb5_context * </td> 371226031Sstas <td class="paramname"> <em>out</em></td><td> </td> 372226031Sstas </tr> 373226031Sstas <tr> 374226031Sstas <td></td> 375226031Sstas <td>)</td> 376226031Sstas <td></td><td></td><td></td> 377226031Sstas </tr> 378226031Sstas </table> 379226031Sstas</div> 380226031Sstas<div class="memdoc"> 381226031Sstas 382226031Sstas<p> 383226031SstasMake a copy for the Kerberos 5 context, the new krb5_context shoud be freed with <a class="el" href="group__krb5.html#ge51d83f5d5f589883f1cd10887892777">krb5_free_context()</a>.<p> 384226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 385226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 386226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>the Kerberos context to copy </td></tr> 387226031Sstas <tr><td valign="top"></td><td valign="top"><em>out</em> </td><td>the copy of the Kerberos, set to NULL error.</td></tr> 388226031Sstas </table> 389226031Sstas</dl> 390226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 391226031Sstas 392226031Sstas</div> 393226031Sstas</div><p> 394226031Sstas<a class="anchor" name="gcb70cd95ac6806c3265ee6cec400b60d"></a><!-- doxytag: member="creds.c::krb5_copy_creds" ref="gcb70cd95ac6806c3265ee6cec400b60d" args="(krb5_context context, const krb5_creds *incred, krb5_creds **outcred)" --> 395226031Sstas<div class="memitem"> 396226031Sstas<div class="memproto"> 397226031Sstas <table class="memname"> 398226031Sstas <tr> 399226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_creds </td> 400226031Sstas <td>(</td> 401226031Sstas <td class="paramtype">krb5_context </td> 402226031Sstas <td class="paramname"> <em>context</em>, </td> 403226031Sstas </tr> 404226031Sstas <tr> 405226031Sstas <td class="paramkey"></td> 406226031Sstas <td></td> 407226031Sstas <td class="paramtype">const krb5_creds * </td> 408226031Sstas <td class="paramname"> <em>incred</em>, </td> 409226031Sstas </tr> 410226031Sstas <tr> 411226031Sstas <td class="paramkey"></td> 412226031Sstas <td></td> 413226031Sstas <td class="paramtype">krb5_creds ** </td> 414226031Sstas <td class="paramname"> <em>outcred</em></td><td> </td> 415226031Sstas </tr> 416226031Sstas <tr> 417226031Sstas <td></td> 418226031Sstas <td>)</td> 419226031Sstas <td></td><td></td><td></td> 420226031Sstas </tr> 421226031Sstas </table> 422226031Sstas</div> 423226031Sstas<div class="memdoc"> 424226031Sstas 425226031Sstas<p> 426226031SstasCopy krb5_creds.<p> 427226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 428226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 429226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 430226031Sstas <tr><td valign="top"></td><td valign="top"><em>incred</em> </td><td>source credential </td></tr> 431226031Sstas <tr><td valign="top"></td><td valign="top"><em>outcred</em> </td><td>destination credential, free with <a class="el" href="group__krb5.html#g5224797a3ca4c450466ef5102164ee85">krb5_free_creds()</a>.</td></tr> 432226031Sstas </table> 433226031Sstas</dl> 434226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 435226031Sstas 436226031Sstas</div> 437226031Sstas</div><p> 438226031Sstas<a class="anchor" name="gc4fbae1d00b395ec9d69edabd93f432c"></a><!-- doxytag: member="creds.c::krb5_copy_creds_contents" ref="gc4fbae1d00b395ec9d69edabd93f432c" args="(krb5_context context, const krb5_creds *incred, krb5_creds *c)" --> 439226031Sstas<div class="memitem"> 440226031Sstas<div class="memproto"> 441226031Sstas <table class="memname"> 442226031Sstas <tr> 443226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_creds_contents </td> 444226031Sstas <td>(</td> 445226031Sstas <td class="paramtype">krb5_context </td> 446226031Sstas <td class="paramname"> <em>context</em>, </td> 447226031Sstas </tr> 448226031Sstas <tr> 449226031Sstas <td class="paramkey"></td> 450226031Sstas <td></td> 451226031Sstas <td class="paramtype">const krb5_creds * </td> 452226031Sstas <td class="paramname"> <em>incred</em>, </td> 453226031Sstas </tr> 454226031Sstas <tr> 455226031Sstas <td class="paramkey"></td> 456226031Sstas <td></td> 457226031Sstas <td class="paramtype">krb5_creds * </td> 458226031Sstas <td class="paramname"> <em>c</em></td><td> </td> 459226031Sstas </tr> 460226031Sstas <tr> 461226031Sstas <td></td> 462226031Sstas <td>)</td> 463226031Sstas <td></td><td></td><td></td> 464226031Sstas </tr> 465226031Sstas </table> 466226031Sstas</div> 467226031Sstas<div class="memdoc"> 468226031Sstas 469226031Sstas<p> 470226031SstasCopy content of krb5_creds.<p> 471226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 472226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 473226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 474226031Sstas <tr><td valign="top"></td><td valign="top"><em>incred</em> </td><td>source credential </td></tr> 475226031Sstas <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>destination credential, free with <a class="el" href="group__krb5.html#gd89c4c7b633646c39e4a34a7230c94e1">krb5_free_cred_contents()</a>.</td></tr> 476226031Sstas </table> 477226031Sstas</dl> 478226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 479226031Sstas 480226031Sstas</div> 481226031Sstas</div><p> 482226031Sstas<a class="anchor" name="g963388a0eea15e4e43dbe9c983e3e212"></a><!-- doxytag: member="data.c::krb5_copy_data" ref="g963388a0eea15e4e43dbe9c983e3e212" args="(krb5_context context, const krb5_data *indata, krb5_data **outdata)" --> 483226031Sstas<div class="memitem"> 484226031Sstas<div class="memproto"> 485226031Sstas <table class="memname"> 486226031Sstas <tr> 487226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_data </td> 488226031Sstas <td>(</td> 489226031Sstas <td class="paramtype">krb5_context </td> 490226031Sstas <td class="paramname"> <em>context</em>, </td> 491226031Sstas </tr> 492226031Sstas <tr> 493226031Sstas <td class="paramkey"></td> 494226031Sstas <td></td> 495226031Sstas <td class="paramtype">const krb5_data * </td> 496226031Sstas <td class="paramname"> <em>indata</em>, </td> 497226031Sstas </tr> 498226031Sstas <tr> 499226031Sstas <td class="paramkey"></td> 500226031Sstas <td></td> 501226031Sstas <td class="paramtype">krb5_data ** </td> 502226031Sstas <td class="paramname"> <em>outdata</em></td><td> </td> 503226031Sstas </tr> 504226031Sstas <tr> 505226031Sstas <td></td> 506226031Sstas <td>)</td> 507226031Sstas <td></td><td></td><td></td> 508226031Sstas </tr> 509226031Sstas </table> 510226031Sstas</div> 511226031Sstas<div class="memdoc"> 512226031Sstas 513226031Sstas<p> 514226031SstasCopy the data into a newly allocated krb5_data.<p> 515226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 516226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 517226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 518226031Sstas <tr><td valign="top"></td><td valign="top"><em>indata</em> </td><td>the krb5_data data to copy </td></tr> 519226031Sstas <tr><td valign="top"></td><td valign="top"><em>outdata</em> </td><td>new krb5_date to copy too. Free with <a class="el" href="group__krb5.html#g9494f7751d3751c45a5ed4a89a5323b4">krb5_free_data()</a>.</td></tr> 520226031Sstas </table> 521226031Sstas</dl> 522226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl> 523226031Sstas 524226031Sstas</div> 525226031Sstas</div><p> 526226031Sstas<a class="anchor" name="ge730027c647c418850393bce518f9d66"></a><!-- doxytag: member="copy_host_realm.c::krb5_copy_host_realm" ref="ge730027c647c418850393bce518f9d66" args="(krb5_context context, const krb5_realm *from, krb5_realm **to)" --> 527226031Sstas<div class="memitem"> 528226031Sstas<div class="memproto"> 529226031Sstas <table class="memname"> 530226031Sstas <tr> 531226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_host_realm </td> 532226031Sstas <td>(</td> 533226031Sstas <td class="paramtype">krb5_context </td> 534226031Sstas <td class="paramname"> <em>context</em>, </td> 535226031Sstas </tr> 536226031Sstas <tr> 537226031Sstas <td class="paramkey"></td> 538226031Sstas <td></td> 539226031Sstas <td class="paramtype">const krb5_realm * </td> 540226031Sstas <td class="paramname"> <em>from</em>, </td> 541226031Sstas </tr> 542226031Sstas <tr> 543226031Sstas <td class="paramkey"></td> 544226031Sstas <td></td> 545226031Sstas <td class="paramtype">krb5_realm ** </td> 546226031Sstas <td class="paramname"> <em>to</em></td><td> </td> 547226031Sstas </tr> 548226031Sstas <tr> 549226031Sstas <td></td> 550226031Sstas <td>)</td> 551226031Sstas <td></td><td></td><td></td> 552226031Sstas </tr> 553226031Sstas </table> 554226031Sstas</div> 555226031Sstas<div class="memdoc"> 556226031Sstas 557226031Sstas<p> 558226031SstasCopy the list of realms from `from' to `to'.<p> 559226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 560226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 561226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 562226031Sstas <tr><td valign="top"></td><td valign="top"><em>from</em> </td><td>list of realms to copy from. </td></tr> 563226031Sstas <tr><td valign="top"></td><td valign="top"><em>to</em> </td><td>list of realms to copy to, free list of <a class="el" href="group__krb5__support.html#gca0ab80d3affb5986aa5061f3782401b">krb5_free_host_realm()</a>.</td></tr> 564226031Sstas </table> 565226031Sstas</dl> 566226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 567226031Sstas 568226031Sstas</div> 569226031Sstas</div><p> 570226031Sstas<a class="anchor" name="gc2c0c5fe2dc17714287a20785623be45"></a><!-- doxytag: member="ticket.c::krb5_copy_ticket" ref="gc2c0c5fe2dc17714287a20785623be45" args="(krb5_context context, const krb5_ticket *from, krb5_ticket **to)" --> 571226031Sstas<div class="memitem"> 572226031Sstas<div class="memproto"> 573226031Sstas <table class="memname"> 574226031Sstas <tr> 575226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_ticket </td> 576226031Sstas <td>(</td> 577226031Sstas <td class="paramtype">krb5_context </td> 578226031Sstas <td class="paramname"> <em>context</em>, </td> 579226031Sstas </tr> 580226031Sstas <tr> 581226031Sstas <td class="paramkey"></td> 582226031Sstas <td></td> 583226031Sstas <td class="paramtype">const krb5_ticket * </td> 584226031Sstas <td class="paramname"> <em>from</em>, </td> 585226031Sstas </tr> 586226031Sstas <tr> 587226031Sstas <td class="paramkey"></td> 588226031Sstas <td></td> 589226031Sstas <td class="paramtype">krb5_ticket ** </td> 590226031Sstas <td class="paramname"> <em>to</em></td><td> </td> 591226031Sstas </tr> 592226031Sstas <tr> 593226031Sstas <td></td> 594226031Sstas <td>)</td> 595226031Sstas <td></td><td></td><td></td> 596226031Sstas </tr> 597226031Sstas </table> 598226031Sstas</div> 599226031Sstas<div class="memdoc"> 600226031Sstas 601226031Sstas<p> 602226031SstasCopy ticket and content<p> 603226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 604226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 605226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 606226031Sstas <tr><td valign="top"></td><td valign="top"><em>from</em> </td><td>ticket to copy </td></tr> 607226031Sstas <tr><td valign="top"></td><td valign="top"><em>to</em> </td><td>new copy of ticket, free with <a class="el" href="group__krb5.html#g3d994aef26269ee2b15e4d34acb28fed">krb5_free_ticket()</a></td></tr> 608226031Sstas </table> 609226031Sstas</dl> 610226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 611226031Sstas 612226031Sstas</div> 613226031Sstas</div><p> 614226031Sstas<a class="anchor" name="g3e6ea2e16872304ac5cc3bed2a0abb88"></a><!-- doxytag: member="creds.c::krb5_creds_get_ticket_flags" ref="g3e6ea2e16872304ac5cc3bed2a0abb88" args="(krb5_creds *creds)" --> 615226031Sstas<div class="memitem"> 616226031Sstas<div class="memproto"> 617226031Sstas <table class="memname"> 618226031Sstas <tr> 619226031Sstas <td class="memname">KRB5_LIB_FUNCTION unsigned long KRB5_LIB_CALL krb5_creds_get_ticket_flags </td> 620226031Sstas <td>(</td> 621226031Sstas <td class="paramtype">krb5_creds * </td> 622226031Sstas <td class="paramname"> <em>creds</em> </td> 623226031Sstas <td> ) </td> 624226031Sstas <td></td> 625226031Sstas </tr> 626226031Sstas </table> 627226031Sstas</div> 628226031Sstas<div class="memdoc"> 629226031Sstas 630226031Sstas<p> 631226031SstasReturns the ticket flags for the credentials in creds. See also <a class="el" href="group__krb5__ticket.html#gb6a75ab695ff8478394084138af9eb16">krb5_ticket_get_flags()</a>.<p> 632226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 633226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 634226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>credential to get ticket flags from</td></tr> 635226031Sstas </table> 636226031Sstas</dl> 637226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>ticket flags </dd></dl> 638226031Sstas 639226031Sstas</div> 640226031Sstas</div><p> 641226031Sstas<a class="anchor" name="gf5b03734f6027c752381986ac0975ea9"></a><!-- doxytag: member="data.c::krb5_data_alloc" ref="gf5b03734f6027c752381986ac0975ea9" args="(krb5_data *p, int len)" --> 642226031Sstas<div class="memitem"> 643226031Sstas<div class="memproto"> 644226031Sstas <table class="memname"> 645226031Sstas <tr> 646226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_alloc </td> 647226031Sstas <td>(</td> 648226031Sstas <td class="paramtype">krb5_data * </td> 649226031Sstas <td class="paramname"> <em>p</em>, </td> 650226031Sstas </tr> 651226031Sstas <tr> 652226031Sstas <td class="paramkey"></td> 653226031Sstas <td></td> 654226031Sstas <td class="paramtype">int </td> 655226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 656226031Sstas </tr> 657226031Sstas <tr> 658226031Sstas <td></td> 659226031Sstas <td>)</td> 660226031Sstas <td></td><td></td><td></td> 661226031Sstas </tr> 662226031Sstas </table> 663226031Sstas</div> 664226031Sstas<div class="memdoc"> 665226031Sstas 666226031Sstas<p> 667226031SstasAllocate data of and krb5_data.<p> 668226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 669226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 670226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to allocate. </td></tr> 671226031Sstas <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>size to allocate.</td></tr> 672226031Sstas </table> 673226031Sstas</dl> 674226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl> 675226031Sstas 676226031Sstas</div> 677226031Sstas</div><p> 678226031Sstas<a class="anchor" name="gfad0906fca85d7dea0f6b762822d0ff4"></a><!-- doxytag: member="data.c::krb5_data_cmp" ref="gfad0906fca85d7dea0f6b762822d0ff4" args="(const krb5_data *data1, const krb5_data *data2)" --> 679226031Sstas<div class="memitem"> 680226031Sstas<div class="memproto"> 681226031Sstas <table class="memname"> 682226031Sstas <tr> 683226031Sstas <td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_data_cmp </td> 684226031Sstas <td>(</td> 685226031Sstas <td class="paramtype">const krb5_data * </td> 686226031Sstas <td class="paramname"> <em>data1</em>, </td> 687226031Sstas </tr> 688226031Sstas <tr> 689226031Sstas <td class="paramkey"></td> 690226031Sstas <td></td> 691226031Sstas <td class="paramtype">const krb5_data * </td> 692226031Sstas <td class="paramname"> <em>data2</em></td><td> </td> 693226031Sstas </tr> 694226031Sstas <tr> 695226031Sstas <td></td> 696226031Sstas <td>)</td> 697226031Sstas <td></td><td></td><td></td> 698226031Sstas </tr> 699226031Sstas </table> 700226031Sstas</div> 701226031Sstas<div class="memdoc"> 702226031Sstas 703226031Sstas<p> 704226031SstasCompare to data.<p> 705226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 706226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 707226031Sstas <tr><td valign="top"></td><td valign="top"><em>data1</em> </td><td>krb5_data to compare </td></tr> 708226031Sstas <tr><td valign="top"></td><td valign="top"><em>data2</em> </td><td>krb5_data to compare</td></tr> 709226031Sstas </table> 710226031Sstas</dl> 711226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>return the same way as memcmp(), useful when sorting. </dd></dl> 712226031Sstas 713226031Sstas</div> 714226031Sstas</div><p> 715226031Sstas<a class="anchor" name="gfb664221cde2d10fb5d1b3dfb5c55e04"></a><!-- doxytag: member="data.c::krb5_data_copy" ref="gfb664221cde2d10fb5d1b3dfb5c55e04" args="(krb5_data *p, const void *data, size_t len)" --> 716226031Sstas<div class="memitem"> 717226031Sstas<div class="memproto"> 718226031Sstas <table class="memname"> 719226031Sstas <tr> 720226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_copy </td> 721226031Sstas <td>(</td> 722226031Sstas <td class="paramtype">krb5_data * </td> 723226031Sstas <td class="paramname"> <em>p</em>, </td> 724226031Sstas </tr> 725226031Sstas <tr> 726226031Sstas <td class="paramkey"></td> 727226031Sstas <td></td> 728226031Sstas <td class="paramtype">const void * </td> 729226031Sstas <td class="paramname"> <em>data</em>, </td> 730226031Sstas </tr> 731226031Sstas <tr> 732226031Sstas <td class="paramkey"></td> 733226031Sstas <td></td> 734226031Sstas <td class="paramtype">size_t </td> 735226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 736226031Sstas </tr> 737226031Sstas <tr> 738226031Sstas <td></td> 739226031Sstas <td>)</td> 740226031Sstas <td></td><td></td><td></td> 741226031Sstas </tr> 742226031Sstas </table> 743226031Sstas</div> 744226031Sstas<div class="memdoc"> 745226031Sstas 746226031Sstas<p> 747226031SstasCopy the data of len into the krb5_data.<p> 748226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 749226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 750226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to copy into. </td></tr> 751226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>data to copy.. </td></tr> 752226031Sstas <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>new size.</td></tr> 753226031Sstas </table> 754226031Sstas</dl> 755226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl> 756226031Sstas 757226031Sstas</div> 758226031Sstas</div><p> 759226031Sstas<a class="anchor" name="gcbeb984ec39d6f8ccb582816c14318ab"></a><!-- doxytag: member="data.c::krb5_data_ct_cmp" ref="gcbeb984ec39d6f8ccb582816c14318ab" args="(const krb5_data *data1, const krb5_data *data2)" --> 760226031Sstas<div class="memitem"> 761226031Sstas<div class="memproto"> 762226031Sstas <table class="memname"> 763226031Sstas <tr> 764226031Sstas <td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_data_ct_cmp </td> 765226031Sstas <td>(</td> 766226031Sstas <td class="paramtype">const krb5_data * </td> 767226031Sstas <td class="paramname"> <em>data1</em>, </td> 768226031Sstas </tr> 769226031Sstas <tr> 770226031Sstas <td class="paramkey"></td> 771226031Sstas <td></td> 772226031Sstas <td class="paramtype">const krb5_data * </td> 773226031Sstas <td class="paramname"> <em>data2</em></td><td> </td> 774226031Sstas </tr> 775226031Sstas <tr> 776226031Sstas <td></td> 777226031Sstas <td>)</td> 778226031Sstas <td></td><td></td><td></td> 779226031Sstas </tr> 780226031Sstas </table> 781226031Sstas</div> 782226031Sstas<div class="memdoc"> 783226031Sstas 784226031Sstas<p> 785226031SstasCompare to data not exposing timing information from the checksum data<p> 786226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 787226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 788226031Sstas <tr><td valign="top"></td><td valign="top"><em>data1</em> </td><td>krb5_data to compare </td></tr> 789226031Sstas <tr><td valign="top"></td><td valign="top"><em>data2</em> </td><td>krb5_data to compare</td></tr> 790226031Sstas </table> 791226031Sstas</dl> 792226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>returns zero for same data, otherwise non zero. </dd></dl> 793226031Sstas 794226031Sstas</div> 795226031Sstas</div><p> 796226031Sstas<a class="anchor" name="gb4b80ac7a8bbab89fe947ae1c7828ea8"></a><!-- doxytag: member="data.c::krb5_data_free" ref="gb4b80ac7a8bbab89fe947ae1c7828ea8" args="(krb5_data *p)" --> 797226031Sstas<div class="memitem"> 798226031Sstas<div class="memproto"> 799226031Sstas <table class="memname"> 800226031Sstas <tr> 801226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_data_free </td> 802226031Sstas <td>(</td> 803226031Sstas <td class="paramtype">krb5_data * </td> 804226031Sstas <td class="paramname"> <em>p</em> </td> 805226031Sstas <td> ) </td> 806226031Sstas <td></td> 807226031Sstas </tr> 808226031Sstas </table> 809226031Sstas</div> 810226031Sstas<div class="memdoc"> 811226031Sstas 812226031Sstas<p> 813226031SstasFree the content of krb5_data structure, its ok to free a zeroed structure (with memset() or <a class="el" href="group__krb5.html#ga059e96dde4e0b8c082eb6f3d570b7bc">krb5_data_zero()</a>). When done, the structure will be zeroed. The same function is called <a class="el" href="group__krb5__deprecated.html#g220b8b17e81dc71dd3ecd1b079160db9">krb5_free_data_contents()</a> in MIT Kerberos.<p> 814226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 815226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 816226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to free. </td></tr> 817226031Sstas </table> 818226031Sstas</dl> 819226031Sstas 820226031Sstas</div> 821226031Sstas</div><p> 822226031Sstas<a class="anchor" name="g0602c7a4b056d9004db090df9886811c"></a><!-- doxytag: member="data.c::krb5_data_realloc" ref="g0602c7a4b056d9004db090df9886811c" args="(krb5_data *p, int len)" --> 823226031Sstas<div class="memitem"> 824226031Sstas<div class="memproto"> 825226031Sstas <table class="memname"> 826226031Sstas <tr> 827226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_realloc </td> 828226031Sstas <td>(</td> 829226031Sstas <td class="paramtype">krb5_data * </td> 830226031Sstas <td class="paramname"> <em>p</em>, </td> 831226031Sstas </tr> 832226031Sstas <tr> 833226031Sstas <td class="paramkey"></td> 834226031Sstas <td></td> 835226031Sstas <td class="paramtype">int </td> 836226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 837226031Sstas </tr> 838226031Sstas <tr> 839226031Sstas <td></td> 840226031Sstas <td>)</td> 841226031Sstas <td></td><td></td><td></td> 842226031Sstas </tr> 843226031Sstas </table> 844226031Sstas</div> 845226031Sstas<div class="memdoc"> 846226031Sstas 847226031Sstas<p> 848226031SstasGrow (or shrink) the content of krb5_data to a new size.<p> 849226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 850226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 851226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to free. </td></tr> 852226031Sstas <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>new size.</td></tr> 853226031Sstas </table> 854226031Sstas</dl> 855226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl> 856226031Sstas 857226031Sstas</div> 858226031Sstas</div><p> 859226031Sstas<a class="anchor" name="ga059e96dde4e0b8c082eb6f3d570b7bc"></a><!-- doxytag: member="data.c::krb5_data_zero" ref="ga059e96dde4e0b8c082eb6f3d570b7bc" args="(krb5_data *p)" --> 860226031Sstas<div class="memitem"> 861226031Sstas<div class="memproto"> 862226031Sstas <table class="memname"> 863226031Sstas <tr> 864226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_data_zero </td> 865226031Sstas <td>(</td> 866226031Sstas <td class="paramtype">krb5_data * </td> 867226031Sstas <td class="paramname"> <em>p</em> </td> 868226031Sstas <td> ) </td> 869226031Sstas <td></td> 870226031Sstas </tr> 871226031Sstas </table> 872226031Sstas</div> 873226031Sstas<div class="memdoc"> 874226031Sstas 875226031Sstas<p> 876226031SstasReset the (potentially uninitalized) krb5_data structure.<p> 877226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 878226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 879226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to reset. </td></tr> 880226031Sstas </table> 881226031Sstas</dl> 882226031Sstas 883226031Sstas</div> 884226031Sstas</div><p> 885226031Sstas<a class="anchor" name="gce1b568d05875e7c4fbc6e5af5a8bdbf"></a><!-- doxytag: member="context.c::krb5_free_config_files" ref="gce1b568d05875e7c4fbc6e5af5a8bdbf" args="(char **filenames)" --> 886226031Sstas<div class="memitem"> 887226031Sstas<div class="memproto"> 888226031Sstas <table class="memname"> 889226031Sstas <tr> 890226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_config_files </td> 891226031Sstas <td>(</td> 892226031Sstas <td class="paramtype">char ** </td> 893226031Sstas <td class="paramname"> <em>filenames</em> </td> 894226031Sstas <td> ) </td> 895226031Sstas <td></td> 896226031Sstas </tr> 897226031Sstas </table> 898226031Sstas</div> 899226031Sstas<div class="memdoc"> 900226031Sstas 901226031Sstas<p> 902226031SstasFree a list of configuration files.<p> 903226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 904226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 905226031Sstas <tr><td valign="top"></td><td valign="top"><em>filenames</em> </td><td>list, terminated with a NULL pointer, to be freed. NULL is an valid argument.</td></tr> 906226031Sstas </table> 907226031Sstas</dl> 908226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 909226031Sstas 910226031Sstas</div> 911226031Sstas</div><p> 912226031Sstas<a class="anchor" name="ge51d83f5d5f589883f1cd10887892777"></a><!-- doxytag: member="context.c::krb5_free_context" ref="ge51d83f5d5f589883f1cd10887892777" args="(krb5_context context)" --> 913226031Sstas<div class="memitem"> 914226031Sstas<div class="memproto"> 915226031Sstas <table class="memname"> 916226031Sstas <tr> 917226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_context </td> 918226031Sstas <td>(</td> 919226031Sstas <td class="paramtype">krb5_context </td> 920226031Sstas <td class="paramname"> <em>context</em> </td> 921226031Sstas <td> ) </td> 922226031Sstas <td></td> 923226031Sstas </tr> 924226031Sstas </table> 925226031Sstas</div> 926226031Sstas<div class="memdoc"> 927226031Sstas 928226031Sstas<p> 929226031SstasFrees the krb5_context allocated by <a class="el" href="group__krb5.html#gbd94206e186c58a093975424a4a567a8">krb5_init_context()</a>.<p> 930226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 931226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 932226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>context to be freed. </td></tr> 933226031Sstas </table> 934226031Sstas</dl> 935226031Sstas 936226031Sstas</div> 937226031Sstas</div><p> 938226031Sstas<a class="anchor" name="gd89c4c7b633646c39e4a34a7230c94e1"></a><!-- doxytag: member="creds.c::krb5_free_cred_contents" ref="gd89c4c7b633646c39e4a34a7230c94e1" args="(krb5_context context, krb5_creds *c)" --> 939226031Sstas<div class="memitem"> 940226031Sstas<div class="memproto"> 941226031Sstas <table class="memname"> 942226031Sstas <tr> 943226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_cred_contents </td> 944226031Sstas <td>(</td> 945226031Sstas <td class="paramtype">krb5_context </td> 946226031Sstas <td class="paramname"> <em>context</em>, </td> 947226031Sstas </tr> 948226031Sstas <tr> 949226031Sstas <td class="paramkey"></td> 950226031Sstas <td></td> 951226031Sstas <td class="paramtype">krb5_creds * </td> 952226031Sstas <td class="paramname"> <em>c</em></td><td> </td> 953226031Sstas </tr> 954226031Sstas <tr> 955226031Sstas <td></td> 956226031Sstas <td>)</td> 957226031Sstas <td></td><td></td><td></td> 958226031Sstas </tr> 959226031Sstas </table> 960226031Sstas</div> 961226031Sstas<div class="memdoc"> 962226031Sstas 963226031Sstas<p> 964226031SstasFree content of krb5_creds.<p> 965226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 966226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 967226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 968226031Sstas <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>krb5_creds to free.</td></tr> 969226031Sstas </table> 970226031Sstas</dl> 971226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 972226031Sstas 973226031Sstas</div> 974226031Sstas</div><p> 975226031Sstas<a class="anchor" name="g5224797a3ca4c450466ef5102164ee85"></a><!-- doxytag: member="creds.c::krb5_free_creds" ref="g5224797a3ca4c450466ef5102164ee85" args="(krb5_context context, krb5_creds *c)" --> 976226031Sstas<div class="memitem"> 977226031Sstas<div class="memproto"> 978226031Sstas <table class="memname"> 979226031Sstas <tr> 980226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_creds </td> 981226031Sstas <td>(</td> 982226031Sstas <td class="paramtype">krb5_context </td> 983226031Sstas <td class="paramname"> <em>context</em>, </td> 984226031Sstas </tr> 985226031Sstas <tr> 986226031Sstas <td class="paramkey"></td> 987226031Sstas <td></td> 988226031Sstas <td class="paramtype">krb5_creds * </td> 989226031Sstas <td class="paramname"> <em>c</em></td><td> </td> 990226031Sstas </tr> 991226031Sstas <tr> 992226031Sstas <td></td> 993226031Sstas <td>)</td> 994226031Sstas <td></td><td></td><td></td> 995226031Sstas </tr> 996226031Sstas </table> 997226031Sstas</div> 998226031Sstas<div class="memdoc"> 999226031Sstas 1000226031Sstas<p> 1001226031SstasFree krb5_creds.<p> 1002226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1003226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1004226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1005226031Sstas <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>krb5_creds to free.</td></tr> 1006226031Sstas </table> 1007226031Sstas</dl> 1008226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1009226031Sstas 1010226031Sstas</div> 1011226031Sstas</div><p> 1012226031Sstas<a class="anchor" name="g9494f7751d3751c45a5ed4a89a5323b4"></a><!-- doxytag: member="data.c::krb5_free_data" ref="g9494f7751d3751c45a5ed4a89a5323b4" args="(krb5_context context, krb5_data *p)" --> 1013226031Sstas<div class="memitem"> 1014226031Sstas<div class="memproto"> 1015226031Sstas <table class="memname"> 1016226031Sstas <tr> 1017226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_data </td> 1018226031Sstas <td>(</td> 1019226031Sstas <td class="paramtype">krb5_context </td> 1020226031Sstas <td class="paramname"> <em>context</em>, </td> 1021226031Sstas </tr> 1022226031Sstas <tr> 1023226031Sstas <td class="paramkey"></td> 1024226031Sstas <td></td> 1025226031Sstas <td class="paramtype">krb5_data * </td> 1026226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 1027226031Sstas </tr> 1028226031Sstas <tr> 1029226031Sstas <td></td> 1030226031Sstas <td>)</td> 1031226031Sstas <td></td><td></td><td></td> 1032226031Sstas </tr> 1033226031Sstas </table> 1034226031Sstas</div> 1035226031Sstas<div class="memdoc"> 1036226031Sstas 1037226031Sstas<p> 1038226031SstasFree krb5_data (and its content).<p> 1039226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1040226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1041226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1042226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>krb5_data to free. </td></tr> 1043226031Sstas </table> 1044226031Sstas</dl> 1045226031Sstas 1046226031Sstas</div> 1047226031Sstas</div><p> 1048226031Sstas<a class="anchor" name="g3d994aef26269ee2b15e4d34acb28fed"></a><!-- doxytag: member="ticket.c::krb5_free_ticket" ref="g3d994aef26269ee2b15e4d34acb28fed" args="(krb5_context context, krb5_ticket *ticket)" --> 1049226031Sstas<div class="memitem"> 1050226031Sstas<div class="memproto"> 1051226031Sstas <table class="memname"> 1052226031Sstas <tr> 1053226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_ticket </td> 1054226031Sstas <td>(</td> 1055226031Sstas <td class="paramtype">krb5_context </td> 1056226031Sstas <td class="paramname"> <em>context</em>, </td> 1057226031Sstas </tr> 1058226031Sstas <tr> 1059226031Sstas <td class="paramkey"></td> 1060226031Sstas <td></td> 1061226031Sstas <td class="paramtype">krb5_ticket * </td> 1062226031Sstas <td class="paramname"> <em>ticket</em></td><td> </td> 1063226031Sstas </tr> 1064226031Sstas <tr> 1065226031Sstas <td></td> 1066226031Sstas <td>)</td> 1067226031Sstas <td></td><td></td><td></td> 1068226031Sstas </tr> 1069226031Sstas </table> 1070226031Sstas</div> 1071226031Sstas<div class="memdoc"> 1072226031Sstas 1073226031Sstas<p> 1074226031SstasFree ticket and content<p> 1075226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1076226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1077226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 1078226031Sstas <tr><td valign="top"></td><td valign="top"><em>ticket</em> </td><td>ticket to free</td></tr> 1079226031Sstas </table> 1080226031Sstas</dl> 1081226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1082226031Sstas 1083226031Sstas</div> 1084226031Sstas</div><p> 1085226031Sstas<a class="anchor" name="g4276c71bee1ba0c9f2bbd659cd351cb3"></a><!-- doxytag: member="context.c::krb5_get_default_config_files" ref="g4276c71bee1ba0c9f2bbd659cd351cb3" args="(char ***pfilenames)" --> 1086226031Sstas<div class="memitem"> 1087226031Sstas<div class="memproto"> 1088226031Sstas <table class="memname"> 1089226031Sstas <tr> 1090226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_default_config_files </td> 1091226031Sstas <td>(</td> 1092226031Sstas <td class="paramtype">char *** </td> 1093226031Sstas <td class="paramname"> <em>pfilenames</em> </td> 1094226031Sstas <td> ) </td> 1095226031Sstas <td></td> 1096226031Sstas </tr> 1097226031Sstas </table> 1098226031Sstas</div> 1099226031Sstas<div class="memdoc"> 1100226031Sstas 1101226031Sstas<p> 1102226031SstasGet the global configuration list.<p> 1103226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1104226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1105226031Sstas <tr><td valign="top"></td><td valign="top"><em>pfilenames</em> </td><td>return array of filenames, should be freed with <a class="el" href="group__krb5.html#gce1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files()</a>.</td></tr> 1106226031Sstas </table> 1107226031Sstas</dl> 1108226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1109226031Sstas 1110226031Sstas</div> 1111226031Sstas</div><p> 1112226031Sstas<a class="anchor" name="ga2bba3d683f1280ddfe8430d834bd5e8"></a><!-- doxytag: member="context.c::krb5_get_default_in_tkt_etypes" ref="ga2bba3d683f1280ddfe8430d834bd5e8" args="(krb5_context context, krb5_pdu pdu_type, krb5_enctype **etypes)" --> 1113226031Sstas<div class="memitem"> 1114226031Sstas<div class="memproto"> 1115226031Sstas <table class="memname"> 1116226031Sstas <tr> 1117226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_default_in_tkt_etypes </td> 1118226031Sstas <td>(</td> 1119226031Sstas <td class="paramtype">krb5_context </td> 1120226031Sstas <td class="paramname"> <em>context</em>, </td> 1121226031Sstas </tr> 1122226031Sstas <tr> 1123226031Sstas <td class="paramkey"></td> 1124226031Sstas <td></td> 1125226031Sstas <td class="paramtype">krb5_pdu </td> 1126226031Sstas <td class="paramname"> <em>pdu_type</em>, </td> 1127226031Sstas </tr> 1128226031Sstas <tr> 1129226031Sstas <td class="paramkey"></td> 1130226031Sstas <td></td> 1131226031Sstas <td class="paramtype">krb5_enctype ** </td> 1132226031Sstas <td class="paramname"> <em>etypes</em></td><td> </td> 1133226031Sstas </tr> 1134226031Sstas <tr> 1135226031Sstas <td></td> 1136226031Sstas <td>)</td> 1137226031Sstas <td></td><td></td><td></td> 1138226031Sstas </tr> 1139226031Sstas </table> 1140226031Sstas</div> 1141226031Sstas<div class="memdoc"> 1142226031Sstas 1143226031Sstas<p> 1144226031SstasGet the default encryption types that will be use in communcation with the KDC, clients and servers.<p> 1145226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1146226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1147226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1148226031Sstas <tr><td valign="top"></td><td valign="top"><em>etypes</em> </td><td>Encryption types, array terminated with ETYPE_NULL(0), caller should free array with krb5_xfree():</td></tr> 1149226031Sstas </table> 1150226031Sstas</dl> 1151226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1152226031Sstas 1153226031Sstas</div> 1154226031Sstas</div><p> 1155226031Sstas<a class="anchor" name="gef9f47692fc31c50afc14b581b7aa2fa"></a><!-- doxytag: member="context.c::krb5_get_dns_canonicalize_hostname" ref="gef9f47692fc31c50afc14b581b7aa2fa" args="(krb5_context context)" --> 1156226031Sstas<div class="memitem"> 1157226031Sstas<div class="memproto"> 1158226031Sstas <table class="memname"> 1159226031Sstas <tr> 1160226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_get_dns_canonicalize_hostname </td> 1161226031Sstas <td>(</td> 1162226031Sstas <td class="paramtype">krb5_context </td> 1163226031Sstas <td class="paramname"> <em>context</em> </td> 1164226031Sstas <td> ) </td> 1165226031Sstas <td></td> 1166226031Sstas </tr> 1167226031Sstas </table> 1168226031Sstas</div> 1169226031Sstas<div class="memdoc"> 1170226031Sstas 1171226031Sstas<p> 1172226031SstasGet if the library uses DNS to canonicalize hostnames.<p> 1173226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1174226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1175226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context.</td></tr> 1176226031Sstas </table> 1177226031Sstas</dl> 1178226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>return non zero if the library uses DNS to canonicalize hostnames. </dd></dl> 1179226031Sstas 1180226031Sstas</div> 1181226031Sstas</div><p> 1182226031Sstas<a class="anchor" name="g0c24a484850684f9252c0f494da2e4c5"></a><!-- doxytag: member="context.c::krb5_get_extra_addresses" ref="g0c24a484850684f9252c0f494da2e4c5" args="(krb5_context context, krb5_addresses *addresses)" --> 1183226031Sstas<div class="memitem"> 1184226031Sstas<div class="memproto"> 1185226031Sstas <table class="memname"> 1186226031Sstas <tr> 1187226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_extra_addresses </td> 1188226031Sstas <td>(</td> 1189226031Sstas <td class="paramtype">krb5_context </td> 1190226031Sstas <td class="paramname"> <em>context</em>, </td> 1191226031Sstas </tr> 1192226031Sstas <tr> 1193226031Sstas <td class="paramkey"></td> 1194226031Sstas <td></td> 1195226031Sstas <td class="paramtype">krb5_addresses * </td> 1196226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 1197226031Sstas </tr> 1198226031Sstas <tr> 1199226031Sstas <td></td> 1200226031Sstas <td>)</td> 1201226031Sstas <td></td><td></td><td></td> 1202226031Sstas </tr> 1203226031Sstas </table> 1204226031Sstas</div> 1205226031Sstas<div class="memdoc"> 1206226031Sstas 1207226031Sstas<p> 1208226031SstasGet extra address to the address list that the library will add to the client's address list when communicating with the KDC.<p> 1209226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1210226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1211226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1212226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>addreses to set</td></tr> 1213226031Sstas </table> 1214226031Sstas</dl> 1215226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1216226031Sstas 1217226031Sstas</div> 1218226031Sstas</div><p> 1219226031Sstas<a class="anchor" name="g913ff7c6bd16cd3d3cb07529345b65ba"></a><!-- doxytag: member="context.c::krb5_get_fcache_version" ref="g913ff7c6bd16cd3d3cb07529345b65ba" args="(krb5_context context, int *version)" --> 1220226031Sstas<div class="memitem"> 1221226031Sstas<div class="memproto"> 1222226031Sstas <table class="memname"> 1223226031Sstas <tr> 1224226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_fcache_version </td> 1225226031Sstas <td>(</td> 1226226031Sstas <td class="paramtype">krb5_context </td> 1227226031Sstas <td class="paramname"> <em>context</em>, </td> 1228226031Sstas </tr> 1229226031Sstas <tr> 1230226031Sstas <td class="paramkey"></td> 1231226031Sstas <td></td> 1232226031Sstas <td class="paramtype">int * </td> 1233226031Sstas <td class="paramname"> <em>version</em></td><td> </td> 1234226031Sstas </tr> 1235226031Sstas <tr> 1236226031Sstas <td></td> 1237226031Sstas <td>)</td> 1238226031Sstas <td></td><td></td><td></td> 1239226031Sstas </tr> 1240226031Sstas </table> 1241226031Sstas</div> 1242226031Sstas<div class="memdoc"> 1243226031Sstas 1244226031Sstas<p> 1245226031SstasGet version of fcache that the library should use.<p> 1246226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1247226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1248226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1249226031Sstas <tr><td valign="top"></td><td valign="top"><em>version</em> </td><td>version number.</td></tr> 1250226031Sstas </table> 1251226031Sstas</dl> 1252226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1253226031Sstas 1254226031Sstas</div> 1255226031Sstas</div><p> 1256226031Sstas<a class="anchor" name="g6f089725948937875bc2594d9b8cbaf7"></a><!-- doxytag: member="context.c::krb5_get_ignore_addresses" ref="g6f089725948937875bc2594d9b8cbaf7" args="(krb5_context context, krb5_addresses *addresses)" --> 1257226031Sstas<div class="memitem"> 1258226031Sstas<div class="memproto"> 1259226031Sstas <table class="memname"> 1260226031Sstas <tr> 1261226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_ignore_addresses </td> 1262226031Sstas <td>(</td> 1263226031Sstas <td class="paramtype">krb5_context </td> 1264226031Sstas <td class="paramname"> <em>context</em>, </td> 1265226031Sstas </tr> 1266226031Sstas <tr> 1267226031Sstas <td class="paramkey"></td> 1268226031Sstas <td></td> 1269226031Sstas <td class="paramtype">krb5_addresses * </td> 1270226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 1271226031Sstas </tr> 1272226031Sstas <tr> 1273226031Sstas <td></td> 1274226031Sstas <td>)</td> 1275226031Sstas <td></td><td></td><td></td> 1276226031Sstas </tr> 1277226031Sstas </table> 1278226031Sstas</div> 1279226031Sstas<div class="memdoc"> 1280226031Sstas 1281226031Sstas<p> 1282226031SstasGet extra addresses to ignore when fetching addresses from the underlaying operating system.<p> 1283226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1284226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1285226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1286226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>list addreses ignored</td></tr> 1287226031Sstas </table> 1288226031Sstas</dl> 1289226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1290226031Sstas 1291226031Sstas</div> 1292226031Sstas</div><p> 1293226031Sstas<a class="anchor" name="gfacf61debb011b06e22e78251104efa0"></a><!-- doxytag: member="context.c::krb5_get_kdc_sec_offset" ref="gfacf61debb011b06e22e78251104efa0" args="(krb5_context context, int32_t *sec, int32_t *usec)" --> 1294226031Sstas<div class="memitem"> 1295226031Sstas<div class="memproto"> 1296226031Sstas <table class="memname"> 1297226031Sstas <tr> 1298226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_kdc_sec_offset </td> 1299226031Sstas <td>(</td> 1300226031Sstas <td class="paramtype">krb5_context </td> 1301226031Sstas <td class="paramname"> <em>context</em>, </td> 1302226031Sstas </tr> 1303226031Sstas <tr> 1304226031Sstas <td class="paramkey"></td> 1305226031Sstas <td></td> 1306226031Sstas <td class="paramtype">int32_t * </td> 1307226031Sstas <td class="paramname"> <em>sec</em>, </td> 1308226031Sstas </tr> 1309226031Sstas <tr> 1310226031Sstas <td class="paramkey"></td> 1311226031Sstas <td></td> 1312226031Sstas <td class="paramtype">int32_t * </td> 1313226031Sstas <td class="paramname"> <em>usec</em></td><td> </td> 1314226031Sstas </tr> 1315226031Sstas <tr> 1316226031Sstas <td></td> 1317226031Sstas <td>)</td> 1318226031Sstas <td></td><td></td><td></td> 1319226031Sstas </tr> 1320226031Sstas </table> 1321226031Sstas</div> 1322226031Sstas<div class="memdoc"> 1323226031Sstas 1324226031Sstas<p> 1325226031SstasGet current offset in time to the KDC.<p> 1326226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1327226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1328226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1329226031Sstas <tr><td valign="top"></td><td valign="top"><em>sec</em> </td><td>seconds part of offset. </td></tr> 1330226031Sstas <tr><td valign="top"></td><td valign="top"><em>usec</em> </td><td>micro seconds part of offset.</td></tr> 1331226031Sstas </table> 1332226031Sstas</dl> 1333226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>returns zero </dd></dl> 1334226031Sstas 1335226031Sstas</div> 1336226031Sstas</div><p> 1337226031Sstas<a class="anchor" name="gbefb8ef32ceedc5ffe6c9440c093a533"></a><!-- doxytag: member="context.c::krb5_get_max_time_skew" ref="gbefb8ef32ceedc5ffe6c9440c093a533" args="(krb5_context context)" --> 1338226031Sstas<div class="memitem"> 1339226031Sstas<div class="memproto"> 1340226031Sstas <table class="memname"> 1341226031Sstas <tr> 1342226031Sstas <td class="memname">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL krb5_get_max_time_skew </td> 1343226031Sstas <td>(</td> 1344226031Sstas <td class="paramtype">krb5_context </td> 1345226031Sstas <td class="paramname"> <em>context</em> </td> 1346226031Sstas <td> ) </td> 1347226031Sstas <td></td> 1348226031Sstas </tr> 1349226031Sstas </table> 1350226031Sstas</div> 1351226031Sstas<div class="memdoc"> 1352226031Sstas 1353226031Sstas<p> 1354226031SstasGet max time skew allowed.<p> 1355226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1356226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1357226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context.</td></tr> 1358226031Sstas </table> 1359226031Sstas</dl> 1360226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>timeskew in seconds. </dd></dl> 1361226031Sstas 1362226031Sstas</div> 1363226031Sstas</div><p> 1364226031Sstas<a class="anchor" name="gc68122daa411ea028bd521e6e9d2ca6b"></a><!-- doxytag: member="context.c::krb5_get_use_admin_kdc" ref="gc68122daa411ea028bd521e6e9d2ca6b" args="(krb5_context context)" --> 1365226031Sstas<div class="memitem"> 1366226031Sstas<div class="memproto"> 1367226031Sstas <table class="memname"> 1368226031Sstas <tr> 1369226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_get_use_admin_kdc </td> 1370226031Sstas <td>(</td> 1371226031Sstas <td class="paramtype">krb5_context </td> 1372226031Sstas <td class="paramname"> <em>context</em> </td> 1373226031Sstas <td> ) </td> 1374226031Sstas <td></td> 1375226031Sstas </tr> 1376226031Sstas </table> 1377226031Sstas</div> 1378226031Sstas<div class="memdoc"> 1379226031Sstas 1380226031Sstas<p> 1381226031SstasMake the kerberos library default to the admin KDC.<p> 1382226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1383226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1384226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context.</td></tr> 1385226031Sstas </table> 1386226031Sstas</dl> 1387226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>boolean flag to telling the context will use admin KDC as the default KDC. </dd></dl> 1388226031Sstas 1389226031Sstas</div> 1390226031Sstas</div><p> 1391226031Sstas<a class="anchor" name="gbd94206e186c58a093975424a4a567a8"></a><!-- doxytag: member="context.c::krb5_init_context" ref="gbd94206e186c58a093975424a4a567a8" args="(krb5_context *context)" --> 1392226031Sstas<div class="memitem"> 1393226031Sstas<div class="memproto"> 1394226031Sstas <table class="memname"> 1395226031Sstas <tr> 1396226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_init_context </td> 1397226031Sstas <td>(</td> 1398226031Sstas <td class="paramtype">krb5_context * </td> 1399226031Sstas <td class="paramname"> <em>context</em> </td> 1400226031Sstas <td> ) </td> 1401226031Sstas <td></td> 1402226031Sstas </tr> 1403226031Sstas </table> 1404226031Sstas</div> 1405226031Sstas<div class="memdoc"> 1406226031Sstas 1407226031Sstas<p> 1408226031SstasInitializes the context structure and reads the configuration file /etc/krb5.conf. The structure should be freed by calling <a class="el" href="group__krb5.html#ge51d83f5d5f589883f1cd10887892777">krb5_free_context()</a> when it is no longer being used.<p> 1409226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1410226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1411226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>pointer to returned context</td></tr> 1412226031Sstas </table> 1413226031Sstas</dl> 1414226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an errno code is returned. Failure means either that something bad happened during initialization (typically ENOMEM) or that Kerberos should not be used ENXIO. </dd></dl> 1415226031Sstas 1416226031Sstas</div> 1417226031Sstas</div><p> 1418226031Sstas<a class="anchor" name="g0f4f2bf6056a5fd472d9dd3d393f133e"></a><!-- doxytag: member="context.c::krb5_init_ets" ref="g0f4f2bf6056a5fd472d9dd3d393f133e" args="(krb5_context context)" --> 1419226031Sstas<div class="memitem"> 1420226031Sstas<div class="memproto"> 1421226031Sstas <table class="memname"> 1422226031Sstas <tr> 1423226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_init_ets </td> 1424226031Sstas <td>(</td> 1425226031Sstas <td class="paramtype">krb5_context </td> 1426226031Sstas <td class="paramname"> <em>context</em> </td> 1427226031Sstas <td> ) </td> 1428226031Sstas <td></td> 1429226031Sstas </tr> 1430226031Sstas </table> 1431226031Sstas</div> 1432226031Sstas<div class="memdoc"> 1433226031Sstas 1434226031Sstas<p> 1435226031SstasInit the built-in ets in the Kerberos library.<p> 1436226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1437226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1438226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>kerberos context to add the ets too </td></tr> 1439226031Sstas </table> 1440226031Sstas</dl> 1441226031Sstas 1442226031Sstas</div> 1443226031Sstas</div><p> 1444226031Sstas<a class="anchor" name="gc5664b887b62be61c00c70fa9e290611"></a><!-- doxytag: member="context.c::krb5_is_thread_safe" ref="gc5664b887b62be61c00c70fa9e290611" args="(void)" --> 1445226031Sstas<div class="memitem"> 1446226031Sstas<div class="memproto"> 1447226031Sstas <table class="memname"> 1448226031Sstas <tr> 1449226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_is_thread_safe </td> 1450226031Sstas <td>(</td> 1451226031Sstas <td class="paramtype">void </td> 1452226031Sstas <td class="paramname"> </td> 1453226031Sstas <td> ) </td> 1454226031Sstas <td></td> 1455226031Sstas </tr> 1456226031Sstas </table> 1457226031Sstas</div> 1458226031Sstas<div class="memdoc"> 1459226031Sstas 1460226031Sstas<p> 1461226031SstasRuntime check if the Kerberos library was complied with thread support.<p> 1462226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the library was compiled with thread support, FALSE if not. </dd></dl> 1463226031Sstas 1464226031Sstas</div> 1465226031Sstas</div><p> 1466226031Sstas<a class="anchor" name="g92110f6472a4fb0a5e0a35da81af4fa2"></a><!-- doxytag: member="context.c::krb5_kerberos_enctypes" ref="g92110f6472a4fb0a5e0a35da81af4fa2" args="(krb5_context context)" --> 1467226031Sstas<div class="memitem"> 1468226031Sstas<div class="memproto"> 1469226031Sstas <table class="memname"> 1470226031Sstas <tr> 1471226031Sstas <td class="memname">KRB5_LIB_FUNCTION const krb5_enctype* KRB5_LIB_CALL krb5_kerberos_enctypes </td> 1472226031Sstas <td>(</td> 1473226031Sstas <td class="paramtype">krb5_context </td> 1474226031Sstas <td class="paramname"> <em>context</em> </td> 1475226031Sstas <td> ) </td> 1476226031Sstas <td></td> 1477226031Sstas </tr> 1478226031Sstas </table> 1479226031Sstas</div> 1480226031Sstas<div class="memdoc"> 1481226031Sstas 1482226031Sstas<p> 1483226031SstasReturns the list of Kerberos encryption types sorted in order of most preferred to least preferred encryption type. Note that some encryption types might be disabled, so you need to check with <a class="el" href="group__krb5__crypto.html#gd5f2b15d5fde369cf923e8fae4b00bec">krb5_enctype_valid()</a> before using the encryption type.<p> 1484226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>list of enctypes, terminated with ETYPE_NULL. Its a static array completed into the Kerberos library so the content doesn't need to be freed. </dd></dl> 1485226031Sstas 1486226031Sstas</div> 1487226031Sstas</div><p> 1488226031Sstas<a class="anchor" name="g8dcc8bb7370f2bd91bea895df7e1b1a2"></a><!-- doxytag: member="krbhst.c::krb5_krbhst_get_addrinfo" ref="g8dcc8bb7370f2bd91bea895df7e1b1a2" args="(krb5_context context, krb5_krbhst_info *host, struct addrinfo **ai)" --> 1489226031Sstas<div class="memitem"> 1490226031Sstas<div class="memproto"> 1491226031Sstas <table class="memname"> 1492226031Sstas <tr> 1493226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_krbhst_get_addrinfo </td> 1494226031Sstas <td>(</td> 1495226031Sstas <td class="paramtype">krb5_context </td> 1496226031Sstas <td class="paramname"> <em>context</em>, </td> 1497226031Sstas </tr> 1498226031Sstas <tr> 1499226031Sstas <td class="paramkey"></td> 1500226031Sstas <td></td> 1501226031Sstas <td class="paramtype">krb5_krbhst_info * </td> 1502226031Sstas <td class="paramname"> <em>host</em>, </td> 1503226031Sstas </tr> 1504226031Sstas <tr> 1505226031Sstas <td class="paramkey"></td> 1506226031Sstas <td></td> 1507226031Sstas <td class="paramtype">struct addrinfo ** </td> 1508226031Sstas <td class="paramname"> <em>ai</em></td><td> </td> 1509226031Sstas </tr> 1510226031Sstas <tr> 1511226031Sstas <td></td> 1512226031Sstas <td>)</td> 1513226031Sstas <td></td><td></td><td></td> 1514226031Sstas </tr> 1515226031Sstas </table> 1516226031Sstas</div> 1517226031Sstas<div class="memdoc"> 1518226031Sstas 1519226031Sstas<p> 1520226031SstasReturn an `struct addrinfo *' for a KDC host.<p> 1521226031SstasReturns an the struct addrinfo in in that corresponds to the information in `host'. free:ing is handled by krb5_krbhst_free, so the returned ai must not be released. 1522226031Sstas<p> 1523226031SstasFirst try this as an IP address, this allows us to add a dot at the end to stop using the search domains.<p> 1524226031SstasIf the hostname contains a dot, assumes it's a FQDN and don't use search domains since that might be painfully slow when machine is disconnected from that network. 1525226031Sstas</div> 1526226031Sstas</div><p> 1527226031Sstas<a class="anchor" name="gad9a3fd7b838f053a71424d95bf73d40"></a><!-- doxytag: member="context.c::krb5_prepend_config_files_default" ref="gad9a3fd7b838f053a71424d95bf73d40" args="(const char *filelist, char ***pfilenames)" --> 1528226031Sstas<div class="memitem"> 1529226031Sstas<div class="memproto"> 1530226031Sstas <table class="memname"> 1531226031Sstas <tr> 1532226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_prepend_config_files_default </td> 1533226031Sstas <td>(</td> 1534226031Sstas <td class="paramtype">const char * </td> 1535226031Sstas <td class="paramname"> <em>filelist</em>, </td> 1536226031Sstas </tr> 1537226031Sstas <tr> 1538226031Sstas <td class="paramkey"></td> 1539226031Sstas <td></td> 1540226031Sstas <td class="paramtype">char *** </td> 1541226031Sstas <td class="paramname"> <em>pfilenames</em></td><td> </td> 1542226031Sstas </tr> 1543226031Sstas <tr> 1544226031Sstas <td></td> 1545226031Sstas <td>)</td> 1546226031Sstas <td></td><td></td><td></td> 1547226031Sstas </tr> 1548226031Sstas </table> 1549226031Sstas</div> 1550226031Sstas<div class="memdoc"> 1551226031Sstas 1552226031Sstas<p> 1553226031SstasPrepend the filename to the global configuration list.<p> 1554226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1555226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1556226031Sstas <tr><td valign="top"></td><td valign="top"><em>filelist</em> </td><td>a filename to add to the default list of filename </td></tr> 1557226031Sstas <tr><td valign="top"></td><td valign="top"><em>pfilenames</em> </td><td>return array of filenames, should be freed with <a class="el" href="group__krb5.html#gce1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files()</a>.</td></tr> 1558226031Sstas </table> 1559226031Sstas</dl> 1560226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1561226031Sstas 1562226031Sstas</div> 1563226031Sstas</div><p> 1564226031Sstas<a class="anchor" name="gd4453861fbfc0372e3c44b59325f62aa"></a><!-- doxytag: member="context.c::krb5_set_config_files" ref="gd4453861fbfc0372e3c44b59325f62aa" args="(krb5_context context, char **filenames)" --> 1565226031Sstas<div class="memitem"> 1566226031Sstas<div class="memproto"> 1567226031Sstas <table class="memname"> 1568226031Sstas <tr> 1569226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_config_files </td> 1570226031Sstas <td>(</td> 1571226031Sstas <td class="paramtype">krb5_context </td> 1572226031Sstas <td class="paramname"> <em>context</em>, </td> 1573226031Sstas </tr> 1574226031Sstas <tr> 1575226031Sstas <td class="paramkey"></td> 1576226031Sstas <td></td> 1577226031Sstas <td class="paramtype">char ** </td> 1578226031Sstas <td class="paramname"> <em>filenames</em></td><td> </td> 1579226031Sstas </tr> 1580226031Sstas <tr> 1581226031Sstas <td></td> 1582226031Sstas <td>)</td> 1583226031Sstas <td></td><td></td><td></td> 1584226031Sstas </tr> 1585226031Sstas </table> 1586226031Sstas</div> 1587226031Sstas<div class="memdoc"> 1588226031Sstas 1589226031Sstas<p> 1590226031SstasReinit the context from a new set of filenames.<p> 1591226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1592226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1593226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>context to add configuration too. </td></tr> 1594226031Sstas <tr><td valign="top"></td><td valign="top"><em>filenames</em> </td><td>array of filenames, end of list is indicated with a NULL filename.</td></tr> 1595226031Sstas </table> 1596226031Sstas</dl> 1597226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1598226031Sstas 1599226031Sstas</div> 1600226031Sstas</div><p> 1601226031Sstas<a class="anchor" name="g5e028d8b3b0444c98b251f46eb48235a"></a><!-- doxytag: member="context.c::krb5_set_default_in_tkt_etypes" ref="g5e028d8b3b0444c98b251f46eb48235a" args="(krb5_context context, const krb5_enctype *etypes)" --> 1602226031Sstas<div class="memitem"> 1603226031Sstas<div class="memproto"> 1604226031Sstas <table class="memname"> 1605226031Sstas <tr> 1606226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_default_in_tkt_etypes </td> 1607226031Sstas <td>(</td> 1608226031Sstas <td class="paramtype">krb5_context </td> 1609226031Sstas <td class="paramname"> <em>context</em>, </td> 1610226031Sstas </tr> 1611226031Sstas <tr> 1612226031Sstas <td class="paramkey"></td> 1613226031Sstas <td></td> 1614226031Sstas <td class="paramtype">const krb5_enctype * </td> 1615226031Sstas <td class="paramname"> <em>etypes</em></td><td> </td> 1616226031Sstas </tr> 1617226031Sstas <tr> 1618226031Sstas <td></td> 1619226031Sstas <td>)</td> 1620226031Sstas <td></td><td></td><td></td> 1621226031Sstas </tr> 1622226031Sstas </table> 1623226031Sstas</div> 1624226031Sstas<div class="memdoc"> 1625226031Sstas 1626226031Sstas<p> 1627226031SstasSet the default encryption types that will be use in communcation with the KDC, clients and servers.<p> 1628226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1629226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1630226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1631226031Sstas <tr><td valign="top"></td><td valign="top"><em>etypes</em> </td><td>Encryption types, array terminated with ETYPE_NULL (0).</td></tr> 1632226031Sstas </table> 1633226031Sstas</dl> 1634226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1635226031Sstas 1636226031Sstas</div> 1637226031Sstas</div><p> 1638226031Sstas<a class="anchor" name="g798fb21edcec6c7b251709f1e447b21b"></a><!-- doxytag: member="context.c::krb5_set_dns_canonicalize_hostname" ref="g798fb21edcec6c7b251709f1e447b21b" args="(krb5_context context, krb5_boolean flag)" --> 1639226031Sstas<div class="memitem"> 1640226031Sstas<div class="memproto"> 1641226031Sstas <table class="memname"> 1642226031Sstas <tr> 1643226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_dns_canonicalize_hostname </td> 1644226031Sstas <td>(</td> 1645226031Sstas <td class="paramtype">krb5_context </td> 1646226031Sstas <td class="paramname"> <em>context</em>, </td> 1647226031Sstas </tr> 1648226031Sstas <tr> 1649226031Sstas <td class="paramkey"></td> 1650226031Sstas <td></td> 1651226031Sstas <td class="paramtype">krb5_boolean </td> 1652226031Sstas <td class="paramname"> <em>flag</em></td><td> </td> 1653226031Sstas </tr> 1654226031Sstas <tr> 1655226031Sstas <td></td> 1656226031Sstas <td>)</td> 1657226031Sstas <td></td><td></td><td></td> 1658226031Sstas </tr> 1659226031Sstas </table> 1660226031Sstas</div> 1661226031Sstas<div class="memdoc"> 1662226031Sstas 1663226031Sstas<p> 1664226031SstasSet if the library should use DNS to canonicalize hostnames.<p> 1665226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1666226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1667226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1668226031Sstas <tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>if its dns canonicalizion is used or not. </td></tr> 1669226031Sstas </table> 1670226031Sstas</dl> 1671226031Sstas 1672226031Sstas</div> 1673226031Sstas</div><p> 1674226031Sstas<a class="anchor" name="g3c326674110a2d1c7d3523a0c308dddd"></a><!-- doxytag: member="context.c::krb5_set_extra_addresses" ref="g3c326674110a2d1c7d3523a0c308dddd" args="(krb5_context context, const krb5_addresses *addresses)" --> 1675226031Sstas<div class="memitem"> 1676226031Sstas<div class="memproto"> 1677226031Sstas <table class="memname"> 1678226031Sstas <tr> 1679226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_extra_addresses </td> 1680226031Sstas <td>(</td> 1681226031Sstas <td class="paramtype">krb5_context </td> 1682226031Sstas <td class="paramname"> <em>context</em>, </td> 1683226031Sstas </tr> 1684226031Sstas <tr> 1685226031Sstas <td class="paramkey"></td> 1686226031Sstas <td></td> 1687226031Sstas <td class="paramtype">const krb5_addresses * </td> 1688226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 1689226031Sstas </tr> 1690226031Sstas <tr> 1691226031Sstas <td></td> 1692226031Sstas <td>)</td> 1693226031Sstas <td></td><td></td><td></td> 1694226031Sstas </tr> 1695226031Sstas </table> 1696226031Sstas</div> 1697226031Sstas<div class="memdoc"> 1698226031Sstas 1699226031Sstas<p> 1700226031SstasSet extra address to the address list that the library will add to the client's address list when communicating with the KDC.<p> 1701226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1702226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1703226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1704226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>addreses to set</td></tr> 1705226031Sstas </table> 1706226031Sstas</dl> 1707226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1708226031Sstas 1709226031Sstas</div> 1710226031Sstas</div><p> 1711226031Sstas<a class="anchor" name="g2f77d43f11ad41cd9b5676cc73f052bc"></a><!-- doxytag: member="context.c::krb5_set_fcache_version" ref="g2f77d43f11ad41cd9b5676cc73f052bc" args="(krb5_context context, int version)" --> 1712226031Sstas<div class="memitem"> 1713226031Sstas<div class="memproto"> 1714226031Sstas <table class="memname"> 1715226031Sstas <tr> 1716226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_fcache_version </td> 1717226031Sstas <td>(</td> 1718226031Sstas <td class="paramtype">krb5_context </td> 1719226031Sstas <td class="paramname"> <em>context</em>, </td> 1720226031Sstas </tr> 1721226031Sstas <tr> 1722226031Sstas <td class="paramkey"></td> 1723226031Sstas <td></td> 1724226031Sstas <td class="paramtype">int </td> 1725226031Sstas <td class="paramname"> <em>version</em></td><td> </td> 1726226031Sstas </tr> 1727226031Sstas <tr> 1728226031Sstas <td></td> 1729226031Sstas <td>)</td> 1730226031Sstas <td></td><td></td><td></td> 1731226031Sstas </tr> 1732226031Sstas </table> 1733226031Sstas</div> 1734226031Sstas<div class="memdoc"> 1735226031Sstas 1736226031Sstas<p> 1737226031SstasSet version of fcache that the library should use.<p> 1738226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1739226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1740226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1741226031Sstas <tr><td valign="top"></td><td valign="top"><em>version</em> </td><td>version number.</td></tr> 1742226031Sstas </table> 1743226031Sstas</dl> 1744226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1745226031Sstas 1746226031Sstas</div> 1747226031Sstas</div><p> 1748226031Sstas<a class="anchor" name="g3a8e40d622ff1460b2f554d83a9059ea"></a><!-- doxytag: member="context.c::krb5_set_home_dir_access" ref="g3a8e40d622ff1460b2f554d83a9059ea" args="(krb5_context context, krb5_boolean allow)" --> 1749226031Sstas<div class="memitem"> 1750226031Sstas<div class="memproto"> 1751226031Sstas <table class="memname"> 1752226031Sstas <tr> 1753226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_set_home_dir_access </td> 1754226031Sstas <td>(</td> 1755226031Sstas <td class="paramtype">krb5_context </td> 1756226031Sstas <td class="paramname"> <em>context</em>, </td> 1757226031Sstas </tr> 1758226031Sstas <tr> 1759226031Sstas <td class="paramkey"></td> 1760226031Sstas <td></td> 1761226031Sstas <td class="paramtype">krb5_boolean </td> 1762226031Sstas <td class="paramname"> <em>allow</em></td><td> </td> 1763226031Sstas </tr> 1764226031Sstas <tr> 1765226031Sstas <td></td> 1766226031Sstas <td>)</td> 1767226031Sstas <td></td><td></td><td></td> 1768226031Sstas </tr> 1769226031Sstas </table> 1770226031Sstas</div> 1771226031Sstas<div class="memdoc"> 1772226031Sstas 1773226031Sstas<p> 1774226031SstasEnable and disable home directory access on either the global state or the krb5_context state. By calling <a class="el" href="group__krb5.html#g3a8e40d622ff1460b2f554d83a9059ea">krb5_set_home_dir_access()</a> with context set to NULL, the global state is configured otherwise the state for the krb5_context is modified.<p> 1775226031SstasFor home directory access to be allowed, both the global state and the krb5_context state have to be allowed.<p> 1776226031SstasAdministrator (root user), never uses the home directory.<p> 1777226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1778226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1779226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context or NULL </td></tr> 1780226031Sstas <tr><td valign="top"></td><td valign="top"><em>allow</em> </td><td>allow if TRUE home directory </td></tr> 1781226031Sstas </table> 1782226031Sstas</dl> 1783226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>the old value </dd></dl> 1784226031Sstas 1785226031Sstas</div> 1786226031Sstas</div><p> 1787226031Sstas<a class="anchor" name="g4d9823757dea2b9884c136fb959383bc"></a><!-- doxytag: member="context.c::krb5_set_ignore_addresses" ref="g4d9823757dea2b9884c136fb959383bc" args="(krb5_context context, const krb5_addresses *addresses)" --> 1788226031Sstas<div class="memitem"> 1789226031Sstas<div class="memproto"> 1790226031Sstas <table class="memname"> 1791226031Sstas <tr> 1792226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_ignore_addresses </td> 1793226031Sstas <td>(</td> 1794226031Sstas <td class="paramtype">krb5_context </td> 1795226031Sstas <td class="paramname"> <em>context</em>, </td> 1796226031Sstas </tr> 1797226031Sstas <tr> 1798226031Sstas <td class="paramkey"></td> 1799226031Sstas <td></td> 1800226031Sstas <td class="paramtype">const krb5_addresses * </td> 1801226031Sstas <td class="paramname"> <em>addresses</em></td><td> </td> 1802226031Sstas </tr> 1803226031Sstas <tr> 1804226031Sstas <td></td> 1805226031Sstas <td>)</td> 1806226031Sstas <td></td><td></td><td></td> 1807226031Sstas </tr> 1808226031Sstas </table> 1809226031Sstas</div> 1810226031Sstas<div class="memdoc"> 1811226031Sstas 1812226031Sstas<p> 1813226031SstasSet extra addresses to ignore when fetching addresses from the underlaying operating system.<p> 1814226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1815226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1816226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1817226031Sstas <tr><td valign="top"></td><td valign="top"><em>addresses</em> </td><td>addreses to ignore</td></tr> 1818226031Sstas </table> 1819226031Sstas</dl> 1820226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 1821226031Sstas 1822226031Sstas</div> 1823226031Sstas</div><p> 1824226031Sstas<a class="anchor" name="gfd16890e03f6dff6f6d013d97e0ee185"></a><!-- doxytag: member="context.c::krb5_set_kdc_sec_offset" ref="gfd16890e03f6dff6f6d013d97e0ee185" args="(krb5_context context, int32_t sec, int32_t usec)" --> 1825226031Sstas<div class="memitem"> 1826226031Sstas<div class="memproto"> 1827226031Sstas <table class="memname"> 1828226031Sstas <tr> 1829226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_kdc_sec_offset </td> 1830226031Sstas <td>(</td> 1831226031Sstas <td class="paramtype">krb5_context </td> 1832226031Sstas <td class="paramname"> <em>context</em>, </td> 1833226031Sstas </tr> 1834226031Sstas <tr> 1835226031Sstas <td class="paramkey"></td> 1836226031Sstas <td></td> 1837226031Sstas <td class="paramtype">int32_t </td> 1838226031Sstas <td class="paramname"> <em>sec</em>, </td> 1839226031Sstas </tr> 1840226031Sstas <tr> 1841226031Sstas <td class="paramkey"></td> 1842226031Sstas <td></td> 1843226031Sstas <td class="paramtype">int32_t </td> 1844226031Sstas <td class="paramname"> <em>usec</em></td><td> </td> 1845226031Sstas </tr> 1846226031Sstas <tr> 1847226031Sstas <td></td> 1848226031Sstas <td>)</td> 1849226031Sstas <td></td><td></td><td></td> 1850226031Sstas </tr> 1851226031Sstas </table> 1852226031Sstas</div> 1853226031Sstas<div class="memdoc"> 1854226031Sstas 1855226031Sstas<p> 1856226031SstasSet current offset in time to the KDC.<p> 1857226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1858226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1859226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1860226031Sstas <tr><td valign="top"></td><td valign="top"><em>sec</em> </td><td>seconds part of offset. </td></tr> 1861226031Sstas <tr><td valign="top"></td><td valign="top"><em>usec</em> </td><td>micro seconds part of offset.</td></tr> 1862226031Sstas </table> 1863226031Sstas</dl> 1864226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>returns zero </dd></dl> 1865226031Sstas 1866226031Sstas</div> 1867226031Sstas</div><p> 1868226031Sstas<a class="anchor" name="g2257aeff745924c48f12d1893d7523ba"></a><!-- doxytag: member="context.c::krb5_set_max_time_skew" ref="g2257aeff745924c48f12d1893d7523ba" args="(krb5_context context, time_t t)" --> 1869226031Sstas<div class="memitem"> 1870226031Sstas<div class="memproto"> 1871226031Sstas <table class="memname"> 1872226031Sstas <tr> 1873226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_max_time_skew </td> 1874226031Sstas <td>(</td> 1875226031Sstas <td class="paramtype">krb5_context </td> 1876226031Sstas <td class="paramname"> <em>context</em>, </td> 1877226031Sstas </tr> 1878226031Sstas <tr> 1879226031Sstas <td class="paramkey"></td> 1880226031Sstas <td></td> 1881226031Sstas <td class="paramtype">time_t </td> 1882226031Sstas <td class="paramname"> <em>t</em></td><td> </td> 1883226031Sstas </tr> 1884226031Sstas <tr> 1885226031Sstas <td></td> 1886226031Sstas <td>)</td> 1887226031Sstas <td></td><td></td><td></td> 1888226031Sstas </tr> 1889226031Sstas </table> 1890226031Sstas</div> 1891226031Sstas<div class="memdoc"> 1892226031Sstas 1893226031Sstas<p> 1894226031SstasSet max time skew allowed.<p> 1895226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1896226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1897226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 1898226031Sstas <tr><td valign="top"></td><td valign="top"><em>t</em> </td><td>timeskew in seconds. </td></tr> 1899226031Sstas </table> 1900226031Sstas</dl> 1901226031Sstas 1902226031Sstas</div> 1903226031Sstas</div><p> 1904226031Sstas<a class="anchor" name="g02611e3966053f79eda248d76dccc282"></a><!-- doxytag: member="changepw.c::krb5_set_password" ref="g02611e3966053f79eda248d76dccc282" args="(krb5_context context, krb5_creds *creds, const char *newpw, krb5_principal targprinc, int *result_code, krb5_data *result_code_string, krb5_data *result_string)" --> 1905226031Sstas<div class="memitem"> 1906226031Sstas<div class="memproto"> 1907226031Sstas <table class="memname"> 1908226031Sstas <tr> 1909226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_password </td> 1910226031Sstas <td>(</td> 1911226031Sstas <td class="paramtype">krb5_context </td> 1912226031Sstas <td class="paramname"> <em>context</em>, </td> 1913226031Sstas </tr> 1914226031Sstas <tr> 1915226031Sstas <td class="paramkey"></td> 1916226031Sstas <td></td> 1917226031Sstas <td class="paramtype">krb5_creds * </td> 1918226031Sstas <td class="paramname"> <em>creds</em>, </td> 1919226031Sstas </tr> 1920226031Sstas <tr> 1921226031Sstas <td class="paramkey"></td> 1922226031Sstas <td></td> 1923226031Sstas <td class="paramtype">const char * </td> 1924226031Sstas <td class="paramname"> <em>newpw</em>, </td> 1925226031Sstas </tr> 1926226031Sstas <tr> 1927226031Sstas <td class="paramkey"></td> 1928226031Sstas <td></td> 1929226031Sstas <td class="paramtype">krb5_principal </td> 1930226031Sstas <td class="paramname"> <em>targprinc</em>, </td> 1931226031Sstas </tr> 1932226031Sstas <tr> 1933226031Sstas <td class="paramkey"></td> 1934226031Sstas <td></td> 1935226031Sstas <td class="paramtype">int * </td> 1936226031Sstas <td class="paramname"> <em>result_code</em>, </td> 1937226031Sstas </tr> 1938226031Sstas <tr> 1939226031Sstas <td class="paramkey"></td> 1940226031Sstas <td></td> 1941226031Sstas <td class="paramtype">krb5_data * </td> 1942226031Sstas <td class="paramname"> <em>result_code_string</em>, </td> 1943226031Sstas </tr> 1944226031Sstas <tr> 1945226031Sstas <td class="paramkey"></td> 1946226031Sstas <td></td> 1947226031Sstas <td class="paramtype">krb5_data * </td> 1948226031Sstas <td class="paramname"> <em>result_string</em></td><td> </td> 1949226031Sstas </tr> 1950226031Sstas <tr> 1951226031Sstas <td></td> 1952226031Sstas <td>)</td> 1953226031Sstas <td></td><td></td><td></td> 1954226031Sstas </tr> 1955226031Sstas </table> 1956226031Sstas</div> 1957226031Sstas<div class="memdoc"> 1958226031Sstas 1959226031Sstas<p> 1960226031SstasChange password using creds.<p> 1961226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1962226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1963226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Keberos context </td></tr> 1964226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>The initial kadmin/passwd for the principal or an admin principal </td></tr> 1965226031Sstas <tr><td valign="top"></td><td valign="top"><em>newpw</em> </td><td>The new password to set </td></tr> 1966226031Sstas <tr><td valign="top"></td><td valign="top"><em>targprinc</em> </td><td>if unset, the default principal is used. </td></tr> 1967226031Sstas <tr><td valign="top"></td><td valign="top"><em>result_code</em> </td><td>Result code, KRB5_KPASSWD_SUCCESS is when password is changed. </td></tr> 1968226031Sstas <tr><td valign="top"></td><td valign="top"><em>result_code_string</em> </td><td>binary message from the server, contains at least the result_code. </td></tr> 1969226031Sstas <tr><td valign="top"></td><td valign="top"><em>result_string</em> </td><td>A message from the kpasswd service or the library in human printable form. The string is NUL terminated.</td></tr> 1970226031Sstas </table> 1971226031Sstas</dl> 1972226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>On sucess and *result_code is KRB5_KPASSWD_SUCCESS, the password is changed.</dd></dl> 1973226031Sstas@ 1974226031Sstas</div> 1975226031Sstas</div><p> 1976226031Sstas<a class="anchor" name="g1bb5d4ab0e2ebd85414903617b1ac36b"></a><!-- doxytag: member="time.c::krb5_set_real_time" ref="g1bb5d4ab0e2ebd85414903617b1ac36b" args="(krb5_context context, krb5_timestamp sec, int32_t usec)" --> 1977226031Sstas<div class="memitem"> 1978226031Sstas<div class="memproto"> 1979226031Sstas <table class="memname"> 1980226031Sstas <tr> 1981226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_real_time </td> 1982226031Sstas <td>(</td> 1983226031Sstas <td class="paramtype">krb5_context </td> 1984226031Sstas <td class="paramname"> <em>context</em>, </td> 1985226031Sstas </tr> 1986226031Sstas <tr> 1987226031Sstas <td class="paramkey"></td> 1988226031Sstas <td></td> 1989226031Sstas <td class="paramtype">krb5_timestamp </td> 1990226031Sstas <td class="paramname"> <em>sec</em>, </td> 1991226031Sstas </tr> 1992226031Sstas <tr> 1993226031Sstas <td class="paramkey"></td> 1994226031Sstas <td></td> 1995226031Sstas <td class="paramtype">int32_t </td> 1996226031Sstas <td class="paramname"> <em>usec</em></td><td> </td> 1997226031Sstas </tr> 1998226031Sstas <tr> 1999226031Sstas <td></td> 2000226031Sstas <td>)</td> 2001226031Sstas <td></td><td></td><td></td> 2002226031Sstas </tr> 2003226031Sstas </table> 2004226031Sstas</div> 2005226031Sstas<div class="memdoc"> 2006226031Sstas 2007226031Sstas<p> 2008226031SstasSet the absolute time that the caller knows the kdc has so the kerberos library can calculate the relative diffrence beteen the KDC time and local system time.<p> 2009226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2010226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2011226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Keberos 5 context. </td></tr> 2012226031Sstas <tr><td valign="top"></td><td valign="top"><em>sec</em> </td><td>The applications new of "now" in seconds </td></tr> 2013226031Sstas <tr><td valign="top"></td><td valign="top"><em>usec</em> </td><td>The applications new of "now" in micro seconds</td></tr> 2014226031Sstas </table> 2015226031Sstas</dl> 2016226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Kerberos 5 error code, see krb5_get_error_message(). </dd></dl> 2017226031Sstas 2018226031Sstas<p> 2019226031SstasIf the caller passes in a negative usec, its assumed to be unknown and the function will use the current time usec. 2020226031Sstas</div> 2021226031Sstas</div><p> 2022226031Sstas<a class="anchor" name="g3e1564b6d147482eba7bfb5e40a4ff6f"></a><!-- doxytag: member="context.c::krb5_set_use_admin_kdc" ref="g3e1564b6d147482eba7bfb5e40a4ff6f" args="(krb5_context context, krb5_boolean flag)" --> 2023226031Sstas<div class="memitem"> 2024226031Sstas<div class="memproto"> 2025226031Sstas <table class="memname"> 2026226031Sstas <tr> 2027226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_use_admin_kdc </td> 2028226031Sstas <td>(</td> 2029226031Sstas <td class="paramtype">krb5_context </td> 2030226031Sstas <td class="paramname"> <em>context</em>, </td> 2031226031Sstas </tr> 2032226031Sstas <tr> 2033226031Sstas <td class="paramkey"></td> 2034226031Sstas <td></td> 2035226031Sstas <td class="paramtype">krb5_boolean </td> 2036226031Sstas <td class="paramname"> <em>flag</em></td><td> </td> 2037226031Sstas </tr> 2038226031Sstas <tr> 2039226031Sstas <td></td> 2040226031Sstas <td>)</td> 2041226031Sstas <td></td><td></td><td></td> 2042226031Sstas </tr> 2043226031Sstas </table> 2044226031Sstas</div> 2045226031Sstas<div class="memdoc"> 2046226031Sstas 2047226031Sstas<p> 2048226031SstasMake the kerberos library default to the admin KDC.<p> 2049226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2050226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2051226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 2052226031Sstas <tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>boolean flag to select if the use the admin KDC or not. </td></tr> 2053226031Sstas </table> 2054226031Sstas</dl> 2055226031Sstas 2056226031Sstas</div> 2057226031Sstas</div><p> 2058226031Sstas<a class="anchor" name="ga7387c09a85bf3aabe5bae8a2ec4af73"></a><!-- doxytag: member="ticket.c::krb5_ticket_get_authorization_data_type" ref="ga7387c09a85bf3aabe5bae8a2ec4af73" args="(krb5_context context, krb5_ticket *ticket, int type, krb5_data *data)" --> 2059226031Sstas<div class="memitem"> 2060226031Sstas<div class="memproto"> 2061226031Sstas <table class="memname"> 2062226031Sstas <tr> 2063226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_authorization_data_type </td> 2064226031Sstas <td>(</td> 2065226031Sstas <td class="paramtype">krb5_context </td> 2066226031Sstas <td class="paramname"> <em>context</em>, </td> 2067226031Sstas </tr> 2068226031Sstas <tr> 2069226031Sstas <td class="paramkey"></td> 2070226031Sstas <td></td> 2071226031Sstas <td class="paramtype">krb5_ticket * </td> 2072226031Sstas <td class="paramname"> <em>ticket</em>, </td> 2073226031Sstas </tr> 2074226031Sstas <tr> 2075226031Sstas <td class="paramkey"></td> 2076226031Sstas <td></td> 2077226031Sstas <td class="paramtype">int </td> 2078226031Sstas <td class="paramname"> <em>type</em>, </td> 2079226031Sstas </tr> 2080226031Sstas <tr> 2081226031Sstas <td class="paramkey"></td> 2082226031Sstas <td></td> 2083226031Sstas <td class="paramtype">krb5_data * </td> 2084226031Sstas <td class="paramname"> <em>data</em></td><td> </td> 2085226031Sstas </tr> 2086226031Sstas <tr> 2087226031Sstas <td></td> 2088226031Sstas <td>)</td> 2089226031Sstas <td></td><td></td><td></td> 2090226031Sstas </tr> 2091226031Sstas </table> 2092226031Sstas</div> 2093226031Sstas<div class="memdoc"> 2094226031Sstas 2095226031Sstas<p> 2096226031SstasExtract the authorization data type of type from the ticket. Store the field in data. This function is to use for kerberos applications.<p> 2097226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2098226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2099226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 2100226031Sstas <tr><td valign="top"></td><td valign="top"><em>ticket</em> </td><td>Kerberos ticket </td></tr> 2101226031Sstas <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>type to fetch </td></tr> 2102226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>returned data, free with <a class="el" href="group__krb5.html#gb4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free()</a> </td></tr> 2103226031Sstas </table> 2104226031Sstas</dl> 2105226031Sstas 2106226031Sstas</div> 2107226031Sstas</div><p> 2108226031Sstas<a class="anchor" name="g6cf23f11044d79441ea1456a01ebe7d7"></a><!-- doxytag: member="ticket.c::krb5_ticket_get_client" ref="g6cf23f11044d79441ea1456a01ebe7d7" args="(krb5_context context, const krb5_ticket *ticket, krb5_principal *client)" --> 2109226031Sstas<div class="memitem"> 2110226031Sstas<div class="memproto"> 2111226031Sstas <table class="memname"> 2112226031Sstas <tr> 2113226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_client </td> 2114226031Sstas <td>(</td> 2115226031Sstas <td class="paramtype">krb5_context </td> 2116226031Sstas <td class="paramname"> <em>context</em>, </td> 2117226031Sstas </tr> 2118226031Sstas <tr> 2119226031Sstas <td class="paramkey"></td> 2120226031Sstas <td></td> 2121226031Sstas <td class="paramtype">const krb5_ticket * </td> 2122226031Sstas <td class="paramname"> <em>ticket</em>, </td> 2123226031Sstas </tr> 2124226031Sstas <tr> 2125226031Sstas <td class="paramkey"></td> 2126226031Sstas <td></td> 2127226031Sstas <td class="paramtype">krb5_principal * </td> 2128226031Sstas <td class="paramname"> <em>client</em></td><td> </td> 2129226031Sstas </tr> 2130226031Sstas <tr> 2131226031Sstas <td></td> 2132226031Sstas <td>)</td> 2133226031Sstas <td></td><td></td><td></td> 2134226031Sstas </tr> 2135226031Sstas </table> 2136226031Sstas</div> 2137226031Sstas<div class="memdoc"> 2138226031Sstas 2139226031Sstas<p> 2140226031SstasReturn client principal in ticket<p> 2141226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2142226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2143226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 2144226031Sstas <tr><td valign="top"></td><td valign="top"><em>ticket</em> </td><td>ticket to copy </td></tr> 2145226031Sstas <tr><td valign="top"></td><td valign="top"><em>client</em> </td><td>client principal, free with <a class="el" href="group__krb5__principal.html#g5bd3f620ebe8cd4fe44b5c858ba17d22">krb5_free_principal()</a></td></tr> 2146226031Sstas </table> 2147226031Sstas</dl> 2148226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 2149226031Sstas 2150226031Sstas</div> 2151226031Sstas</div><p> 2152226031Sstas<a class="anchor" name="g118b98784ccadd98cdaaa1ee5076c9fb"></a><!-- doxytag: member="ticket.c::krb5_ticket_get_endtime" ref="g118b98784ccadd98cdaaa1ee5076c9fb" args="(krb5_context context, const krb5_ticket *ticket)" --> 2153226031Sstas<div class="memitem"> 2154226031Sstas<div class="memproto"> 2155226031Sstas <table class="memname"> 2156226031Sstas <tr> 2157226031Sstas <td class="memname">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL krb5_ticket_get_endtime </td> 2158226031Sstas <td>(</td> 2159226031Sstas <td class="paramtype">krb5_context </td> 2160226031Sstas <td class="paramname"> <em>context</em>, </td> 2161226031Sstas </tr> 2162226031Sstas <tr> 2163226031Sstas <td class="paramkey"></td> 2164226031Sstas <td></td> 2165226031Sstas <td class="paramtype">const krb5_ticket * </td> 2166226031Sstas <td class="paramname"> <em>ticket</em></td><td> </td> 2167226031Sstas </tr> 2168226031Sstas <tr> 2169226031Sstas <td></td> 2170226031Sstas <td>)</td> 2171226031Sstas <td></td><td></td><td></td> 2172226031Sstas </tr> 2173226031Sstas </table> 2174226031Sstas</div> 2175226031Sstas<div class="memdoc"> 2176226031Sstas 2177226031Sstas<p> 2178226031SstasReturn end time of ticket<p> 2179226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2180226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2181226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 2182226031Sstas <tr><td valign="top"></td><td valign="top"><em>ticket</em> </td><td>ticket to copy</td></tr> 2183226031Sstas </table> 2184226031Sstas</dl> 2185226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>end time of ticket </dd></dl> 2186226031Sstas 2187226031Sstas</div> 2188226031Sstas</div><p> 2189226031Sstas<a class="anchor" name="gd1f40ffc29f379b7dec60144eefdb553"></a><!-- doxytag: member="ticket.c::krb5_ticket_get_server" ref="gd1f40ffc29f379b7dec60144eefdb553" args="(krb5_context context, const krb5_ticket *ticket, krb5_principal *server)" --> 2190226031Sstas<div class="memitem"> 2191226031Sstas<div class="memproto"> 2192226031Sstas <table class="memname"> 2193226031Sstas <tr> 2194226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_server </td> 2195226031Sstas <td>(</td> 2196226031Sstas <td class="paramtype">krb5_context </td> 2197226031Sstas <td class="paramname"> <em>context</em>, </td> 2198226031Sstas </tr> 2199226031Sstas <tr> 2200226031Sstas <td class="paramkey"></td> 2201226031Sstas <td></td> 2202226031Sstas <td class="paramtype">const krb5_ticket * </td> 2203226031Sstas <td class="paramname"> <em>ticket</em>, </td> 2204226031Sstas </tr> 2205226031Sstas <tr> 2206226031Sstas <td class="paramkey"></td> 2207226031Sstas <td></td> 2208226031Sstas <td class="paramtype">krb5_principal * </td> 2209226031Sstas <td class="paramname"> <em>server</em></td><td> </td> 2210226031Sstas </tr> 2211226031Sstas <tr> 2212226031Sstas <td></td> 2213226031Sstas <td>)</td> 2214226031Sstas <td></td><td></td><td></td> 2215226031Sstas </tr> 2216226031Sstas </table> 2217226031Sstas</div> 2218226031Sstas<div class="memdoc"> 2219226031Sstas 2220226031Sstas<p> 2221226031SstasReturn server principal in ticket<p> 2222226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2223226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2224226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>a Kerberos 5 context </td></tr> 2225226031Sstas <tr><td valign="top"></td><td valign="top"><em>ticket</em> </td><td>ticket to copy </td></tr> 2226226031Sstas <tr><td valign="top"></td><td valign="top"><em>server</em> </td><td>server principal, free with <a class="el" href="group__krb5__principal.html#g5bd3f620ebe8cd4fe44b5c858ba17d22">krb5_free_principal()</a></td></tr> 2227226031Sstas </table> 2228226031Sstas</dl> 2229226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 2230226031Sstas 2231226031Sstas</div> 2232226031Sstas</div><p> 2233226031Sstas</div> 2234226031Sstas<hr size="1"><address style="text-align: right;"><small> 2235234027SstasGenerated on Wed Jan 11 14:07:47 2012 for HeimdalKerberos5library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address> 2236226031Sstas</body> 2237226031Sstas</html> 2238