xref: /freebsd/crypto/heimdal/doc/doxyout/krb5/html/group__krb5__keytab.html (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1ae771770SStanislav Sedov<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2ae771770SStanislav Sedov<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3ae771770SStanislav Sedov<title>HeimdalKerberos5library: Heimdal Kerberos 5 keytab handling functions</title>
4ae771770SStanislav Sedov<link href="doxygen.css" rel="stylesheet" type="text/css">
5ae771770SStanislav Sedov<link href="tabs.css" rel="stylesheet" type="text/css">
6ae771770SStanislav Sedov</head><body>
7ae771770SStanislav Sedov<p>
8ae771770SStanislav Sedov<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a>
9ae771770SStanislav Sedov</p>
10ae771770SStanislav Sedov<!-- end of header marker -->
11ae771770SStanislav Sedov<!-- Generated by Doxygen 1.5.6 -->
12ae771770SStanislav Sedov<div class="navigation" id="top">
13ae771770SStanislav Sedov  <div class="tabs">
14ae771770SStanislav Sedov    <ul>
15ae771770SStanislav Sedov      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
16ae771770SStanislav Sedov      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
17ae771770SStanislav Sedov      <li><a href="modules.html"><span>Modules</span></a></li>
18ae771770SStanislav Sedov      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
19ae771770SStanislav Sedov    </ul>
20ae771770SStanislav Sedov  </div>
21ae771770SStanislav Sedov</div>
22ae771770SStanislav Sedov<div class="contents">
23ae771770SStanislav Sedov<h1>Heimdal Kerberos 5 keytab handling functions</h1><table border="0" cellpadding="0" cellspacing="0">
24ae771770SStanislav Sedov<tr><td></td></tr>
25ae771770SStanislav Sedov<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
26ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
27ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g0b54b479db89c76e46d6edae8328848e">krb5_kt_register</a> (krb5_context context, const krb5_kt_ops *ops)</td></tr>
28ae771770SStanislav Sedov
29ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
30ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gc57fead58fb1baa003d6438613731901">krb5_kt_resolve</a> (krb5_context context, const char *name, krb5_keytab *id)</td></tr>
31ae771770SStanislav Sedov
32ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
33ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g3fdc1c60208dc99c1f0ebec18e2a7a52">krb5_kt_default_name</a> (krb5_context context, char *name, size_t namesize)</td></tr>
34ae771770SStanislav Sedov
35ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
36ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gaaff7211e887e908d909d75febf33200">krb5_kt_default_modify_name</a> (krb5_context context, char *name, size_t namesize)</td></tr>
37ae771770SStanislav Sedov
38ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
39ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gfcd059883c79dbd99a179bc4225d16b5">krb5_kt_default</a> (krb5_context context, krb5_keytab *id)</td></tr>
40ae771770SStanislav Sedov
41ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
42ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g6040b238ff8adeb346ca35e5530bdeff">krb5_kt_read_service_key</a> (krb5_context context, krb5_pointer keyprocarg, krb5_principal principal, krb5_kvno vno, krb5_enctype enctype, krb5_keyblock **key)</td></tr>
43ae771770SStanislav Sedov
44ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
45ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g632921a4b144a4eb656968d836efd9bb">krb5_kt_get_type</a> (krb5_context context, krb5_keytab keytab, char *prefix, size_t prefixsize)</td></tr>
46ae771770SStanislav Sedov
47ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
48ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#ga10348fa20bbae806d652aa4adb44bdd">krb5_kt_get_name</a> (krb5_context context, krb5_keytab keytab, char *name, size_t namesize)</td></tr>
49ae771770SStanislav Sedov
50ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
51ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g40744ad6c5d9eed2b76d26f5e698d1f3">krb5_kt_get_full_name</a> (krb5_context context, krb5_keytab keytab, char **str)</td></tr>
52ae771770SStanislav Sedov
53ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
54ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gb67f5ae0a7c4b87d193218b842cad590">krb5_kt_close</a> (krb5_context context, krb5_keytab id)</td></tr>
55ae771770SStanislav Sedov
56ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
57ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g23f1f8d506d680564ff0c783b903abf9">krb5_kt_destroy</a> (krb5_context context, krb5_keytab id)</td></tr>
58ae771770SStanislav Sedov
59ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br>
60ae771770SStanislav SedovKRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g688d397ec30b48e5edc5a59567bc8010">krb5_kt_compare</a> (krb5_context context, krb5_keytab_entry *entry, krb5_const_principal principal, krb5_kvno vno, krb5_enctype enctype)</td></tr>
61ae771770SStanislav Sedov
62ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
63ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gd7183b9573330db0575118057b3a02a5">krb5_kt_get_entry</a> (krb5_context context, krb5_keytab id, krb5_const_principal principal, krb5_kvno kvno, krb5_enctype enctype, krb5_keytab_entry *entry)</td></tr>
64ae771770SStanislav Sedov
65ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
66ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g6c6c4233517bd5b12f5c3a99ed31b058">krb5_kt_copy_entry_contents</a> (krb5_context context, const krb5_keytab_entry *in, krb5_keytab_entry *out)</td></tr>
67ae771770SStanislav Sedov
68ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
69ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gc0774ab1407eaaaa0e5998478de246e2">krb5_kt_free_entry</a> (krb5_context context, krb5_keytab_entry *entry)</td></tr>
70ae771770SStanislav Sedov
71ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
72ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g1efd8ee48d6e3caa31cad475423b8917">krb5_kt_start_seq_get</a> (krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)</td></tr>
73ae771770SStanislav Sedov
74ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
75ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gc40140c41333a86d3c40426f50b4e1b0">krb5_kt_next_entry</a> (krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor)</td></tr>
76ae771770SStanislav Sedov
77ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
78ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g11289efb407d93a1f84d5c64731a4bd1">krb5_kt_end_seq_get</a> (krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)</td></tr>
79ae771770SStanislav Sedov
80ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
81ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g68d16c2a59d10dc3ca84bf8cbf6a4731">krb5_kt_add_entry</a> (krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)</td></tr>
82ae771770SStanislav Sedov
83ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br>
84ae771770SStanislav Sedovkrb5_error_code KRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#g0f3e7f55fd97a595c961f0ffc49bebac">krb5_kt_remove_entry</a> (krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)</td></tr>
85ae771770SStanislav Sedov
86ae771770SStanislav Sedov<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br>
87ae771770SStanislav SedovKRB5_LIB_CALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__keytab.html#gf0947f9089022eaf4c83a463cad10ed3">krb5_kt_have_content</a> (krb5_context context, krb5_keytab id)</td></tr>
88ae771770SStanislav Sedov
89ae771770SStanislav Sedov</table>
90ae771770SStanislav Sedov<hr><a name="_details"></a><h2>Detailed Description</h2>
91ae771770SStanislav Sedov<hr><h2>Function Documentation</h2>
92ae771770SStanislav Sedov<a class="anchor" name="g68d16c2a59d10dc3ca84bf8cbf6a4731"></a><!-- doxytag: member="keytab.c::krb5_kt_add_entry" ref="g68d16c2a59d10dc3ca84bf8cbf6a4731" args="(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)" -->
93ae771770SStanislav Sedov<div class="memitem">
94ae771770SStanislav Sedov<div class="memproto">
95ae771770SStanislav Sedov      <table class="memname">
96ae771770SStanislav Sedov        <tr>
97ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_add_entry           </td>
98ae771770SStanislav Sedov          <td>(</td>
99ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
100ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
101ae771770SStanislav Sedov        </tr>
102ae771770SStanislav Sedov        <tr>
103ae771770SStanislav Sedov          <td class="paramkey"></td>
104ae771770SStanislav Sedov          <td></td>
105ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
106ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
107ae771770SStanislav Sedov        </tr>
108ae771770SStanislav Sedov        <tr>
109ae771770SStanislav Sedov          <td class="paramkey"></td>
110ae771770SStanislav Sedov          <td></td>
111ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
112ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em></td><td>&nbsp;</td>
113ae771770SStanislav Sedov        </tr>
114ae771770SStanislav Sedov        <tr>
115ae771770SStanislav Sedov          <td></td>
116ae771770SStanislav Sedov          <td>)</td>
117ae771770SStanislav Sedov          <td></td><td></td><td></td>
118ae771770SStanislav Sedov        </tr>
119ae771770SStanislav Sedov      </table>
120ae771770SStanislav Sedov</div>
121ae771770SStanislav Sedov<div class="memdoc">
122ae771770SStanislav Sedov
123ae771770SStanislav Sedov<p>
124ae771770SStanislav SedovAdd the entry in `entry' to the keytab `id'.<p>
125ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
126ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
127ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
128ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
129ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the entry to add</td></tr>
130ae771770SStanislav Sedov  </table>
131ae771770SStanislav Sedov</dl>
132ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
133ae771770SStanislav Sedov
134ae771770SStanislav Sedov</div>
135ae771770SStanislav Sedov</div><p>
136ae771770SStanislav Sedov<a class="anchor" name="gb67f5ae0a7c4b87d193218b842cad590"></a><!-- doxytag: member="keytab.c::krb5_kt_close" ref="gb67f5ae0a7c4b87d193218b842cad590" args="(krb5_context context, krb5_keytab id)" -->
137ae771770SStanislav Sedov<div class="memitem">
138ae771770SStanislav Sedov<div class="memproto">
139ae771770SStanislav Sedov      <table class="memname">
140ae771770SStanislav Sedov        <tr>
141ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_close           </td>
142ae771770SStanislav Sedov          <td>(</td>
143ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
144ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
145ae771770SStanislav Sedov        </tr>
146ae771770SStanislav Sedov        <tr>
147ae771770SStanislav Sedov          <td class="paramkey"></td>
148ae771770SStanislav Sedov          <td></td>
149ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
150ae771770SStanislav Sedov          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
151ae771770SStanislav Sedov        </tr>
152ae771770SStanislav Sedov        <tr>
153ae771770SStanislav Sedov          <td></td>
154ae771770SStanislav Sedov          <td>)</td>
155ae771770SStanislav Sedov          <td></td><td></td><td></td>
156ae771770SStanislav Sedov        </tr>
157ae771770SStanislav Sedov      </table>
158ae771770SStanislav Sedov</div>
159ae771770SStanislav Sedov<div class="memdoc">
160ae771770SStanislav Sedov
161ae771770SStanislav Sedov<p>
162ae771770SStanislav SedovFinish using the keytab in `id'. All resources will be released, even on errors.<p>
163ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
164ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
165ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
166ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>keytab to close.</td></tr>
167ae771770SStanislav Sedov  </table>
168ae771770SStanislav Sedov</dl>
169ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
170ae771770SStanislav Sedov
171ae771770SStanislav Sedov</div>
172ae771770SStanislav Sedov</div><p>
173ae771770SStanislav Sedov<a class="anchor" name="g688d397ec30b48e5edc5a59567bc8010"></a><!-- doxytag: member="keytab.c::krb5_kt_compare" ref="g688d397ec30b48e5edc5a59567bc8010" args="(krb5_context context, krb5_keytab_entry *entry, krb5_const_principal principal, krb5_kvno vno, krb5_enctype enctype)" -->
174ae771770SStanislav Sedov<div class="memitem">
175ae771770SStanislav Sedov<div class="memproto">
176ae771770SStanislav Sedov      <table class="memname">
177ae771770SStanislav Sedov        <tr>
178ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_kt_compare           </td>
179ae771770SStanislav Sedov          <td>(</td>
180ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
181ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
182ae771770SStanislav Sedov        </tr>
183ae771770SStanislav Sedov        <tr>
184ae771770SStanislav Sedov          <td class="paramkey"></td>
185ae771770SStanislav Sedov          <td></td>
186ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
187ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em>, </td>
188ae771770SStanislav Sedov        </tr>
189ae771770SStanislav Sedov        <tr>
190ae771770SStanislav Sedov          <td class="paramkey"></td>
191ae771770SStanislav Sedov          <td></td>
192ae771770SStanislav Sedov          <td class="paramtype">krb5_const_principal&nbsp;</td>
193ae771770SStanislav Sedov          <td class="paramname"> <em>principal</em>, </td>
194ae771770SStanislav Sedov        </tr>
195ae771770SStanislav Sedov        <tr>
196ae771770SStanislav Sedov          <td class="paramkey"></td>
197ae771770SStanislav Sedov          <td></td>
198ae771770SStanislav Sedov          <td class="paramtype">krb5_kvno&nbsp;</td>
199ae771770SStanislav Sedov          <td class="paramname"> <em>vno</em>, </td>
200ae771770SStanislav Sedov        </tr>
201ae771770SStanislav Sedov        <tr>
202ae771770SStanislav Sedov          <td class="paramkey"></td>
203ae771770SStanislav Sedov          <td></td>
204ae771770SStanislav Sedov          <td class="paramtype">krb5_enctype&nbsp;</td>
205ae771770SStanislav Sedov          <td class="paramname"> <em>enctype</em></td><td>&nbsp;</td>
206ae771770SStanislav Sedov        </tr>
207ae771770SStanislav Sedov        <tr>
208ae771770SStanislav Sedov          <td></td>
209ae771770SStanislav Sedov          <td>)</td>
210ae771770SStanislav Sedov          <td></td><td></td><td></td>
211ae771770SStanislav Sedov        </tr>
212ae771770SStanislav Sedov      </table>
213ae771770SStanislav Sedov</div>
214ae771770SStanislav Sedov<div class="memdoc">
215ae771770SStanislav Sedov
216ae771770SStanislav Sedov<p>
217ae771770SStanislav SedovCompare `entry' against `principal, vno, enctype'. Any of `principal, vno, enctype' might be 0 which acts as a wildcard. Return TRUE if they compare the same, FALSE otherwise.<p>
218ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
219ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
220ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
221ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>an entry to match with. </td></tr>
222ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>principal</em>&nbsp;</td><td>principal to match, NULL matches all principals. </td></tr>
223ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>vno</em>&nbsp;</td><td>key version to match, 0 matches all key version numbers. </td></tr>
224ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>enctype</em>&nbsp;</td><td>encryption type to match, 0 matches all encryption types.</td></tr>
225ae771770SStanislav Sedov  </table>
226ae771770SStanislav Sedov</dl>
227ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return TRUE or match, FALSE if not matched. </dd></dl>
228ae771770SStanislav Sedov
229ae771770SStanislav Sedov</div>
230ae771770SStanislav Sedov</div><p>
231ae771770SStanislav Sedov<a class="anchor" name="g6c6c4233517bd5b12f5c3a99ed31b058"></a><!-- doxytag: member="keytab.c::krb5_kt_copy_entry_contents" ref="g6c6c4233517bd5b12f5c3a99ed31b058" args="(krb5_context context, const krb5_keytab_entry *in, krb5_keytab_entry *out)" -->
232ae771770SStanislav Sedov<div class="memitem">
233ae771770SStanislav Sedov<div class="memproto">
234ae771770SStanislav Sedov      <table class="memname">
235ae771770SStanislav Sedov        <tr>
236ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_copy_entry_contents           </td>
237ae771770SStanislav Sedov          <td>(</td>
238ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
239ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
240ae771770SStanislav Sedov        </tr>
241ae771770SStanislav Sedov        <tr>
242ae771770SStanislav Sedov          <td class="paramkey"></td>
243ae771770SStanislav Sedov          <td></td>
244ae771770SStanislav Sedov          <td class="paramtype">const krb5_keytab_entry *&nbsp;</td>
245ae771770SStanislav Sedov          <td class="paramname"> <em>in</em>, </td>
246ae771770SStanislav Sedov        </tr>
247ae771770SStanislav Sedov        <tr>
248ae771770SStanislav Sedov          <td class="paramkey"></td>
249ae771770SStanislav Sedov          <td></td>
250ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
251ae771770SStanislav Sedov          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
252ae771770SStanislav Sedov        </tr>
253ae771770SStanislav Sedov        <tr>
254ae771770SStanislav Sedov          <td></td>
255ae771770SStanislav Sedov          <td>)</td>
256ae771770SStanislav Sedov          <td></td><td></td><td></td>
257ae771770SStanislav Sedov        </tr>
258ae771770SStanislav Sedov      </table>
259ae771770SStanislav Sedov</div>
260ae771770SStanislav Sedov<div class="memdoc">
261ae771770SStanislav Sedov
262ae771770SStanislav Sedov<p>
263ae771770SStanislav SedovCopy the contents of `in' into `out'.<p>
264ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
265ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
266ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
267ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>in</em>&nbsp;</td><td>the keytab entry to copy. </td></tr>
268ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>out</em>&nbsp;</td><td>the copy of the keytab entry, free with <a class="el" href="group__krb5__keytab.html#gc0774ab1407eaaaa0e5998478de246e2">krb5_kt_free_entry()</a>.</td></tr>
269ae771770SStanislav Sedov  </table>
270ae771770SStanislav Sedov</dl>
271ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
272ae771770SStanislav Sedov
273ae771770SStanislav Sedov</div>
274ae771770SStanislav Sedov</div><p>
275ae771770SStanislav Sedov<a class="anchor" name="gfcd059883c79dbd99a179bc4225d16b5"></a><!-- doxytag: member="keytab.c::krb5_kt_default" ref="gfcd059883c79dbd99a179bc4225d16b5" args="(krb5_context context, krb5_keytab *id)" -->
276ae771770SStanislav Sedov<div class="memitem">
277ae771770SStanislav Sedov<div class="memproto">
278ae771770SStanislav Sedov      <table class="memname">
279ae771770SStanislav Sedov        <tr>
280ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_default           </td>
281ae771770SStanislav Sedov          <td>(</td>
282ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
283ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
284ae771770SStanislav Sedov        </tr>
285ae771770SStanislav Sedov        <tr>
286ae771770SStanislav Sedov          <td class="paramkey"></td>
287ae771770SStanislav Sedov          <td></td>
288ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab *&nbsp;</td>
289ae771770SStanislav Sedov          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
290ae771770SStanislav Sedov        </tr>
291ae771770SStanislav Sedov        <tr>
292ae771770SStanislav Sedov          <td></td>
293ae771770SStanislav Sedov          <td>)</td>
294ae771770SStanislav Sedov          <td></td><td></td><td></td>
295ae771770SStanislav Sedov        </tr>
296ae771770SStanislav Sedov      </table>
297ae771770SStanislav Sedov</div>
298ae771770SStanislav Sedov<div class="memdoc">
299ae771770SStanislav Sedov
300ae771770SStanislav Sedov<p>
301ae771770SStanislav SedovSet `id' to the default keytab.<p>
302ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
303ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
304ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
305ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>the new default keytab.</td></tr>
306ae771770SStanislav Sedov  </table>
307ae771770SStanislav Sedov</dl>
308ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
309ae771770SStanislav Sedov
310ae771770SStanislav Sedov</div>
311ae771770SStanislav Sedov</div><p>
312ae771770SStanislav Sedov<a class="anchor" name="gaaff7211e887e908d909d75febf33200"></a><!-- doxytag: member="keytab.c::krb5_kt_default_modify_name" ref="gaaff7211e887e908d909d75febf33200" args="(krb5_context context, char *name, size_t namesize)" -->
313ae771770SStanislav Sedov<div class="memitem">
314ae771770SStanislav Sedov<div class="memproto">
315ae771770SStanislav Sedov      <table class="memname">
316ae771770SStanislav Sedov        <tr>
317ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_default_modify_name           </td>
318ae771770SStanislav Sedov          <td>(</td>
319ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
320ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
321ae771770SStanislav Sedov        </tr>
322ae771770SStanislav Sedov        <tr>
323ae771770SStanislav Sedov          <td class="paramkey"></td>
324ae771770SStanislav Sedov          <td></td>
325ae771770SStanislav Sedov          <td class="paramtype">char *&nbsp;</td>
326ae771770SStanislav Sedov          <td class="paramname"> <em>name</em>, </td>
327ae771770SStanislav Sedov        </tr>
328ae771770SStanislav Sedov        <tr>
329ae771770SStanislav Sedov          <td class="paramkey"></td>
330ae771770SStanislav Sedov          <td></td>
331ae771770SStanislav Sedov          <td class="paramtype">size_t&nbsp;</td>
332ae771770SStanislav Sedov          <td class="paramname"> <em>namesize</em></td><td>&nbsp;</td>
333ae771770SStanislav Sedov        </tr>
334ae771770SStanislav Sedov        <tr>
335ae771770SStanislav Sedov          <td></td>
336ae771770SStanislav Sedov          <td>)</td>
337ae771770SStanislav Sedov          <td></td><td></td><td></td>
338ae771770SStanislav Sedov        </tr>
339ae771770SStanislav Sedov      </table>
340ae771770SStanislav Sedov</div>
341ae771770SStanislav Sedov<div class="memdoc">
342ae771770SStanislav Sedov
343ae771770SStanislav Sedov<p>
344ae771770SStanislav SedovCopy the name of the default modify keytab into `name'.<p>
345ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
346ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
347ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
348ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>buffer where the name will be written </td></tr>
349ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>namesize</em>&nbsp;</td><td>length of name</td></tr>
350ae771770SStanislav Sedov  </table>
351ae771770SStanislav Sedov</dl>
352ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
353ae771770SStanislav Sedov
354ae771770SStanislav Sedov</div>
355ae771770SStanislav Sedov</div><p>
356ae771770SStanislav Sedov<a class="anchor" name="g3fdc1c60208dc99c1f0ebec18e2a7a52"></a><!-- doxytag: member="keytab.c::krb5_kt_default_name" ref="g3fdc1c60208dc99c1f0ebec18e2a7a52" args="(krb5_context context, char *name, size_t namesize)" -->
357ae771770SStanislav Sedov<div class="memitem">
358ae771770SStanislav Sedov<div class="memproto">
359ae771770SStanislav Sedov      <table class="memname">
360ae771770SStanislav Sedov        <tr>
361ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_default_name           </td>
362ae771770SStanislav Sedov          <td>(</td>
363ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
364ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
365ae771770SStanislav Sedov        </tr>
366ae771770SStanislav Sedov        <tr>
367ae771770SStanislav Sedov          <td class="paramkey"></td>
368ae771770SStanislav Sedov          <td></td>
369ae771770SStanislav Sedov          <td class="paramtype">char *&nbsp;</td>
370ae771770SStanislav Sedov          <td class="paramname"> <em>name</em>, </td>
371ae771770SStanislav Sedov        </tr>
372ae771770SStanislav Sedov        <tr>
373ae771770SStanislav Sedov          <td class="paramkey"></td>
374ae771770SStanislav Sedov          <td></td>
375ae771770SStanislav Sedov          <td class="paramtype">size_t&nbsp;</td>
376ae771770SStanislav Sedov          <td class="paramname"> <em>namesize</em></td><td>&nbsp;</td>
377ae771770SStanislav Sedov        </tr>
378ae771770SStanislav Sedov        <tr>
379ae771770SStanislav Sedov          <td></td>
380ae771770SStanislav Sedov          <td>)</td>
381ae771770SStanislav Sedov          <td></td><td></td><td></td>
382ae771770SStanislav Sedov        </tr>
383ae771770SStanislav Sedov      </table>
384ae771770SStanislav Sedov</div>
385ae771770SStanislav Sedov<div class="memdoc">
386ae771770SStanislav Sedov
387ae771770SStanislav Sedov<p>
388ae771770SStanislav Sedovcopy the name of the default keytab into `name'.<p>
389ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
390ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
391ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
392ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>buffer where the name will be written </td></tr>
393ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>namesize</em>&nbsp;</td><td>length of name</td></tr>
394ae771770SStanislav Sedov  </table>
395ae771770SStanislav Sedov</dl>
396ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
397ae771770SStanislav Sedov
398ae771770SStanislav Sedov</div>
399ae771770SStanislav Sedov</div><p>
400ae771770SStanislav Sedov<a class="anchor" name="g23f1f8d506d680564ff0c783b903abf9"></a><!-- doxytag: member="keytab.c::krb5_kt_destroy" ref="g23f1f8d506d680564ff0c783b903abf9" args="(krb5_context context, krb5_keytab id)" -->
401ae771770SStanislav Sedov<div class="memitem">
402ae771770SStanislav Sedov<div class="memproto">
403ae771770SStanislav Sedov      <table class="memname">
404ae771770SStanislav Sedov        <tr>
405ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_destroy           </td>
406ae771770SStanislav Sedov          <td>(</td>
407ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
408ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
409ae771770SStanislav Sedov        </tr>
410ae771770SStanislav Sedov        <tr>
411ae771770SStanislav Sedov          <td class="paramkey"></td>
412ae771770SStanislav Sedov          <td></td>
413ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
414ae771770SStanislav Sedov          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
415ae771770SStanislav Sedov        </tr>
416ae771770SStanislav Sedov        <tr>
417ae771770SStanislav Sedov          <td></td>
418ae771770SStanislav Sedov          <td>)</td>
419ae771770SStanislav Sedov          <td></td><td></td><td></td>
420ae771770SStanislav Sedov        </tr>
421ae771770SStanislav Sedov      </table>
422ae771770SStanislav Sedov</div>
423ae771770SStanislav Sedov<div class="memdoc">
424ae771770SStanislav Sedov
425ae771770SStanislav Sedov<p>
426ae771770SStanislav SedovDestroy (remove) the keytab in `id'. All resources will be released, even on errors, does the equvalment of <a class="el" href="group__krb5__keytab.html#gb67f5ae0a7c4b87d193218b842cad590">krb5_kt_close()</a> on the resources.<p>
427ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
428ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
429ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
430ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>keytab to destroy.</td></tr>
431ae771770SStanislav Sedov  </table>
432ae771770SStanislav Sedov</dl>
433ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
434ae771770SStanislav Sedov
435ae771770SStanislav Sedov</div>
436ae771770SStanislav Sedov</div><p>
437ae771770SStanislav Sedov<a class="anchor" name="g11289efb407d93a1f84d5c64731a4bd1"></a><!-- doxytag: member="keytab.c::krb5_kt_end_seq_get" ref="g11289efb407d93a1f84d5c64731a4bd1" args="(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)" -->
438ae771770SStanislav Sedov<div class="memitem">
439ae771770SStanislav Sedov<div class="memproto">
440ae771770SStanislav Sedov      <table class="memname">
441ae771770SStanislav Sedov        <tr>
442ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_end_seq_get           </td>
443ae771770SStanislav Sedov          <td>(</td>
444ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
445ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
446ae771770SStanislav Sedov        </tr>
447ae771770SStanislav Sedov        <tr>
448ae771770SStanislav Sedov          <td class="paramkey"></td>
449ae771770SStanislav Sedov          <td></td>
450ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
451ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
452ae771770SStanislav Sedov        </tr>
453ae771770SStanislav Sedov        <tr>
454ae771770SStanislav Sedov          <td class="paramkey"></td>
455ae771770SStanislav Sedov          <td></td>
456ae771770SStanislav Sedov          <td class="paramtype">krb5_kt_cursor *&nbsp;</td>
457ae771770SStanislav Sedov          <td class="paramname"> <em>cursor</em></td><td>&nbsp;</td>
458ae771770SStanislav Sedov        </tr>
459ae771770SStanislav Sedov        <tr>
460ae771770SStanislav Sedov          <td></td>
461ae771770SStanislav Sedov          <td>)</td>
462ae771770SStanislav Sedov          <td></td><td></td><td></td>
463ae771770SStanislav Sedov        </tr>
464ae771770SStanislav Sedov      </table>
465ae771770SStanislav Sedov</div>
466ae771770SStanislav Sedov<div class="memdoc">
467ae771770SStanislav Sedov
468ae771770SStanislav Sedov<p>
469ae771770SStanislav SedovRelease all resources associated with `cursor'.<p>
470ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
471ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
472ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
473ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
474ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>cursor</em>&nbsp;</td><td>the cursor to free.</td></tr>
475ae771770SStanislav Sedov  </table>
476ae771770SStanislav Sedov</dl>
477ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
478ae771770SStanislav Sedov
479ae771770SStanislav Sedov</div>
480ae771770SStanislav Sedov</div><p>
481ae771770SStanislav Sedov<a class="anchor" name="gc0774ab1407eaaaa0e5998478de246e2"></a><!-- doxytag: member="keytab.c::krb5_kt_free_entry" ref="gc0774ab1407eaaaa0e5998478de246e2" args="(krb5_context context, krb5_keytab_entry *entry)" -->
482ae771770SStanislav Sedov<div class="memitem">
483ae771770SStanislav Sedov<div class="memproto">
484ae771770SStanislav Sedov      <table class="memname">
485ae771770SStanislav Sedov        <tr>
486ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_free_entry           </td>
487ae771770SStanislav Sedov          <td>(</td>
488ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
489ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
490ae771770SStanislav Sedov        </tr>
491ae771770SStanislav Sedov        <tr>
492ae771770SStanislav Sedov          <td class="paramkey"></td>
493ae771770SStanislav Sedov          <td></td>
494ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
495ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em></td><td>&nbsp;</td>
496ae771770SStanislav Sedov        </tr>
497ae771770SStanislav Sedov        <tr>
498ae771770SStanislav Sedov          <td></td>
499ae771770SStanislav Sedov          <td>)</td>
500ae771770SStanislav Sedov          <td></td><td></td><td></td>
501ae771770SStanislav Sedov        </tr>
502ae771770SStanislav Sedov      </table>
503ae771770SStanislav Sedov</div>
504ae771770SStanislav Sedov<div class="memdoc">
505ae771770SStanislav Sedov
506ae771770SStanislav Sedov<p>
507ae771770SStanislav SedovFree the contents of `entry'.<p>
508ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
509ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
510ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
511ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the entry to free</td></tr>
512ae771770SStanislav Sedov  </table>
513ae771770SStanislav Sedov</dl>
514ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
515ae771770SStanislav Sedov
516ae771770SStanislav Sedov</div>
517ae771770SStanislav Sedov</div><p>
518ae771770SStanislav Sedov<a class="anchor" name="gd7183b9573330db0575118057b3a02a5"></a><!-- doxytag: member="keytab.c::krb5_kt_get_entry" ref="gd7183b9573330db0575118057b3a02a5" args="(krb5_context context, krb5_keytab id, krb5_const_principal principal, krb5_kvno kvno, krb5_enctype enctype, krb5_keytab_entry *entry)" -->
519ae771770SStanislav Sedov<div class="memitem">
520ae771770SStanislav Sedov<div class="memproto">
521ae771770SStanislav Sedov      <table class="memname">
522ae771770SStanislav Sedov        <tr>
523ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_get_entry           </td>
524ae771770SStanislav Sedov          <td>(</td>
525ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
526ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
527ae771770SStanislav Sedov        </tr>
528ae771770SStanislav Sedov        <tr>
529ae771770SStanislav Sedov          <td class="paramkey"></td>
530ae771770SStanislav Sedov          <td></td>
531ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
532ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
533ae771770SStanislav Sedov        </tr>
534ae771770SStanislav Sedov        <tr>
535ae771770SStanislav Sedov          <td class="paramkey"></td>
536ae771770SStanislav Sedov          <td></td>
537ae771770SStanislav Sedov          <td class="paramtype">krb5_const_principal&nbsp;</td>
538ae771770SStanislav Sedov          <td class="paramname"> <em>principal</em>, </td>
539ae771770SStanislav Sedov        </tr>
540ae771770SStanislav Sedov        <tr>
541ae771770SStanislav Sedov          <td class="paramkey"></td>
542ae771770SStanislav Sedov          <td></td>
543ae771770SStanislav Sedov          <td class="paramtype">krb5_kvno&nbsp;</td>
544ae771770SStanislav Sedov          <td class="paramname"> <em>kvno</em>, </td>
545ae771770SStanislav Sedov        </tr>
546ae771770SStanislav Sedov        <tr>
547ae771770SStanislav Sedov          <td class="paramkey"></td>
548ae771770SStanislav Sedov          <td></td>
549ae771770SStanislav Sedov          <td class="paramtype">krb5_enctype&nbsp;</td>
550ae771770SStanislav Sedov          <td class="paramname"> <em>enctype</em>, </td>
551ae771770SStanislav Sedov        </tr>
552ae771770SStanislav Sedov        <tr>
553ae771770SStanislav Sedov          <td class="paramkey"></td>
554ae771770SStanislav Sedov          <td></td>
555ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
556ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em></td><td>&nbsp;</td>
557ae771770SStanislav Sedov        </tr>
558ae771770SStanislav Sedov        <tr>
559ae771770SStanislav Sedov          <td></td>
560ae771770SStanislav Sedov          <td>)</td>
561ae771770SStanislav Sedov          <td></td><td></td><td></td>
562ae771770SStanislav Sedov        </tr>
563ae771770SStanislav Sedov      </table>
564ae771770SStanislav Sedov</div>
565ae771770SStanislav Sedov<div class="memdoc">
566ae771770SStanislav Sedov
567ae771770SStanislav Sedov<p>
568ae771770SStanislav SedovRetrieve the keytab entry for `principal, kvno, enctype' into `entry' from the keytab `id'. Matching is done like <a class="el" href="group__krb5__keytab.html#g688d397ec30b48e5edc5a59567bc8010">krb5_kt_compare()</a>.<p>
569ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
570ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
571ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
572ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
573ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>principal</em>&nbsp;</td><td>principal to match, NULL matches all principals. </td></tr>
574ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>kvno</em>&nbsp;</td><td>key version to match, 0 matches all key version numbers. </td></tr>
575ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>enctype</em>&nbsp;</td><td>encryption type to match, 0 matches all encryption types. </td></tr>
576ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the returned entry, free with <a class="el" href="group__krb5__keytab.html#gc0774ab1407eaaaa0e5998478de246e2">krb5_kt_free_entry()</a>.</td></tr>
577ae771770SStanislav Sedov  </table>
578ae771770SStanislav Sedov</dl>
579ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
580ae771770SStanislav Sedov
581ae771770SStanislav Sedov</div>
582ae771770SStanislav Sedov</div><p>
583ae771770SStanislav Sedov<a class="anchor" name="g40744ad6c5d9eed2b76d26f5e698d1f3"></a><!-- doxytag: member="keytab.c::krb5_kt_get_full_name" ref="g40744ad6c5d9eed2b76d26f5e698d1f3" args="(krb5_context context, krb5_keytab keytab, char **str)" -->
584ae771770SStanislav Sedov<div class="memitem">
585ae771770SStanislav Sedov<div class="memproto">
586ae771770SStanislav Sedov      <table class="memname">
587ae771770SStanislav Sedov        <tr>
588ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_get_full_name           </td>
589ae771770SStanislav Sedov          <td>(</td>
590ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
591ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
592ae771770SStanislav Sedov        </tr>
593ae771770SStanislav Sedov        <tr>
594ae771770SStanislav Sedov          <td class="paramkey"></td>
595ae771770SStanislav Sedov          <td></td>
596ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
597ae771770SStanislav Sedov          <td class="paramname"> <em>keytab</em>, </td>
598ae771770SStanislav Sedov        </tr>
599ae771770SStanislav Sedov        <tr>
600ae771770SStanislav Sedov          <td class="paramkey"></td>
601ae771770SStanislav Sedov          <td></td>
602ae771770SStanislav Sedov          <td class="paramtype">char **&nbsp;</td>
603ae771770SStanislav Sedov          <td class="paramname"> <em>str</em></td><td>&nbsp;</td>
604ae771770SStanislav Sedov        </tr>
605ae771770SStanislav Sedov        <tr>
606ae771770SStanislav Sedov          <td></td>
607ae771770SStanislav Sedov          <td>)</td>
608ae771770SStanislav Sedov          <td></td><td></td><td></td>
609ae771770SStanislav Sedov        </tr>
610ae771770SStanislav Sedov      </table>
611ae771770SStanislav Sedov</div>
612ae771770SStanislav Sedov<div class="memdoc">
613ae771770SStanislav Sedov
614ae771770SStanislav Sedov<p>
615ae771770SStanislav SedovRetrieve the full name of the keytab `keytab' and store the name in `str'.<p>
616ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
617ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
618ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
619ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>keytab</em>&nbsp;</td><td>keytab to get name for. </td></tr>
620ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>the name of the keytab name, usee krb5_xfree() to free the string. On error, *str is set to NULL.</td></tr>
621ae771770SStanislav Sedov  </table>
622ae771770SStanislav Sedov</dl>
623ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
624ae771770SStanislav Sedov
625ae771770SStanislav Sedov</div>
626ae771770SStanislav Sedov</div><p>
627ae771770SStanislav Sedov<a class="anchor" name="ga10348fa20bbae806d652aa4adb44bdd"></a><!-- doxytag: member="keytab.c::krb5_kt_get_name" ref="ga10348fa20bbae806d652aa4adb44bdd" args="(krb5_context context, krb5_keytab keytab, char *name, size_t namesize)" -->
628ae771770SStanislav Sedov<div class="memitem">
629ae771770SStanislav Sedov<div class="memproto">
630ae771770SStanislav Sedov      <table class="memname">
631ae771770SStanislav Sedov        <tr>
632ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_get_name           </td>
633ae771770SStanislav Sedov          <td>(</td>
634ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
635ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
636ae771770SStanislav Sedov        </tr>
637ae771770SStanislav Sedov        <tr>
638ae771770SStanislav Sedov          <td class="paramkey"></td>
639ae771770SStanislav Sedov          <td></td>
640ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
641ae771770SStanislav Sedov          <td class="paramname"> <em>keytab</em>, </td>
642ae771770SStanislav Sedov        </tr>
643ae771770SStanislav Sedov        <tr>
644ae771770SStanislav Sedov          <td class="paramkey"></td>
645ae771770SStanislav Sedov          <td></td>
646ae771770SStanislav Sedov          <td class="paramtype">char *&nbsp;</td>
647ae771770SStanislav Sedov          <td class="paramname"> <em>name</em>, </td>
648ae771770SStanislav Sedov        </tr>
649ae771770SStanislav Sedov        <tr>
650ae771770SStanislav Sedov          <td class="paramkey"></td>
651ae771770SStanislav Sedov          <td></td>
652ae771770SStanislav Sedov          <td class="paramtype">size_t&nbsp;</td>
653ae771770SStanislav Sedov          <td class="paramname"> <em>namesize</em></td><td>&nbsp;</td>
654ae771770SStanislav Sedov        </tr>
655ae771770SStanislav Sedov        <tr>
656ae771770SStanislav Sedov          <td></td>
657ae771770SStanislav Sedov          <td>)</td>
658ae771770SStanislav Sedov          <td></td><td></td><td></td>
659ae771770SStanislav Sedov        </tr>
660ae771770SStanislav Sedov      </table>
661ae771770SStanislav Sedov</div>
662ae771770SStanislav Sedov<div class="memdoc">
663ae771770SStanislav Sedov
664ae771770SStanislav Sedov<p>
665ae771770SStanislav SedovRetrieve the name of the keytab `keytab' into `name', `namesize'<p>
666ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
667ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
668ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
669ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>keytab</em>&nbsp;</td><td>the keytab to get the name for. </td></tr>
670ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>name buffer. </td></tr>
671ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>namesize</em>&nbsp;</td><td>size of name buffer.</td></tr>
672ae771770SStanislav Sedov  </table>
673ae771770SStanislav Sedov</dl>
674ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
675ae771770SStanislav Sedov
676ae771770SStanislav Sedov</div>
677ae771770SStanislav Sedov</div><p>
678ae771770SStanislav Sedov<a class="anchor" name="g632921a4b144a4eb656968d836efd9bb"></a><!-- doxytag: member="keytab.c::krb5_kt_get_type" ref="g632921a4b144a4eb656968d836efd9bb" args="(krb5_context context, krb5_keytab keytab, char *prefix, size_t prefixsize)" -->
679ae771770SStanislav Sedov<div class="memitem">
680ae771770SStanislav Sedov<div class="memproto">
681ae771770SStanislav Sedov      <table class="memname">
682ae771770SStanislav Sedov        <tr>
683ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_get_type           </td>
684ae771770SStanislav Sedov          <td>(</td>
685ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
686ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
687ae771770SStanislav Sedov        </tr>
688ae771770SStanislav Sedov        <tr>
689ae771770SStanislav Sedov          <td class="paramkey"></td>
690ae771770SStanislav Sedov          <td></td>
691ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
692ae771770SStanislav Sedov          <td class="paramname"> <em>keytab</em>, </td>
693ae771770SStanislav Sedov        </tr>
694ae771770SStanislav Sedov        <tr>
695ae771770SStanislav Sedov          <td class="paramkey"></td>
696ae771770SStanislav Sedov          <td></td>
697ae771770SStanislav Sedov          <td class="paramtype">char *&nbsp;</td>
698ae771770SStanislav Sedov          <td class="paramname"> <em>prefix</em>, </td>
699ae771770SStanislav Sedov        </tr>
700ae771770SStanislav Sedov        <tr>
701ae771770SStanislav Sedov          <td class="paramkey"></td>
702ae771770SStanislav Sedov          <td></td>
703ae771770SStanislav Sedov          <td class="paramtype">size_t&nbsp;</td>
704ae771770SStanislav Sedov          <td class="paramname"> <em>prefixsize</em></td><td>&nbsp;</td>
705ae771770SStanislav Sedov        </tr>
706ae771770SStanislav Sedov        <tr>
707ae771770SStanislav Sedov          <td></td>
708ae771770SStanislav Sedov          <td>)</td>
709ae771770SStanislav Sedov          <td></td><td></td><td></td>
710ae771770SStanislav Sedov        </tr>
711ae771770SStanislav Sedov      </table>
712ae771770SStanislav Sedov</div>
713ae771770SStanislav Sedov<div class="memdoc">
714ae771770SStanislav Sedov
715ae771770SStanislav Sedov<p>
716ae771770SStanislav SedovReturn the type of the `keytab' in the string `prefix of length `prefixsize'.<p>
717ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
718ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
719ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
720ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>keytab</em>&nbsp;</td><td>the keytab to get the prefix for </td></tr>
721ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>prefix</em>&nbsp;</td><td>prefix buffer </td></tr>
722ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>prefixsize</em>&nbsp;</td><td>length of prefix buffer</td></tr>
723ae771770SStanislav Sedov  </table>
724ae771770SStanislav Sedov</dl>
725ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
726ae771770SStanislav Sedov
727ae771770SStanislav Sedov</div>
728ae771770SStanislav Sedov</div><p>
729ae771770SStanislav Sedov<a class="anchor" name="gf0947f9089022eaf4c83a463cad10ed3"></a><!-- doxytag: member="keytab.c::krb5_kt_have_content" ref="gf0947f9089022eaf4c83a463cad10ed3" args="(krb5_context context, krb5_keytab id)" -->
730ae771770SStanislav Sedov<div class="memitem">
731ae771770SStanislav Sedov<div class="memproto">
732ae771770SStanislav Sedov      <table class="memname">
733ae771770SStanislav Sedov        <tr>
734ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_kt_have_content           </td>
735ae771770SStanislav Sedov          <td>(</td>
736ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
737ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
738ae771770SStanislav Sedov        </tr>
739ae771770SStanislav Sedov        <tr>
740ae771770SStanislav Sedov          <td class="paramkey"></td>
741ae771770SStanislav Sedov          <td></td>
742ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
743ae771770SStanislav Sedov          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
744ae771770SStanislav Sedov        </tr>
745ae771770SStanislav Sedov        <tr>
746ae771770SStanislav Sedov          <td></td>
747ae771770SStanislav Sedov          <td>)</td>
748ae771770SStanislav Sedov          <td></td><td></td><td></td>
749ae771770SStanislav Sedov        </tr>
750ae771770SStanislav Sedov      </table>
751ae771770SStanislav Sedov</div>
752ae771770SStanislav Sedov<div class="memdoc">
753ae771770SStanislav Sedov
754ae771770SStanislav Sedov<p>
755ae771770SStanislav SedovReturn true if the keytab exists and have entries<p>
756ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
757ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
758ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
759ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab.</td></tr>
760ae771770SStanislav Sedov  </table>
761ae771770SStanislav Sedov</dl>
762ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
763ae771770SStanislav Sedov
764ae771770SStanislav Sedov</div>
765ae771770SStanislav Sedov</div><p>
766ae771770SStanislav Sedov<a class="anchor" name="gc40140c41333a86d3c40426f50b4e1b0"></a><!-- doxytag: member="keytab.c::krb5_kt_next_entry" ref="gc40140c41333a86d3c40426f50b4e1b0" args="(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor)" -->
767ae771770SStanislav Sedov<div class="memitem">
768ae771770SStanislav Sedov<div class="memproto">
769ae771770SStanislav Sedov      <table class="memname">
770ae771770SStanislav Sedov        <tr>
771ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_next_entry           </td>
772ae771770SStanislav Sedov          <td>(</td>
773ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
774ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
775ae771770SStanislav Sedov        </tr>
776ae771770SStanislav Sedov        <tr>
777ae771770SStanislav Sedov          <td class="paramkey"></td>
778ae771770SStanislav Sedov          <td></td>
779ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
780ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
781ae771770SStanislav Sedov        </tr>
782ae771770SStanislav Sedov        <tr>
783ae771770SStanislav Sedov          <td class="paramkey"></td>
784ae771770SStanislav Sedov          <td></td>
785ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
786ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em>, </td>
787ae771770SStanislav Sedov        </tr>
788ae771770SStanislav Sedov        <tr>
789ae771770SStanislav Sedov          <td class="paramkey"></td>
790ae771770SStanislav Sedov          <td></td>
791ae771770SStanislav Sedov          <td class="paramtype">krb5_kt_cursor *&nbsp;</td>
792ae771770SStanislav Sedov          <td class="paramname"> <em>cursor</em></td><td>&nbsp;</td>
793ae771770SStanislav Sedov        </tr>
794ae771770SStanislav Sedov        <tr>
795ae771770SStanislav Sedov          <td></td>
796ae771770SStanislav Sedov          <td>)</td>
797ae771770SStanislav Sedov          <td></td><td></td><td></td>
798ae771770SStanislav Sedov        </tr>
799ae771770SStanislav Sedov      </table>
800ae771770SStanislav Sedov</div>
801ae771770SStanislav Sedov<div class="memdoc">
802ae771770SStanislav Sedov
803ae771770SStanislav Sedov<p>
804ae771770SStanislav SedovGet the next entry from keytab, advance the cursor. On last entry the function will return KRB5_KT_END.<p>
805ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
806ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
807ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
808ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
809ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the returned entry, free with <a class="el" href="group__krb5__keytab.html#gc0774ab1407eaaaa0e5998478de246e2">krb5_kt_free_entry()</a>. </td></tr>
810ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>cursor</em>&nbsp;</td><td>the cursor of the iteration.</td></tr>
811ae771770SStanislav Sedov  </table>
812ae771770SStanislav Sedov</dl>
813ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
814ae771770SStanislav Sedov
815ae771770SStanislav Sedov</div>
816ae771770SStanislav Sedov</div><p>
817ae771770SStanislav Sedov<a class="anchor" name="g6040b238ff8adeb346ca35e5530bdeff"></a><!-- doxytag: member="keytab.c::krb5_kt_read_service_key" ref="g6040b238ff8adeb346ca35e5530bdeff" args="(krb5_context context, krb5_pointer keyprocarg, krb5_principal principal, krb5_kvno vno, krb5_enctype enctype, krb5_keyblock **key)" -->
818ae771770SStanislav Sedov<div class="memitem">
819ae771770SStanislav Sedov<div class="memproto">
820ae771770SStanislav Sedov      <table class="memname">
821ae771770SStanislav Sedov        <tr>
822ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_read_service_key           </td>
823ae771770SStanislav Sedov          <td>(</td>
824ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
825ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
826ae771770SStanislav Sedov        </tr>
827ae771770SStanislav Sedov        <tr>
828ae771770SStanislav Sedov          <td class="paramkey"></td>
829ae771770SStanislav Sedov          <td></td>
830ae771770SStanislav Sedov          <td class="paramtype">krb5_pointer&nbsp;</td>
831ae771770SStanislav Sedov          <td class="paramname"> <em>keyprocarg</em>, </td>
832ae771770SStanislav Sedov        </tr>
833ae771770SStanislav Sedov        <tr>
834ae771770SStanislav Sedov          <td class="paramkey"></td>
835ae771770SStanislav Sedov          <td></td>
836ae771770SStanislav Sedov          <td class="paramtype">krb5_principal&nbsp;</td>
837ae771770SStanislav Sedov          <td class="paramname"> <em>principal</em>, </td>
838ae771770SStanislav Sedov        </tr>
839ae771770SStanislav Sedov        <tr>
840ae771770SStanislav Sedov          <td class="paramkey"></td>
841ae771770SStanislav Sedov          <td></td>
842ae771770SStanislav Sedov          <td class="paramtype">krb5_kvno&nbsp;</td>
843ae771770SStanislav Sedov          <td class="paramname"> <em>vno</em>, </td>
844ae771770SStanislav Sedov        </tr>
845ae771770SStanislav Sedov        <tr>
846ae771770SStanislav Sedov          <td class="paramkey"></td>
847ae771770SStanislav Sedov          <td></td>
848ae771770SStanislav Sedov          <td class="paramtype">krb5_enctype&nbsp;</td>
849ae771770SStanislav Sedov          <td class="paramname"> <em>enctype</em>, </td>
850ae771770SStanislav Sedov        </tr>
851ae771770SStanislav Sedov        <tr>
852ae771770SStanislav Sedov          <td class="paramkey"></td>
853ae771770SStanislav Sedov          <td></td>
854ae771770SStanislav Sedov          <td class="paramtype">krb5_keyblock **&nbsp;</td>
855ae771770SStanislav Sedov          <td class="paramname"> <em>key</em></td><td>&nbsp;</td>
856ae771770SStanislav Sedov        </tr>
857ae771770SStanislav Sedov        <tr>
858ae771770SStanislav Sedov          <td></td>
859ae771770SStanislav Sedov          <td>)</td>
860ae771770SStanislav Sedov          <td></td><td></td><td></td>
861ae771770SStanislav Sedov        </tr>
862ae771770SStanislav Sedov      </table>
863ae771770SStanislav Sedov</div>
864ae771770SStanislav Sedov<div class="memdoc">
865ae771770SStanislav Sedov
866ae771770SStanislav Sedov<p>
867ae771770SStanislav SedovRead the key identified by `(principal, vno, enctype)' from the keytab in `keyprocarg' (the default if == NULL) into `*key'.<p>
868ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
869ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
870ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
871ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>keyprocarg</em>&nbsp;</td><td></td></tr>
872ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>principal</em>&nbsp;</td><td></td></tr>
873ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>vno</em>&nbsp;</td><td></td></tr>
874ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>enctype</em>&nbsp;</td><td></td></tr>
875ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td></td></tr>
876ae771770SStanislav Sedov  </table>
877ae771770SStanislav Sedov</dl>
878ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
879ae771770SStanislav Sedov
880ae771770SStanislav Sedov</div>
881ae771770SStanislav Sedov</div><p>
882ae771770SStanislav Sedov<a class="anchor" name="g0b54b479db89c76e46d6edae8328848e"></a><!-- doxytag: member="keytab.c::krb5_kt_register" ref="g0b54b479db89c76e46d6edae8328848e" args="(krb5_context context, const krb5_kt_ops *ops)" -->
883ae771770SStanislav Sedov<div class="memitem">
884ae771770SStanislav Sedov<div class="memproto">
885ae771770SStanislav Sedov      <table class="memname">
886ae771770SStanislav Sedov        <tr>
887ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_register           </td>
888ae771770SStanislav Sedov          <td>(</td>
889ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
890ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
891ae771770SStanislav Sedov        </tr>
892ae771770SStanislav Sedov        <tr>
893ae771770SStanislav Sedov          <td class="paramkey"></td>
894ae771770SStanislav Sedov          <td></td>
895ae771770SStanislav Sedov          <td class="paramtype">const krb5_kt_ops *&nbsp;</td>
896ae771770SStanislav Sedov          <td class="paramname"> <em>ops</em></td><td>&nbsp;</td>
897ae771770SStanislav Sedov        </tr>
898ae771770SStanislav Sedov        <tr>
899ae771770SStanislav Sedov          <td></td>
900ae771770SStanislav Sedov          <td>)</td>
901ae771770SStanislav Sedov          <td></td><td></td><td></td>
902ae771770SStanislav Sedov        </tr>
903ae771770SStanislav Sedov      </table>
904ae771770SStanislav Sedov</div>
905ae771770SStanislav Sedov<div class="memdoc">
906ae771770SStanislav Sedov
907ae771770SStanislav Sedov<p>
908ae771770SStanislav SedovRegister a new keytab backend.<p>
909ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
910ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
911ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
912ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>ops</em>&nbsp;</td><td>a backend to register.</td></tr>
913ae771770SStanislav Sedov  </table>
914ae771770SStanislav Sedov</dl>
915ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
916ae771770SStanislav Sedov
917ae771770SStanislav Sedov</div>
918ae771770SStanislav Sedov</div><p>
919ae771770SStanislav Sedov<a class="anchor" name="g0f3e7f55fd97a595c961f0ffc49bebac"></a><!-- doxytag: member="keytab.c::krb5_kt_remove_entry" ref="g0f3e7f55fd97a595c961f0ffc49bebac" args="(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)" -->
920ae771770SStanislav Sedov<div class="memitem">
921ae771770SStanislav Sedov<div class="memproto">
922ae771770SStanislav Sedov      <table class="memname">
923ae771770SStanislav Sedov        <tr>
924ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_remove_entry           </td>
925ae771770SStanislav Sedov          <td>(</td>
926ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
927ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
928ae771770SStanislav Sedov        </tr>
929ae771770SStanislav Sedov        <tr>
930ae771770SStanislav Sedov          <td class="paramkey"></td>
931ae771770SStanislav Sedov          <td></td>
932ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
933ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
934ae771770SStanislav Sedov        </tr>
935ae771770SStanislav Sedov        <tr>
936ae771770SStanislav Sedov          <td class="paramkey"></td>
937ae771770SStanislav Sedov          <td></td>
938ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab_entry *&nbsp;</td>
939ae771770SStanislav Sedov          <td class="paramname"> <em>entry</em></td><td>&nbsp;</td>
940ae771770SStanislav Sedov        </tr>
941ae771770SStanislav Sedov        <tr>
942ae771770SStanislav Sedov          <td></td>
943ae771770SStanislav Sedov          <td>)</td>
944ae771770SStanislav Sedov          <td></td><td></td><td></td>
945ae771770SStanislav Sedov        </tr>
946ae771770SStanislav Sedov      </table>
947ae771770SStanislav Sedov</div>
948ae771770SStanislav Sedov<div class="memdoc">
949ae771770SStanislav Sedov
950ae771770SStanislav Sedov<p>
951ae771770SStanislav SedovRemove an entry from the keytab, matching is done using <a class="el" href="group__krb5__keytab.html#g688d397ec30b48e5edc5a59567bc8010">krb5_kt_compare()</a>.<p>
952ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
953ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
954ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
955ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
956ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the entry to remove</td></tr>
957ae771770SStanislav Sedov  </table>
958ae771770SStanislav Sedov</dl>
959ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
960ae771770SStanislav Sedov
961ae771770SStanislav Sedov</div>
962ae771770SStanislav Sedov</div><p>
963ae771770SStanislav Sedov<a class="anchor" name="gc57fead58fb1baa003d6438613731901"></a><!-- doxytag: member="keytab.c::krb5_kt_resolve" ref="gc57fead58fb1baa003d6438613731901" args="(krb5_context context, const char *name, krb5_keytab *id)" -->
964ae771770SStanislav Sedov<div class="memitem">
965ae771770SStanislav Sedov<div class="memproto">
966ae771770SStanislav Sedov      <table class="memname">
967ae771770SStanislav Sedov        <tr>
968ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_resolve           </td>
969ae771770SStanislav Sedov          <td>(</td>
970ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
971ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
972ae771770SStanislav Sedov        </tr>
973ae771770SStanislav Sedov        <tr>
974ae771770SStanislav Sedov          <td class="paramkey"></td>
975ae771770SStanislav Sedov          <td></td>
976ae771770SStanislav Sedov          <td class="paramtype">const char *&nbsp;</td>
977ae771770SStanislav Sedov          <td class="paramname"> <em>name</em>, </td>
978ae771770SStanislav Sedov        </tr>
979ae771770SStanislav Sedov        <tr>
980ae771770SStanislav Sedov          <td class="paramkey"></td>
981ae771770SStanislav Sedov          <td></td>
982ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab *&nbsp;</td>
983ae771770SStanislav Sedov          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
984ae771770SStanislav Sedov        </tr>
985ae771770SStanislav Sedov        <tr>
986ae771770SStanislav Sedov          <td></td>
987ae771770SStanislav Sedov          <td>)</td>
988ae771770SStanislav Sedov          <td></td><td></td><td></td>
989ae771770SStanislav Sedov        </tr>
990ae771770SStanislav Sedov      </table>
991ae771770SStanislav Sedov</div>
992ae771770SStanislav Sedov<div class="memdoc">
993ae771770SStanislav Sedov
994ae771770SStanislav Sedov<p>
995ae771770SStanislav SedovResolve the keytab name (of the form `type:residual') in `name' into a keytab in `id'.<p>
996ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
997ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
998ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
999ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>name to resolve </td></tr>
1000ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>resulting keytab, free with <a class="el" href="group__krb5__keytab.html#gb67f5ae0a7c4b87d193218b842cad590">krb5_kt_close()</a>.</td></tr>
1001ae771770SStanislav Sedov  </table>
1002ae771770SStanislav Sedov</dl>
1003ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
1004ae771770SStanislav Sedov
1005ae771770SStanislav Sedov</div>
1006ae771770SStanislav Sedov</div><p>
1007ae771770SStanislav Sedov<a class="anchor" name="g1efd8ee48d6e3caa31cad475423b8917"></a><!-- doxytag: member="keytab.c::krb5_kt_start_seq_get" ref="g1efd8ee48d6e3caa31cad475423b8917" args="(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)" -->
1008ae771770SStanislav Sedov<div class="memitem">
1009ae771770SStanislav Sedov<div class="memproto">
1010ae771770SStanislav Sedov      <table class="memname">
1011ae771770SStanislav Sedov        <tr>
1012ae771770SStanislav Sedov          <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_kt_start_seq_get           </td>
1013ae771770SStanislav Sedov          <td>(</td>
1014ae771770SStanislav Sedov          <td class="paramtype">krb5_context&nbsp;</td>
1015ae771770SStanislav Sedov          <td class="paramname"> <em>context</em>, </td>
1016ae771770SStanislav Sedov        </tr>
1017ae771770SStanislav Sedov        <tr>
1018ae771770SStanislav Sedov          <td class="paramkey"></td>
1019ae771770SStanislav Sedov          <td></td>
1020ae771770SStanislav Sedov          <td class="paramtype">krb5_keytab&nbsp;</td>
1021ae771770SStanislav Sedov          <td class="paramname"> <em>id</em>, </td>
1022ae771770SStanislav Sedov        </tr>
1023ae771770SStanislav Sedov        <tr>
1024ae771770SStanislav Sedov          <td class="paramkey"></td>
1025ae771770SStanislav Sedov          <td></td>
1026ae771770SStanislav Sedov          <td class="paramtype">krb5_kt_cursor *&nbsp;</td>
1027ae771770SStanislav Sedov          <td class="paramname"> <em>cursor</em></td><td>&nbsp;</td>
1028ae771770SStanislav Sedov        </tr>
1029ae771770SStanislav Sedov        <tr>
1030ae771770SStanislav Sedov          <td></td>
1031ae771770SStanislav Sedov          <td>)</td>
1032ae771770SStanislav Sedov          <td></td><td></td><td></td>
1033ae771770SStanislav Sedov        </tr>
1034ae771770SStanislav Sedov      </table>
1035ae771770SStanislav Sedov</div>
1036ae771770SStanislav Sedov<div class="memdoc">
1037ae771770SStanislav Sedov
1038ae771770SStanislav Sedov<p>
1039ae771770SStanislav SedovSet `cursor' to point at the beginning of `id'.<p>
1040ae771770SStanislav Sedov<dl compact><dt><b>Parameters:</b></dt><dd>
1041ae771770SStanislav Sedov  <table border="0" cellspacing="2" cellpadding="0">
1042ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>a Keberos context. </td></tr>
1043ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a keytab. </td></tr>
1044ae771770SStanislav Sedov    <tr><td valign="top"></td><td valign="top"><em>cursor</em>&nbsp;</td><td>a newly allocated cursor, free with <a class="el" href="group__krb5__keytab.html#g11289efb407d93a1f84d5c64731a4bd1">krb5_kt_end_seq_get()</a>.</td></tr>
1045ae771770SStanislav Sedov  </table>
1046ae771770SStanislav Sedov</dl>
1047ae771770SStanislav Sedov<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return an error code or 0, see krb5_get_error_message(). </dd></dl>
1048ae771770SStanislav Sedov
1049ae771770SStanislav Sedov</div>
1050ae771770SStanislav Sedov</div><p>
1051ae771770SStanislav Sedov</div>
1052ae771770SStanislav Sedov<hr size="1"><address style="text-align: right;"><small>
1053*cf771f22SStanislav SedovGenerated on Wed Jan 11 14:07:49 2012 for HeimdalKerberos5library by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
1054ae771770SStanislav Sedov</body>
1055ae771770SStanislav Sedov</html>
1056