<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Heimdal Kerberos 5 library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<p>
<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a>
</p>
<!-- end of header marker -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Heimdal Kerberos 5 library</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gac03fc138d472dd7743a0ab7ecb3061c1"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gac03fc138d472dd7743a0ab7ecb3061c1">krb5_add_et_list</a> (krb5_context context, void(*func)(struct et_list **))</td></tr>
<tr class="separator:gac03fc138d472dd7743a0ab7ecb3061c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga02611e3966053f79eda248d76dccc282"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga02611e3966053f79eda248d76dccc282">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>
<tr class="separator:ga02611e3966053f79eda248d76dccc282"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabd94206e186c58a093975424a4a567a8"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gabd94206e186c58a093975424a4a567a8">krb5_init_context</a> (krb5_context *context)</td></tr>
<tr class="separator:gabd94206e186c58a093975424a4a567a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad30312a0ba95a71478de1b5fba34db3f"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gad30312a0ba95a71478de1b5fba34db3f">krb5_copy_context</a> (krb5_context context, krb5_context *out)</td></tr>
<tr class="separator:gad30312a0ba95a71478de1b5fba34db3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae51d83f5d5f589883f1cd10887892777"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gae51d83f5d5f589883f1cd10887892777">krb5_free_context</a> (krb5_context context)</td></tr>
<tr class="separator:gae51d83f5d5f589883f1cd10887892777"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad4453861fbfc0372e3c44b59325f62aa"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gad4453861fbfc0372e3c44b59325f62aa">krb5_set_config_files</a> (krb5_context context, char **filenames)</td></tr>
<tr class="separator:gad4453861fbfc0372e3c44b59325f62aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaad9a3fd7b838f053a71424d95bf73d40"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaad9a3fd7b838f053a71424d95bf73d40">krb5_prepend_config_files_default</a> (const char *filelist, char ***pfilenames)</td></tr>
<tr class="separator:gaad9a3fd7b838f053a71424d95bf73d40"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4276c71bee1ba0c9f2bbd659cd351cb3"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga4276c71bee1ba0c9f2bbd659cd351cb3">krb5_get_default_config_files</a> (char ***pfilenames)</td></tr>
<tr class="separator:ga4276c71bee1ba0c9f2bbd659cd351cb3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gace1b568d05875e7c4fbc6e5af5a8bdbf"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gace1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files</a> (char **filenames)</td></tr>
<tr class="separator:gace1b568d05875e7c4fbc6e5af5a8bdbf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga92110f6472a4fb0a5e0a35da81af4fa2"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION const krb5_enctype *KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga92110f6472a4fb0a5e0a35da81af4fa2">krb5_kerberos_enctypes</a> (krb5_context context)</td></tr>
<tr class="separator:ga92110f6472a4fb0a5e0a35da81af4fa2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5e028d8b3b0444c98b251f46eb48235a"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga5e028d8b3b0444c98b251f46eb48235a">krb5_set_default_in_tkt_etypes</a> (krb5_context context, const krb5_enctype *etypes)</td></tr>
<tr class="separator:ga5e028d8b3b0444c98b251f46eb48235a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa2bba3d683f1280ddfe8430d834bd5e8"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaa2bba3d683f1280ddfe8430d834bd5e8">krb5_get_default_in_tkt_etypes</a> (krb5_context context, krb5_pdu pdu_type, krb5_enctype **etypes)</td></tr>
<tr class="separator:gaa2bba3d683f1280ddfe8430d834bd5e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0f4f2bf6056a5fd472d9dd3d393f133e"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga0f4f2bf6056a5fd472d9dd3d393f133e">krb5_init_ets</a> (krb5_context context)</td></tr>
<tr class="separator:ga0f4f2bf6056a5fd472d9dd3d393f133e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3e1564b6d147482eba7bfb5e40a4ff6f"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3e1564b6d147482eba7bfb5e40a4ff6f">krb5_set_use_admin_kdc</a> (krb5_context context, krb5_boolean flag)</td></tr>
<tr class="separator:ga3e1564b6d147482eba7bfb5e40a4ff6f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac68122daa411ea028bd521e6e9d2ca6b"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gac68122daa411ea028bd521e6e9d2ca6b">krb5_get_use_admin_kdc</a> (krb5_context context)</td></tr>
<tr class="separator:gac68122daa411ea028bd521e6e9d2ca6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa3776874e66baaaad19316d65aeeb4b5"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaa3776874e66baaaad19316d65aeeb4b5">krb5_add_extra_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr>
<tr class="separator:gaa3776874e66baaaad19316d65aeeb4b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3c326674110a2d1c7d3523a0c308dddd"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3c326674110a2d1c7d3523a0c308dddd">krb5_set_extra_addresses</a> (krb5_context context, const krb5_addresses *addresses)</td></tr>
<tr class="separator:ga3c326674110a2d1c7d3523a0c308dddd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0c24a484850684f9252c0f494da2e4c5"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga0c24a484850684f9252c0f494da2e4c5">krb5_get_extra_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr>
<tr class="separator:ga0c24a484850684f9252c0f494da2e4c5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga666a78a6b321bdc7d174343329d0eae9"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga666a78a6b321bdc7d174343329d0eae9">krb5_add_ignore_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr>
<tr class="separator:ga666a78a6b321bdc7d174343329d0eae9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4d9823757dea2b9884c136fb959383bc"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga4d9823757dea2b9884c136fb959383bc">krb5_set_ignore_addresses</a> (krb5_context context, const krb5_addresses *addresses)</td></tr>
<tr class="separator:ga4d9823757dea2b9884c136fb959383bc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6f089725948937875bc2594d9b8cbaf7"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga6f089725948937875bc2594d9b8cbaf7">krb5_get_ignore_addresses</a> (krb5_context context, krb5_addresses *addresses)</td></tr>
<tr class="separator:ga6f089725948937875bc2594d9b8cbaf7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2f77d43f11ad41cd9b5676cc73f052bc"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga2f77d43f11ad41cd9b5676cc73f052bc">krb5_set_fcache_version</a> (krb5_context context, int version)</td></tr>
<tr class="separator:ga2f77d43f11ad41cd9b5676cc73f052bc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga913ff7c6bd16cd3d3cb07529345b65ba"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga913ff7c6bd16cd3d3cb07529345b65ba">krb5_get_fcache_version</a> (krb5_context context, int *version)</td></tr>
<tr class="separator:ga913ff7c6bd16cd3d3cb07529345b65ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac5664b887b62be61c00c70fa9e290611"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gac5664b887b62be61c00c70fa9e290611">krb5_is_thread_safe</a> (void)</td></tr>
<tr class="separator:gac5664b887b62be61c00c70fa9e290611"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga798fb21edcec6c7b251709f1e447b21b"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga798fb21edcec6c7b251709f1e447b21b">krb5_set_dns_canonicalize_hostname</a> (krb5_context context, krb5_boolean flag)</td></tr>
<tr class="separator:ga798fb21edcec6c7b251709f1e447b21b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaef9f47692fc31c50afc14b581b7aa2fa"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaef9f47692fc31c50afc14b581b7aa2fa">krb5_get_dns_canonicalize_hostname</a> (krb5_context context)</td></tr>
<tr class="separator:gaef9f47692fc31c50afc14b581b7aa2fa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafacf61debb011b06e22e78251104efa0"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gafacf61debb011b06e22e78251104efa0">krb5_get_kdc_sec_offset</a> (krb5_context context, int32_t *sec, int32_t *usec)</td></tr>
<tr class="separator:gafacf61debb011b06e22e78251104efa0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafd16890e03f6dff6f6d013d97e0ee185"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gafd16890e03f6dff6f6d013d97e0ee185">krb5_set_kdc_sec_offset</a> (krb5_context context, int32_t sec, int32_t usec)</td></tr>
<tr class="separator:gafd16890e03f6dff6f6d013d97e0ee185"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabefb8ef32ceedc5ffe6c9440c093a533"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gabefb8ef32ceedc5ffe6c9440c093a533">krb5_get_max_time_skew</a> (krb5_context context)</td></tr>
<tr class="separator:gabefb8ef32ceedc5ffe6c9440c093a533"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2257aeff745924c48f12d1893d7523ba"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga2257aeff745924c48f12d1893d7523ba">krb5_set_max_time_skew</a> (krb5_context context, time_t t)</td></tr>
<tr class="separator:ga2257aeff745924c48f12d1893d7523ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3a8e40d622ff1460b2f554d83a9059ea"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3a8e40d622ff1460b2f554d83a9059ea">krb5_set_home_dir_access</a> (krb5_context context, krb5_boolean allow)</td></tr>
<tr class="separator:ga3a8e40d622ff1460b2f554d83a9059ea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae730027c647c418850393bce518f9d66"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gae730027c647c418850393bce518f9d66">krb5_copy_host_realm</a> (krb5_context context, const krb5_realm *from, krb5_realm **to)</td></tr>
<tr class="separator:gae730027c647c418850393bce518f9d66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad89c4c7b633646c39e4a34a7230c94e1"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gad89c4c7b633646c39e4a34a7230c94e1">krb5_free_cred_contents</a> (krb5_context context, krb5_creds *c)</td></tr>
<tr class="separator:gad89c4c7b633646c39e4a34a7230c94e1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac4fbae1d00b395ec9d69edabd93f432c"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gac4fbae1d00b395ec9d69edabd93f432c">krb5_copy_creds_contents</a> (krb5_context context, const krb5_creds *incred, krb5_creds *c)</td></tr>
<tr class="separator:gac4fbae1d00b395ec9d69edabd93f432c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacb70cd95ac6806c3265ee6cec400b60d"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gacb70cd95ac6806c3265ee6cec400b60d">krb5_copy_creds</a> (krb5_context context, const krb5_creds *incred, krb5_creds **outcred)</td></tr>
<tr class="separator:gacb70cd95ac6806c3265ee6cec400b60d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5224797a3ca4c450466ef5102164ee85"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga5224797a3ca4c450466ef5102164ee85">krb5_free_creds</a> (krb5_context context, krb5_creds *c)</td></tr>
<tr class="separator:ga5224797a3ca4c450466ef5102164ee85"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga45afc77b07b201272eeeaad9890b63cf"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga45afc77b07b201272eeeaad9890b63cf">krb5_compare_creds</a> (krb5_context context, krb5_flags whichfields, const krb5_creds *mcreds, const krb5_creds *creds)</td></tr>
<tr class="separator:ga45afc77b07b201272eeeaad9890b63cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3e6ea2e16872304ac5cc3bed2a0abb88"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION unsigned long KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3e6ea2e16872304ac5cc3bed2a0abb88">krb5_creds_get_ticket_flags</a> (krb5_creds *creds)</td></tr>
<tr class="separator:ga3e6ea2e16872304ac5cc3bed2a0abb88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa059e96dde4e0b8c082eb6f3d570b7bc"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaa059e96dde4e0b8c082eb6f3d570b7bc">krb5_data_zero</a> (krb5_data *p)</td></tr>
<tr class="separator:gaa059e96dde4e0b8c082eb6f3d570b7bc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab4b80ac7a8bbab89fe947ae1c7828ea8"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gab4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free</a> (krb5_data *p)</td></tr>
<tr class="separator:gab4b80ac7a8bbab89fe947ae1c7828ea8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9494f7751d3751c45a5ed4a89a5323b4"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION void KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga9494f7751d3751c45a5ed4a89a5323b4">krb5_free_data</a> (krb5_context context, krb5_data *p)</td></tr>
<tr class="separator:ga9494f7751d3751c45a5ed4a89a5323b4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf5b03734f6027c752381986ac0975ea9"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaf5b03734f6027c752381986ac0975ea9">krb5_data_alloc</a> (krb5_data *p, int len)</td></tr>
<tr class="separator:gaf5b03734f6027c752381986ac0975ea9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0602c7a4b056d9004db090df9886811c"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga0602c7a4b056d9004db090df9886811c">krb5_data_realloc</a> (krb5_data *p, int len)</td></tr>
<tr class="separator:ga0602c7a4b056d9004db090df9886811c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafb664221cde2d10fb5d1b3dfb5c55e04"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gafb664221cde2d10fb5d1b3dfb5c55e04">krb5_data_copy</a> (krb5_data *p, const void *data, size_t len)</td></tr>
<tr class="separator:gafb664221cde2d10fb5d1b3dfb5c55e04"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga963388a0eea15e4e43dbe9c983e3e212"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga963388a0eea15e4e43dbe9c983e3e212">krb5_copy_data</a> (krb5_context context, const krb5_data *indata, krb5_data **outdata)</td></tr>
<tr class="separator:ga963388a0eea15e4e43dbe9c983e3e212"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafad0906fca85d7dea0f6b762822d0ff4"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gafad0906fca85d7dea0f6b762822d0ff4">krb5_data_cmp</a> (const krb5_data *data1, const krb5_data *data2)</td></tr>
<tr class="separator:gafad0906fca85d7dea0f6b762822d0ff4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacbeb984ec39d6f8ccb582816c14318ab"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gacbeb984ec39d6f8ccb582816c14318ab">krb5_data_ct_cmp</a> (const krb5_data *data1, const krb5_data *data2)</td></tr>
<tr class="separator:gacbeb984ec39d6f8ccb582816c14318ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0d0ba2f97ba34b1ebe89271c50bb3f1b"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION const char *KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga0d0ba2f97ba34b1ebe89271c50bb3f1b">krb5_get_err_text</a> (krb5_context context, krb5_error_code code) KRB5_DEPRECATED_FUNCTION("Use <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message</a> instead")</td></tr>
<tr class="separator:ga0d0ba2f97ba34b1ebe89271c50bb3f1b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8dcc8bb7370f2bd91bea895df7e1b1a2"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga8dcc8bb7370f2bd91bea895df7e1b1a2">krb5_krbhst_get_addrinfo</a> (krb5_context context, krb5_krbhst_info *host, struct addrinfo **ai)</td></tr>
<tr class="separator:ga8dcc8bb7370f2bd91bea895df7e1b1a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3d994aef26269ee2b15e4d34acb28fed"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga3d994aef26269ee2b15e4d34acb28fed">krb5_free_ticket</a> (krb5_context context, krb5_ticket *ticket)</td></tr>
<tr class="separator:ga3d994aef26269ee2b15e4d34acb28fed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac2c0c5fe2dc17714287a20785623be45"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gac2c0c5fe2dc17714287a20785623be45">krb5_copy_ticket</a> (krb5_context context, const krb5_ticket *from, krb5_ticket **to)</td></tr>
<tr class="separator:gac2c0c5fe2dc17714287a20785623be45"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6cf23f11044d79441ea1456a01ebe7d7"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga6cf23f11044d79441ea1456a01ebe7d7">krb5_ticket_get_client</a> (krb5_context context, const krb5_ticket *ticket, krb5_principal *client)</td></tr>
<tr class="separator:ga6cf23f11044d79441ea1456a01ebe7d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad1f40ffc29f379b7dec60144eefdb553"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gad1f40ffc29f379b7dec60144eefdb553">krb5_ticket_get_server</a> (krb5_context context, const krb5_ticket *ticket, krb5_principal *server)</td></tr>
<tr class="separator:gad1f40ffc29f379b7dec60144eefdb553"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga118b98784ccadd98cdaaa1ee5076c9fb"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga118b98784ccadd98cdaaa1ee5076c9fb">krb5_ticket_get_endtime</a> (krb5_context context, const krb5_ticket *ticket)</td></tr>
<tr class="separator:ga118b98784ccadd98cdaaa1ee5076c9fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa7387c09a85bf3aabe5bae8a2ec4af73"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#gaa7387c09a85bf3aabe5bae8a2ec4af73">krb5_ticket_get_authorization_data_type</a> (krb5_context context, krb5_ticket *ticket, int type, krb5_data *data)</td></tr>
<tr class="separator:gaa7387c09a85bf3aabe5bae8a2ec4af73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1bb5d4ab0e2ebd85414903617b1ac36b"><td class="memItemLeft" align="right" valign="top">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5.html#ga1bb5d4ab0e2ebd85414903617b1ac36b">krb5_set_real_time</a> (krb5_context context, krb5_timestamp sec, int32_t usec)</td></tr>
<tr class="separator:ga1bb5d4ab0e2ebd85414903617b1ac36b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="gac03fc138d472dd7743a0ab7ecb3061c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac03fc138d472dd7743a0ab7ecb3061c1">◆ </a></span>krb5_add_et_list()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_et_list </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void(*)(struct et_list **) </td>
<td class="paramname"><em>func</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add 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>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>A kerberos context. </td></tr>
<tr><td class="paramname">func</td><td>The generated com_err et function.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gaa3776874e66baaaad19316d65aeeb4b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa3776874e66baaaad19316d65aeeb4b5">◆ </a></span>krb5_add_extra_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_extra_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add extra address to the address list that the library will add to the client's address list when communicating with the KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>addreses to add</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga666a78a6b321bdc7d174343329d0eae9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga666a78a6b321bdc7d174343329d0eae9">◆ </a></span>krb5_add_ignore_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_add_ignore_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add extra addresses to ignore when fetching addresses from the underlaying operating system.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>addreses to ignore</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga45afc77b07b201272eeeaad9890b63cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga45afc77b07b201272eeeaad9890b63cf">◆ </a></span>krb5_compare_creds()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_compare_creds </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_flags </td>
<td class="paramname"><em>whichfields</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_creds * </td>
<td class="paramname"><em>mcreds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_creds * </td>
<td class="paramname"><em>creds</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return TRUE if ‘mcreds’ and ‘creds’ are equal (‘whichfields’ determines what equal means).</p>
<p>The following flags, set in whichfields affects the comparison:</p><ul>
<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>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">whichfields</td><td>which fields to compare. </td></tr>
<tr><td class="paramname">mcreds</td><td>cred to compare with. </td></tr>
<tr><td class="paramname">creds</td><td>cred to compare with.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return TRUE if mcred and creds are equal, FALSE if not. </dd></dl>
</div>
</div>
<a id="gad30312a0ba95a71478de1b5fba34db3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad30312a0ba95a71478de1b5fba34db3f">◆ </a></span>krb5_copy_context()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_context </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_context * </td>
<td class="paramname"><em>out</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Make a copy for the Kerberos 5 context, the new krb5_context shoud be freed with <a class="el" href="group__krb5.html#gae51d83f5d5f589883f1cd10887892777">krb5_free_context()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>the Kerberos context to copy </td></tr>
<tr><td class="paramname">out</td><td>the copy of the Kerberos, set to NULL error.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gacb70cd95ac6806c3265ee6cec400b60d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacb70cd95ac6806c3265ee6cec400b60d">◆ </a></span>krb5_copy_creds()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_creds </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_creds * </td>
<td class="paramname"><em>incred</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_creds ** </td>
<td class="paramname"><em>outcred</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy krb5_creds.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">incred</td><td>source credential </td></tr>
<tr><td class="paramname">outcred</td><td>destination credential, free with <a class="el" href="group__krb5.html#ga5224797a3ca4c450466ef5102164ee85">krb5_free_creds()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gac4fbae1d00b395ec9d69edabd93f432c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac4fbae1d00b395ec9d69edabd93f432c">◆ </a></span>krb5_copy_creds_contents()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_creds_contents </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_creds * </td>
<td class="paramname"><em>incred</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_creds * </td>
<td class="paramname"><em>c</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy content of krb5_creds.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">incred</td><td>source credential </td></tr>
<tr><td class="paramname">c</td><td>destination credential, free with <a class="el" href="group__krb5.html#gad89c4c7b633646c39e4a34a7230c94e1">krb5_free_cred_contents()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga963388a0eea15e4e43dbe9c983e3e212"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga963388a0eea15e4e43dbe9c983e3e212">◆ </a></span>krb5_copy_data()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_data </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_data * </td>
<td class="paramname"><em>indata</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_data ** </td>
<td class="paramname"><em>outdata</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the data into a newly allocated krb5_data.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">indata</td><td>the krb5_data data to copy </td></tr>
<tr><td class="paramname">outdata</td><td>new krb5_date to copy too. Free with <a class="el" href="group__krb5.html#ga9494f7751d3751c45a5ed4a89a5323b4">krb5_free_data()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl>
</div>
</div>
<a id="gae730027c647c418850393bce518f9d66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae730027c647c418850393bce518f9d66">◆ </a></span>krb5_copy_host_realm()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_host_realm </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_realm * </td>
<td class="paramname"><em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_realm ** </td>
<td class="paramname"><em>to</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the list of realms from ‘from’ to ‘to’.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">from</td><td>list of realms to copy from. </td></tr>
<tr><td class="paramname">to</td><td>list of realms to copy to, free list of <a class="el" href="group__krb5__support.html#gaca0ab80d3affb5986aa5061f3782401b">krb5_free_host_realm()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gac2c0c5fe2dc17714287a20785623be45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac2c0c5fe2dc17714287a20785623be45">◆ </a></span>krb5_copy_ticket()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_copy_ticket </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_ticket * </td>
<td class="paramname"><em>from</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_ticket ** </td>
<td class="paramname"><em>to</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy ticket and content</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">from</td><td>ticket to copy </td></tr>
<tr><td class="paramname">to</td><td>new copy of ticket, free with <a class="el" href="group__krb5.html#ga3d994aef26269ee2b15e4d34acb28fed">krb5_free_ticket()</a></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga3e6ea2e16872304ac5cc3bed2a0abb88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3e6ea2e16872304ac5cc3bed2a0abb88">◆ </a></span>krb5_creds_get_ticket_flags()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION unsigned long KRB5_LIB_CALL krb5_creds_get_ticket_flags </td>
<td>(</td>
<td class="paramtype">krb5_creds * </td>
<td class="paramname"><em>creds</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the ticket flags for the credentials in creds. See also <a class="el" href="group__krb5__ticket.html#gab6a75ab695ff8478394084138af9eb16">krb5_ticket_get_flags()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">creds</td><td>credential to get ticket flags from</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ticket flags </dd></dl>
</div>
</div>
<a id="gaf5b03734f6027c752381986ac0975ea9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5b03734f6027c752381986ac0975ea9">◆ </a></span>krb5_data_alloc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_alloc </td>
<td>(</td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate data of and krb5_data.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>krb5_data to allocate. </td></tr>
<tr><td class="paramname">len</td><td>size to allocate.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl>
</div>
</div>
<a id="gafad0906fca85d7dea0f6b762822d0ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafad0906fca85d7dea0f6b762822d0ff4">◆ </a></span>krb5_data_cmp()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_data_cmp </td>
<td>(</td>
<td class="paramtype">const krb5_data * </td>
<td class="paramname"><em>data1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_data * </td>
<td class="paramname"><em>data2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compare to data.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data1</td><td>krb5_data to compare </td></tr>
<tr><td class="paramname">data2</td><td>krb5_data to compare</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return the same way as memcmp(), useful when sorting. </dd></dl>
</div>
</div>
<a id="gafb664221cde2d10fb5d1b3dfb5c55e04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafb664221cde2d10fb5d1b3dfb5c55e04">◆ </a></span>krb5_data_copy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_copy </td>
<td>(</td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>len</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the data of len into the krb5_data.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>krb5_data to copy into. </td></tr>
<tr><td class="paramname">data</td><td>data to copy.. </td></tr>
<tr><td class="paramname">len</td><td>new size.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl>
</div>
</div>
<a id="gacbeb984ec39d6f8ccb582816c14318ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacbeb984ec39d6f8ccb582816c14318ab">◆ </a></span>krb5_data_ct_cmp()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_data_ct_cmp </td>
<td>(</td>
<td class="paramtype">const krb5_data * </td>
<td class="paramname"><em>data1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_data * </td>
<td class="paramname"><em>data2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compare to data not exposing timing information from the checksum data</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data1</td><td>krb5_data to compare </td></tr>
<tr><td class="paramname">data2</td><td>krb5_data to compare</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>returns zero for same data, otherwise non zero. </dd></dl>
</div>
</div>
<a id="gab4b80ac7a8bbab89fe947ae1c7828ea8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab4b80ac7a8bbab89fe947ae1c7828ea8">◆ </a></span>krb5_data_free()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_data_free </td>
<td>(</td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free the content of krb5_data structure, its ok to free a zeroed structure (with memset() or <a class="el" href="group__krb5.html#gaa059e96dde4e0b8c082eb6f3d570b7bc">krb5_data_zero()</a>). When done, the structure will be zeroed. The same function is called <a class="el" href="group__krb5__deprecated.html#ga220b8b17e81dc71dd3ecd1b079160db9">krb5_free_data_contents()</a> in MIT Kerberos.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>krb5_data to free. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga0602c7a4b056d9004db090df9886811c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0602c7a4b056d9004db090df9886811c">◆ </a></span>krb5_data_realloc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_data_realloc </td>
<td>(</td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>len</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Grow (or shrink) the content of krb5_data to a new size.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>krb5_data to free. </td></tr>
<tr><td class="paramname">len</td><td>new size.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned. </dd></dl>
</div>
</div>
<a id="gaa059e96dde4e0b8c082eb6f3d570b7bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa059e96dde4e0b8c082eb6f3d570b7bc">◆ </a></span>krb5_data_zero()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_data_zero </td>
<td>(</td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset the (potentially uninitalized) krb5_data structure.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>krb5_data to reset. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gace1b568d05875e7c4fbc6e5af5a8bdbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gace1b568d05875e7c4fbc6e5af5a8bdbf">◆ </a></span>krb5_free_config_files()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_config_files </td>
<td>(</td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>filenames</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free a list of configuration files.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filenames</td><td>list, terminated with a NULL pointer, to be freed. NULL is an valid argument.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gae51d83f5d5f589883f1cd10887892777"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae51d83f5d5f589883f1cd10887892777">◆ </a></span>krb5_free_context()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_context </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Frees the krb5_context allocated by <a class="el" href="group__krb5.html#gabd94206e186c58a093975424a4a567a8">krb5_init_context()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>context to be freed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gad89c4c7b633646c39e4a34a7230c94e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad89c4c7b633646c39e4a34a7230c94e1">◆ </a></span>krb5_free_cred_contents()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_cred_contents </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_creds * </td>
<td class="paramname"><em>c</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free content of krb5_creds.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">c</td><td>krb5_creds to free.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga5224797a3ca4c450466ef5102164ee85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5224797a3ca4c450466ef5102164ee85">◆ </a></span>krb5_free_creds()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_creds </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_creds * </td>
<td class="paramname"><em>c</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free krb5_creds.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">c</td><td>krb5_creds to free.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga9494f7751d3751c45a5ed4a89a5323b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9494f7751d3751c45a5ed4a89a5323b4">◆ </a></span>krb5_free_data()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_free_data </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>p</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free krb5_data (and its content).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">p</td><td>krb5_data to free. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga3d994aef26269ee2b15e4d34acb28fed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d994aef26269ee2b15e4d34acb28fed">◆ </a></span>krb5_free_ticket()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_free_ticket </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_ticket * </td>
<td class="paramname"><em>ticket</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free ticket and content</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">ticket</td><td>ticket to free</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga4276c71bee1ba0c9f2bbd659cd351cb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4276c71bee1ba0c9f2bbd659cd351cb3">◆ </a></span>krb5_get_default_config_files()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_default_config_files </td>
<td>(</td>
<td class="paramtype">char *** </td>
<td class="paramname"><em>pfilenames</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the global configuration list.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pfilenames</td><td>return array of filenames, should be freed with <a class="el" href="group__krb5.html#gace1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gaa2bba3d683f1280ddfe8430d834bd5e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa2bba3d683f1280ddfe8430d834bd5e8">◆ </a></span>krb5_get_default_in_tkt_etypes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_default_in_tkt_etypes </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_pdu </td>
<td class="paramname"><em>pdu_type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_enctype ** </td>
<td class="paramname"><em>etypes</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the default encryption types that will be use in communcation with the KDC, clients and servers.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">pdu_type</td><td>request type (AS, TGS or none) </td></tr>
<tr><td class="paramname">etypes</td><td>Encryption types, array terminated with ETYPE_NULL(0), caller should free array with krb5_xfree():</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gaef9f47692fc31c50afc14b581b7aa2fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef9f47692fc31c50afc14b581b7aa2fa">◆ </a></span>krb5_get_dns_canonicalize_hostname()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_get_dns_canonicalize_hostname </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get if the library uses DNS to canonicalize hostnames.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return non zero if the library uses DNS to canonicalize hostnames. </dd></dl>
</div>
</div>
<a id="ga0d0ba2f97ba34b1ebe89271c50bb3f1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0d0ba2f97ba34b1ebe89271c50bb3f1b">◆ </a></span>krb5_get_err_text()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION const char* KRB5_LIB_CALL krb5_get_err_text </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_error_code </td>
<td class="paramname"><em>code</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the error string for the error code. The caller must not free the string.</p>
<p>This function is deprecated since its not threadsafe.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">code</td><td>Kerberos error code.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the error message matching code </dd></dl>
</div>
</div>
<a id="ga0c24a484850684f9252c0f494da2e4c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c24a484850684f9252c0f494da2e4c5">◆ </a></span>krb5_get_extra_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_extra_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get extra address to the address list that the library will add to the client's address list when communicating with the KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>addreses to set</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga913ff7c6bd16cd3d3cb07529345b65ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga913ff7c6bd16cd3d3cb07529345b65ba">◆ </a></span>krb5_get_fcache_version()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_fcache_version </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>version</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get version of fcache that the library should use.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">version</td><td>version number.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga6f089725948937875bc2594d9b8cbaf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6f089725948937875bc2594d9b8cbaf7">◆ </a></span>krb5_get_ignore_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_ignore_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get extra addresses to ignore when fetching addresses from the underlaying operating system.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>list addreses ignored</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gafacf61debb011b06e22e78251104efa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafacf61debb011b06e22e78251104efa0">◆ </a></span>krb5_get_kdc_sec_offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_get_kdc_sec_offset </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t * </td>
<td class="paramname"><em>sec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t * </td>
<td class="paramname"><em>usec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get current offset in time to the KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">sec</td><td>seconds part of offset. </td></tr>
<tr><td class="paramname">usec</td><td>micro seconds part of offset.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>returns zero </dd></dl>
</div>
</div>
<a id="gabefb8ef32ceedc5ffe6c9440c093a533"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabefb8ef32ceedc5ffe6c9440c093a533">◆ </a></span>krb5_get_max_time_skew()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL krb5_get_max_time_skew </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get max time skew allowed.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>timeskew in seconds. </dd></dl>
</div>
</div>
<a id="gac68122daa411ea028bd521e6e9d2ca6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac68122daa411ea028bd521e6e9d2ca6b">◆ </a></span>krb5_get_use_admin_kdc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_get_use_admin_kdc </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Make the kerberos library default to the admin KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>boolean flag to telling the context will use admin KDC as the default KDC. </dd></dl>
</div>
</div>
<a id="gabd94206e186c58a093975424a4a567a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd94206e186c58a093975424a4a567a8">◆ </a></span>krb5_init_context()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_init_context </td>
<td>(</td>
<td class="paramtype">krb5_context * </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initializes 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#gae51d83f5d5f589883f1cd10887892777">krb5_free_context()</a> when it is no longer being used.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>pointer to returned context</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</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. If the function returns HEIM_ERR_RANDOM_OFFLINE, the random source is not available and later Kerberos calls might fail. </dd></dl>
<p><a class="el" href="group__krb5.html#gabd94206e186c58a093975424a4a567a8">krb5_init_context()</a> will get one random byte to make sure our random is alive. Assumption is that once the non blocking source allows us to pull bytes, its all seeded and allows us to pull more bytes.</p>
<p>Most Kerberos users calls <a class="el" href="group__krb5.html#gabd94206e186c58a093975424a4a567a8">krb5_init_context()</a>, so this is useful point where we can do the checking.</p>
</div>
</div>
<a id="ga0f4f2bf6056a5fd472d9dd3d393f133e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f4f2bf6056a5fd472d9dd3d393f133e">◆ </a></span>krb5_init_ets()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_init_ets </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Init the built-in ets in the Kerberos library.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>kerberos context to add the ets too </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gac5664b887b62be61c00c70fa9e290611"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac5664b887b62be61c00c70fa9e290611">◆ </a></span>krb5_is_thread_safe()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_is_thread_safe </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Runtime check if the Kerberos library was complied with thread support.</p>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the library was compiled with thread support, FALSE if not. </dd></dl>
</div>
</div>
<a id="ga92110f6472a4fb0a5e0a35da81af4fa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga92110f6472a4fb0a5e0a35da81af4fa2">◆ </a></span>krb5_kerberos_enctypes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION const krb5_enctype* KRB5_LIB_CALL krb5_kerberos_enctypes </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns 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#gad5f2b15d5fde369cf923e8fae4b00bec">krb5_enctype_valid()</a> before using the encryption type.</p>
<dl class="section return"><dt>Returns</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>
</div>
</div>
<a id="ga8dcc8bb7370f2bd91bea895df7e1b1a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8dcc8bb7370f2bd91bea895df7e1b1a2">◆ </a></span>krb5_krbhst_get_addrinfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_krbhst_get_addrinfo </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_krbhst_info * </td>
<td class="paramname"><em>host</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct addrinfo ** </td>
<td class="paramname"><em>ai</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return an ‘struct addrinfo *’ for a KDC host.</p>
<p>Returns 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. </p>
</div>
</div>
<a id="gaad9a3fd7b838f053a71424d95bf73d40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaad9a3fd7b838f053a71424d95bf73d40">◆ </a></span>krb5_prepend_config_files_default()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_prepend_config_files_default </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filelist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *** </td>
<td class="paramname"><em>pfilenames</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Prepend the filename to the global configuration list.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filelist</td><td>a filename to add to the default list of filename </td></tr>
<tr><td class="paramname">pfilenames</td><td>return array of filenames, should be freed with <a class="el" href="group__krb5.html#gace1b568d05875e7c4fbc6e5af5a8bdbf">krb5_free_config_files()</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gad4453861fbfc0372e3c44b59325f62aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4453861fbfc0372e3c44b59325f62aa">◆ </a></span>krb5_set_config_files()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_config_files </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>filenames</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reinit the context from a new set of filenames.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>context to add configuration too. </td></tr>
<tr><td class="paramname">filenames</td><td>array of filenames, end of list is indicated with a NULL filename.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga5e028d8b3b0444c98b251f46eb48235a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5e028d8b3b0444c98b251f46eb48235a">◆ </a></span>krb5_set_default_in_tkt_etypes()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_default_in_tkt_etypes </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_enctype * </td>
<td class="paramname"><em>etypes</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the default encryption types that will be use in communcation with the KDC, clients and servers.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">etypes</td><td>Encryption types, array terminated with ETYPE_NULL (0). A value of NULL resets the encryption types to the defaults set in the configuration file.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga798fb21edcec6c7b251709f1e447b21b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga798fb21edcec6c7b251709f1e447b21b">◆ </a></span>krb5_set_dns_canonicalize_hostname()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_dns_canonicalize_hostname </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_boolean </td>
<td class="paramname"><em>flag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set if the library should use DNS to canonicalize hostnames.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">flag</td><td>if its dns canonicalizion is used or not. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga3c326674110a2d1c7d3523a0c308dddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c326674110a2d1c7d3523a0c308dddd">◆ </a></span>krb5_set_extra_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_extra_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set extra address to the address list that the library will add to the client's address list when communicating with the KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>addreses to set</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga2f77d43f11ad41cd9b5676cc73f052bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2f77d43f11ad41cd9b5676cc73f052bc">◆ </a></span>krb5_set_fcache_version()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_fcache_version </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>version</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set version of fcache that the library should use.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">version</td><td>version number.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga3a8e40d622ff1460b2f554d83a9059ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3a8e40d622ff1460b2f554d83a9059ea">◆ </a></span>krb5_set_home_dir_access()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_set_home_dir_access </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_boolean </td>
<td class="paramname"><em>allow</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enable and disable home directory access on either the global state or the krb5_context state. By calling <a class="el" href="group__krb5.html#ga3a8e40d622ff1460b2f554d83a9059ea">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>
<p>For home directory access to be allowed, both the global state and the krb5_context state have to be allowed.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context or NULL </td></tr>
<tr><td class="paramname">allow</td><td>allow if TRUE home directory </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the old value </dd></dl>
</div>
</div>
<a id="ga4d9823757dea2b9884c136fb959383bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4d9823757dea2b9884c136fb959383bc">◆ </a></span>krb5_set_ignore_addresses()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_ignore_addresses </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_addresses * </td>
<td class="paramname"><em>addresses</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set extra addresses to ignore when fetching addresses from the underlaying operating system.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">addresses</td><td>addreses to ignore</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="gafd16890e03f6dff6f6d013d97e0ee185"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafd16890e03f6dff6f6d013d97e0ee185">◆ </a></span>krb5_set_kdc_sec_offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_kdc_sec_offset </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>sec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>usec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set current offset in time to the KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">sec</td><td>seconds part of offset. </td></tr>
<tr><td class="paramname">usec</td><td>micro seconds part of offset.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>returns zero </dd></dl>
</div>
</div>
<a id="ga2257aeff745924c48f12d1893d7523ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2257aeff745924c48f12d1893d7523ba">◆ </a></span>krb5_set_max_time_skew()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_max_time_skew </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">time_t </td>
<td class="paramname"><em>t</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set max time skew allowed.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">t</td><td>timeskew in seconds. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga02611e3966053f79eda248d76dccc282"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga02611e3966053f79eda248d76dccc282">◆ </a></span>krb5_set_password()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_password </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_creds * </td>
<td class="paramname"><em>creds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>newpw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_principal </td>
<td class="paramname"><em>targprinc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>result_code</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>result_code_string</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>result_string</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change password using creds.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Keberos context </td></tr>
<tr><td class="paramname">creds</td><td>The initial kadmin/passwd for the principal or an admin principal </td></tr>
<tr><td class="paramname">newpw</td><td>The new password to set </td></tr>
<tr><td class="paramname">targprinc</td><td>if unset, the default principal is used. </td></tr>
<tr><td class="paramname">result_code</td><td>Result code, KRB5_KPASSWD_SUCCESS is when password is changed. </td></tr>
<tr><td class="paramname">result_code_string</td><td>binary message from the server, contains at least the result_code. </td></tr>
<tr><td class="paramname">result_string</td><td>A message from the kpasswd service or the library in human printable form. The string is NUL terminated.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>On sucess and *result_code is KRB5_KPASSWD_SUCCESS, the password is changed.</dd></dl>
<p>@ </p>
</div>
</div>
<a id="ga1bb5d4ab0e2ebd85414903617b1ac36b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1bb5d4ab0e2ebd85414903617b1ac36b">◆ </a></span>krb5_set_real_time()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_set_real_time </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_timestamp </td>
<td class="paramname"><em>sec</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int32_t </td>
<td class="paramname"><em>usec</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set 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>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Keberos 5 context. </td></tr>
<tr><td class="paramname">sec</td><td>The applications new of "now" in seconds </td></tr>
<tr><td class="paramname">usec</td><td>The applications new of "now" in micro seconds</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Kerberos 5 error code, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
<p>If the caller passes in a negative usec, its assumed to be unknown and the function will use the current time usec.</p>
</div>
</div>
<a id="ga3e1564b6d147482eba7bfb5e40a4ff6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3e1564b6d147482eba7bfb5e40a4ff6f">◆ </a></span>krb5_set_use_admin_kdc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_set_use_admin_kdc </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_boolean </td>
<td class="paramname"><em>flag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Make the kerberos library default to the admin KDC.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Kerberos 5 context. </td></tr>
<tr><td class="paramname">flag</td><td>boolean flag to select if the use the admin KDC or not. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gaa7387c09a85bf3aabe5bae8a2ec4af73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa7387c09a85bf3aabe5bae8a2ec4af73">◆ </a></span>krb5_ticket_get_authorization_data_type()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_authorization_data_type </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_ticket * </td>
<td class="paramname"><em>ticket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_data * </td>
<td class="paramname"><em>data</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract the authorization data type of type from the ticket. Store the field in data. This function is to use for kerberos applications.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">ticket</td><td>Kerberos ticket </td></tr>
<tr><td class="paramname">type</td><td>type to fetch </td></tr>
<tr><td class="paramname">data</td><td>returned data, free with <a class="el" href="group__krb5.html#gab4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free()</a> </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga6cf23f11044d79441ea1456a01ebe7d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6cf23f11044d79441ea1456a01ebe7d7">◆ </a></span>krb5_ticket_get_client()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_client </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_ticket * </td>
<td class="paramname"><em>ticket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_principal * </td>
<td class="paramname"><em>client</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return client principal in ticket</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">ticket</td><td>ticket to copy </td></tr>
<tr><td class="paramname">client</td><td>client principal, free with <a class="el" href="group__krb5__principal.html#ga5bd3f620ebe8cd4fe44b5c858ba17d22">krb5_free_principal()</a></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
<a id="ga118b98784ccadd98cdaaa1ee5076c9fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga118b98784ccadd98cdaaa1ee5076c9fb">◆ </a></span>krb5_ticket_get_endtime()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION time_t KRB5_LIB_CALL krb5_ticket_get_endtime </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_ticket * </td>
<td class="paramname"><em>ticket</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return end time of ticket</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">ticket</td><td>ticket to copy</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>end time of ticket </dd></dl>
</div>
</div>
<a id="gad1f40ffc29f379b7dec60144eefdb553"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1f40ffc29f379b7dec60144eefdb553">◆ </a></span>krb5_ticket_get_server()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ticket_get_server </td>
<td>(</td>
<td class="paramtype">krb5_context </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const krb5_ticket * </td>
<td class="paramname"><em>ticket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">krb5_principal * </td>
<td class="paramname"><em>server</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return server principal in ticket</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>a Kerberos 5 context </td></tr>
<tr><td class="paramname">ticket</td><td>ticket to copy </td></tr>
<tr><td class="paramname">server</td><td>server principal, free with <a class="el" href="group__krb5__principal.html#ga5bd3f620ebe8cd4fe44b5c858ba17d22">krb5_free_principal()</a></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see <a class="el" href="group__krb5__error.html#ga35cbf80e68f43a6d9503952886b85ed2">krb5_get_error_message()</a>. </dd></dl>
</div>
</div>
</div><!-- contents -->
<hr size="1"><address style="text-align: right;"><small>
Generated on Tue Nov 15 2022 14:04:26 for Heimdal Kerberos 5 library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.9.1</small></address>
</body>
</html>