<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>DBusKeyring implementation details</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.15 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>DBusKeyring implementation details<br> <small> [<a class="el" href="group__DBusInternals.html">D-BUS internal implementation details</a>]</small> </h1><a class="el" href="structDBusKeyring.html">DBusKeyring</a> implementation details. <a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Data Structures</h2></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structDBusKey.html">DBusKey</a></td></tr> <tr><td> </td><td><font size=-1><em>A single key from the cookie file.</em> <a href="structDBusKey.html#_details">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structDBusKeyring.html">DBusKeyring</a></td></tr> <tr><td> </td><td><font size=-1><em>Internals of DBusKeyring.</em> <a href="structDBusKeyring.html#_details">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Defines</h2></td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a7">NEW_KEY_TIMEOUT_SECONDS</a> (60*5)</td></tr> <tr><td> </td><td><font size=-1><em>The maximum age of a key before we create a new key to use in challenges.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a8">EXPIRE_KEYS_TIMEOUT_SECONDS</a> (NEW_KEY_TIMEOUT_SECONDS + (60*2))</td></tr> <tr><td> </td><td><font size=-1><em>The time after which we drop a key from the secrets file.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a name="a9" doxytag="DBusKeyringInternals::MAX_TIME_TRAVEL_SECONDS"></a> #define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a9">MAX_TIME_TRAVEL_SECONDS</a> (60*5)</td></tr> <tr><td> </td><td><font size=-1><em>The maximum amount of time a key can be in the future.</em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a name="a10" doxytag="DBusKeyringInternals::MAX_KEYS_IN_FILE"></a> #define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a10">MAX_KEYS_IN_FILE</a> 10</td></tr> <tr><td> </td><td><font size=-1><em>Maximum number of keys in the keyring before we just ignore the rest.</em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a name="a11" doxytag="DBusKeyringInternals::MAX_LOCK_TIMEOUTS"></a> #define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a11">MAX_LOCK_TIMEOUTS</a> 32</td></tr> <tr><td> </td><td><font size=-1><em>Maximum number of timeouts waiting for lock before we decide it's stale.</em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a name="a12" doxytag="DBusKeyringInternals::LOCK_TIMEOUT_MILLISECONDS"></a> #define </td><td valign=bottom><a class="el" href="group__DBusKeyringInternals.html#a12">LOCK_TIMEOUT_MILLISECONDS</a> 250</td></tr> <tr><td> </td><td><font size=-1><em>Length of each timeout while waiting for a lock.</em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="structDBusKeyring.html">DBusKeyring</a> implementation details. <p> <p> The guts of <a class="el" href="structDBusKeyring.html">DBusKeyring</a>. <hr><h2>Define Documentation</h2> <a name="a8" doxytag="dbus-keyring.c::EXPIRE_KEYS_TIMEOUT_SECONDS"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define EXPIRE_KEYS_TIMEOUT_SECONDS (NEW_KEY_TIMEOUT_SECONDS + (60*2)) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> The time after which we drop a key from the secrets file. <p> The EXPIRE_KEYS_TIMEOUT_SECONDS - NEW_KEY_TIMEOUT_SECONDS is the minimum time window a client has to complete authentication. <p> Definition at line <a class="el" href="dbus-keyring_8c-source.html#l00072">72</a> of file <a class="el" href="dbus-keyring_8c-source.html">dbus-keyring.c</a>. </td> </tr> </table> <a name="a7" doxytag="dbus-keyring.c::NEW_KEY_TIMEOUT_SECONDS"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define NEW_KEY_TIMEOUT_SECONDS (60*5) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> The maximum age of a key before we create a new key to use in challenges. <p> This isn't super-reliably enforced, since system clocks can change or be wrong, but we make a best effort to only use keys for a short time. <p> Definition at line <a class="el" href="dbus-keyring_8c-source.html#l00066">66</a> of file <a class="el" href="dbus-keyring_8c-source.html">dbus-keyring.c</a>. </td> </tr> </table> <hr><address align="right"><small>Generated on Wed Jun 9 05:01:28 2004 for D-BUS by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address> </body> </html>