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 4 compatiblity 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 4 compatiblity 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__v4compat.html#g0b661217785509322350a73e516ebb3e">krb524_convert_creds_kdc</a> (krb5_context context, krb5_creds *in_cred, struct credentials *v4creds) KRB5_DEPRECATED_FUNCTION("Use X instead")</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__v4compat.html#g9669ba06773974372902df45a8284cf0">krb524_convert_creds_kdc_ccache</a> (krb5_context context, krb5_ccache ccache, krb5_creds *in_cred, struct credentials *v4creds) KRB5_DEPRECATED_FUNCTION("Use X instead")</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="g0b661217785509322350a73e516ebb3e"></a><!-- doxytag: member="convert_creds.c::krb524_convert_creds_kdc" ref="g0b661217785509322350a73e516ebb3e" args="(krb5_context context, krb5_creds *in_cred, struct credentials *v4creds) KRB5_DEPRECATED_FUNCTION("Use X instead")" --> 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 krb524_convert_creds_kdc </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_creds * </td> 49226031Sstas <td class="paramname"> <em>in_cred</em>, </td> 50226031Sstas </tr> 51226031Sstas <tr> 52226031Sstas <td class="paramkey"></td> 53226031Sstas <td></td> 54226031Sstas <td class="paramtype">struct credentials * </td> 55226031Sstas <td class="paramname"> <em>v4creds</em></td><td> </td> 56226031Sstas </tr> 57226031Sstas <tr> 58226031Sstas <td></td> 59226031Sstas <td>)</td> 60226031Sstas <td></td><td></td><td></td> 61226031Sstas </tr> 62226031Sstas </table> 63226031Sstas</div> 64226031Sstas<div class="memdoc"> 65226031Sstas 66226031Sstas<p> 67226031SstasConvert the v5 credentials in in_cred to v4-dito in v4creds. This is done by sending them to the 524 function in the KDC. If `in_cred' doesn't contain a DES session key, then a new one is gotten from the KDC and stored in the cred cache `ccache'.<p> 68226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 69226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 70226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 71226031Sstas <tr><td valign="top"></td><td valign="top"><em>in_cred</em> </td><td>the credential to convert </td></tr> 72226031Sstas <tr><td valign="top"></td><td valign="top"><em>v4creds</em> </td><td>the converted credential</td></tr> 73226031Sstas </table> 74226031Sstas</dl> 75226031Sstas<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> 76226031Sstas 77226031Sstas</div> 78226031Sstas</div><p> 79226031Sstas<a class="anchor" name="g9669ba06773974372902df45a8284cf0"></a><!-- doxytag: member="convert_creds.c::krb524_convert_creds_kdc_ccache" ref="g9669ba06773974372902df45a8284cf0" args="(krb5_context context, krb5_ccache ccache, krb5_creds *in_cred, struct credentials *v4creds) KRB5_DEPRECATED_FUNCTION("Use X instead")" --> 80226031Sstas<div class="memitem"> 81226031Sstas<div class="memproto"> 82226031Sstas <table class="memname"> 83226031Sstas <tr> 84226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb524_convert_creds_kdc_ccache </td> 85226031Sstas <td>(</td> 86226031Sstas <td class="paramtype">krb5_context </td> 87226031Sstas <td class="paramname"> <em>context</em>, </td> 88226031Sstas </tr> 89226031Sstas <tr> 90226031Sstas <td class="paramkey"></td> 91226031Sstas <td></td> 92226031Sstas <td class="paramtype">krb5_ccache </td> 93226031Sstas <td class="paramname"> <em>ccache</em>, </td> 94226031Sstas </tr> 95226031Sstas <tr> 96226031Sstas <td class="paramkey"></td> 97226031Sstas <td></td> 98226031Sstas <td class="paramtype">krb5_creds * </td> 99226031Sstas <td class="paramname"> <em>in_cred</em>, </td> 100226031Sstas </tr> 101226031Sstas <tr> 102226031Sstas <td class="paramkey"></td> 103226031Sstas <td></td> 104226031Sstas <td class="paramtype">struct credentials * </td> 105226031Sstas <td class="paramname"> <em>v4creds</em></td><td> </td> 106226031Sstas </tr> 107226031Sstas <tr> 108226031Sstas <td></td> 109226031Sstas <td>)</td> 110226031Sstas <td></td><td></td><td></td> 111226031Sstas </tr> 112226031Sstas </table> 113226031Sstas</div> 114226031Sstas<div class="memdoc"> 115226031Sstas 116226031Sstas<p> 117226031SstasConvert the v5 credentials in in_cred to v4-dito in v4creds, check the credential cache ccache before checking with the KDC.<p> 118226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 119226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 120226031Sstas <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>Kerberos 5 context. </td></tr> 121226031Sstas <tr><td valign="top"></td><td valign="top"><em>ccache</em> </td><td>credential cache used to check for des-ticket. </td></tr> 122226031Sstas <tr><td valign="top"></td><td valign="top"><em>in_cred</em> </td><td>the credential to convert </td></tr> 123226031Sstas <tr><td valign="top"></td><td valign="top"><em>v4creds</em> </td><td>the converted credential</td></tr> 124226031Sstas </table> 125226031Sstas</dl> 126226031Sstas<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> 127226031Sstas 128226031Sstas</div> 129226031Sstas</div><p> 130226031Sstas</div> 131226031Sstas<hr size="1"><address style="text-align: right;"><small> 132234027SstasGenerated 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> 133226031Sstas</body> 134226031Sstas</html> 135