group__krb5__pac.html revision 234027
1226031Sstas<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2226031Sstas<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 3226031Sstas<title>HeimdalKerberos5library: Heimdal Kerberos 5 PAC handling functions</title> 4226031Sstas<link href="doxygen.css" rel="stylesheet" type="text/css"> 5226031Sstas<link href="tabs.css" rel="stylesheet" type="text/css"> 6226031Sstas</head><body> 7226031Sstas<p> 8226031Sstas<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> 9226031Sstas</p> 10226031Sstas<!-- end of header marker --> 11226031Sstas<!-- Generated by Doxygen 1.5.6 --> 12226031Sstas<div class="navigation" id="top"> 13226031Sstas <div class="tabs"> 14226031Sstas <ul> 15226031Sstas <li><a href="index.html"><span>Main Page</span></a></li> 16226031Sstas <li><a href="pages.html"><span>Related Pages</span></a></li> 17226031Sstas <li><a href="modules.html"><span>Modules</span></a></li> 18226031Sstas <li><a href="annotated.html"><span>Data Structures</span></a></li> 19226031Sstas </ul> 20226031Sstas </div> 21226031Sstas</div> 22226031Sstas<div class="contents"> 23226031Sstas<h1>Heimdal Kerberos 5 PAC handling functions</h1><table border="0" cellpadding="0" cellspacing="0"> 24226031Sstas<tr><td></td></tr> 25226031Sstas<tr><td colspan="2"><br><h2>Functions</h2></td></tr> 26226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 27226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__pac.html#gd25693feb5786c4c964bfcff87961bf7">krb5_pac_get_buffer</a> (krb5_context context, krb5_pac p, uint32_t type, krb5_data *data)</td></tr> 28226031Sstas 29226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 30226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__pac.html#g07a7fffbb07e4434a0e3526653c629a0">krb5_pac_verify</a> (krb5_context context, const krb5_pac pac, time_t authtime, krb5_const_principal principal, const krb5_keyblock *server, const krb5_keyblock *privsvr)</td></tr> 31226031Sstas 32226031Sstas</table> 33226031Sstas<hr><a name="_details"></a><h2>Detailed Description</h2> 34226031Sstas<hr><h2>Function Documentation</h2> 35226031Sstas<a class="anchor" name="gd25693feb5786c4c964bfcff87961bf7"></a><!-- doxytag: member="pac.c::krb5_pac_get_buffer" ref="gd25693feb5786c4c964bfcff87961bf7" args="(krb5_context context, krb5_pac p, uint32_t type, krb5_data *data)" --> 36226031Sstas<div class="memitem"> 37226031Sstas<div class="memproto"> 38226031Sstas <table class="memname"> 39226031Sstas <tr> 40226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_get_buffer </td> 41226031Sstas <td>(</td> 42226031Sstas <td class="paramtype">krb5_context </td> 43226031Sstas <td class="paramname"> <em>context</em>, </td> 44226031Sstas </tr> 45226031Sstas <tr> 46226031Sstas <td class="paramkey"></td> 47226031Sstas <td></td> 48226031Sstas <td class="paramtype">krb5_pac </td> 49226031Sstas <td class="paramname"> <em>p</em>, </td> 50226031Sstas </tr> 51226031Sstas <tr> 52226031Sstas <td class="paramkey"></td> 53226031Sstas <td></td> 54226031Sstas <td class="paramtype">uint32_t </td> 55226031Sstas <td class="paramname"> <em>type</em>, </td> 56226031Sstas </tr> 57226031Sstas <tr> 58226031Sstas <td class="paramkey"></td> 59226031Sstas <td></td> 60226031Sstas <td class="paramtype">krb5_data * </td> 61226031Sstas <td class="paramname"> <em>data</em></td><td> </td> 62226031Sstas </tr> 63226031Sstas <tr> 64226031Sstas <td></td> 65226031Sstas <td>)</td> 66226031Sstas <td></td><td></td><td></td> 67226031Sstas </tr> 68226031Sstas </table> 69226031Sstas</div> 70226031Sstas<div class="memdoc"> 71226031Sstas 72226031Sstas<p> 73226031SstasGet the PAC buffer of specific type from the pac.<p> 74226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 75226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 76226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 77226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the pac structure returned by krb5_pac_parse(). </td></tr> 78226031Sstas <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>type of buffer to get </td></tr> 79226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>return data, free with <a class="el" href="group__krb5.html#gb4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free()</a>.</td></tr> 80226031Sstas </table> 81226031Sstas</dl> 82226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 83226031Sstas 84226031Sstas</div> 85226031Sstas</div><p> 86226031Sstas<a class="anchor" name="g07a7fffbb07e4434a0e3526653c629a0"></a><!-- doxytag: member="pac.c::krb5_pac_verify" ref="g07a7fffbb07e4434a0e3526653c629a0" args="(krb5_context context, const krb5_pac pac, time_t authtime, krb5_const_principal principal, const krb5_keyblock *server, const krb5_keyblock *privsvr)" --> 87226031Sstas<div class="memitem"> 88226031Sstas<div class="memproto"> 89226031Sstas <table class="memname"> 90226031Sstas <tr> 91226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_verify </td> 92226031Sstas <td>(</td> 93226031Sstas <td class="paramtype">krb5_context </td> 94226031Sstas <td class="paramname"> <em>context</em>, </td> 95226031Sstas </tr> 96226031Sstas <tr> 97226031Sstas <td class="paramkey"></td> 98226031Sstas <td></td> 99226031Sstas <td class="paramtype">const krb5_pac </td> 100226031Sstas <td class="paramname"> <em>pac</em>, </td> 101226031Sstas </tr> 102226031Sstas <tr> 103226031Sstas <td class="paramkey"></td> 104226031Sstas <td></td> 105226031Sstas <td class="paramtype">time_t </td> 106226031Sstas <td class="paramname"> <em>authtime</em>, </td> 107226031Sstas </tr> 108226031Sstas <tr> 109226031Sstas <td class="paramkey"></td> 110226031Sstas <td></td> 111226031Sstas <td class="paramtype">krb5_const_principal </td> 112226031Sstas <td class="paramname"> <em>principal</em>, </td> 113226031Sstas </tr> 114226031Sstas <tr> 115226031Sstas <td class="paramkey"></td> 116226031Sstas <td></td> 117226031Sstas <td class="paramtype">const krb5_keyblock * </td> 118226031Sstas <td class="paramname"> <em>server</em>, </td> 119226031Sstas </tr> 120226031Sstas <tr> 121226031Sstas <td class="paramkey"></td> 122226031Sstas <td></td> 123226031Sstas <td class="paramtype">const krb5_keyblock * </td> 124226031Sstas <td class="paramname"> <em>privsvr</em></td><td> </td> 125226031Sstas </tr> 126226031Sstas <tr> 127226031Sstas <td></td> 128226031Sstas <td>)</td> 129226031Sstas <td></td><td></td><td></td> 130226031Sstas </tr> 131226031Sstas </table> 132226031Sstas</div> 133226031Sstas<div class="memdoc"> 134226031Sstas 135226031Sstas<p> 136226031SstasVerify the PAC.<p> 137226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 138226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 139226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 140226031Sstas <tr><td valign="top"></td><td valign="top"><em>pac</em> </td><td>the pac structure returned by krb5_pac_parse(). </td></tr> 141226031Sstas <tr><td valign="top"></td><td valign="top"><em>authtime</em> </td><td>The time of the ticket the PAC belongs to. </td></tr> 142226031Sstas <tr><td valign="top"></td><td valign="top"><em>principal</em> </td><td>the principal to verify. </td></tr> 143226031Sstas <tr><td valign="top"></td><td valign="top"><em>server</em> </td><td>The service key, most always be given. </td></tr> 144226031Sstas <tr><td valign="top"></td><td valign="top"><em>privsvr</em> </td><td>The KDC key, may be given.</td></tr> 145226031Sstas </table> 146226031Sstas</dl> 147226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns 0 to indicate success. Otherwise an kerberos et error code is returned, see krb5_get_error_message(). </dd></dl> 148226031Sstas 149226031Sstas</div> 150226031Sstas</div><p> 151226031Sstas</div> 152226031Sstas<hr size="1"><address style="text-align: right;"><small> 153234027SstasGenerated on Wed Jan 11 14:07:49 2012 for HeimdalKerberos5library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address> 154226031Sstas</body> 155226031Sstas</html> 156