003 File Manager
Current Path:
/usr/src/crypto/heimdal/doc/doxyout/krb5/html
usr
/
src
/
crypto
/
heimdal
/
doc
/
doxyout
/
krb5
/
html
/
📁
..
📄
annotated.html
(1.54 KB)
📄
doxygen.css
(8.88 KB)
📄
doxygen.png
(1.25 KB)
📄
graph_legend.dot
(2.12 KB)
📄
graph_legend.html
(4.63 KB)
📄
graph_legend.png
(4.16 KB)
📄
group__krb5.html
(102.82 KB)
📄
group__krb5__address.html
(46.37 KB)
📄
group__krb5__auth.html
(15.91 KB)
📄
group__krb5__ccache.html
(99.03 KB)
📄
group__krb5__credential.html
(39.88 KB)
📄
group__krb5__crypto.html
(58.04 KB)
📄
group__krb5__deprecated.html
(57.19 KB)
📄
group__krb5__digest.html
(3.83 KB)
📄
group__krb5__error.html
(10.6 KB)
📄
group__krb5__keytab.html
(47.87 KB)
📄
group__krb5__pac.html
(7.21 KB)
📄
group__krb5__principal.html
(53.63 KB)
📄
group__krb5__storage.html
(92.08 KB)
📄
group__krb5__support.html
(64.56 KB)
📄
group__krb5__ticket.html
(3.14 KB)
📄
group__krb5__v4compat.html
(6.67 KB)
📄
index.html
(2.26 KB)
📄
krb5_ccache_intro.html
(4.31 KB)
📄
krb5_fileformats.html
(10.35 KB)
📄
krb5_init_creds_intro.html
(1.51 KB)
📄
krb5_introduction.html
(18.12 KB)
📄
krb5_keytab_intro.html
(6.05 KB)
📄
krb5_principal_intro.html
(1.72 KB)
📄
modules.html
(2.7 KB)
📄
pages.html
(1.75 KB)
📄
structkrb5__crypto__iov.html
(1.76 KB)
📄
tab_b.gif
(35 B)
📄
tab_l.gif
(706 B)
📄
tab_r.gif
(2.52 KB)
📄
tabs.css
(1.72 KB)
Editing: krb5_ccache_intro.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>HeimdalKerberos5library: The credential cache functions</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <p> <a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> </p> <!-- end of header marker --> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> </ul> </div> </div> <div class="contents"> <h1><a class="anchor" name="krb5_ccache_intro">The credential cache functions </a></h1><h2><a class="anchor" name="section_krb5_ccache"> Kerberos credential caches</a></h2> krb5_ccache structure holds a Kerberos credential cache.<p> Heimdal support the follow types of credential caches:<p> <ul> <li>SCC Store the credential in a database</li><li>FILE Store the credential in memory</li><li>MEMORY Store the credential in memory</li><li>API A credential cache server based solution for Mac OS X</li><li>KCM A credential cache server based solution for all platforms</li></ul> <h3><a class="anchor" name="Example"> Example</a></h3> This is a minimalistic version of klist: <div class="fragment"><pre class="fragment"><span class="preprocessor">#include <krb5.h></span> <span class="keywordtype">int</span> main (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv) { krb5_context context; krb5_cc_cursor cursor; krb5_error_code ret; krb5_ccache id; krb5_creds creds; <span class="keywordflow">if</span> (<a class="code" href="group__krb5.html#gbd94206e186c58a093975424a4a567a8">krb5_init_context</a> (&context) != 0) errx(1, <span class="stringliteral">"krb5_context"</span>); ret = <a class="code" href="group__krb5__ccache.html#gd7d54822ef022f3e27f7f0f457d9c751">krb5_cc_default</a> (context, &<span class="keywordtype">id</span>); <span class="keywordflow">if</span> (ret) krb5_err(context, 1, ret, <span class="stringliteral">"krb5_cc_default"</span>); ret = <a class="code" href="group__krb5__ccache.html#gcbf766cea6b49dd64b76628c7708b979">krb5_cc_start_seq_get</a>(context, <span class="keywordtype">id</span>, &cursor); <span class="keywordflow">if</span> (ret) krb5_err(context, 1, ret, <span class="stringliteral">"krb5_cc_start_seq_get"</span>); <span class="keywordflow">while</span>((ret = <a class="code" href="group__krb5__ccache.html#gd9cd0ebcc7bdf3ca2b0ed166ea2f8df6">krb5_cc_next_cred</a>(context, <span class="keywordtype">id</span>, &cursor, &creds)) == 0){ <span class="keywordtype">char</span> *principal; <a class="code" href="group__krb5__principal.html#gac881051ed59fe0dcd08cee62280b332">krb5_unparse_name</a>(context, creds.server, &principal); printf(<span class="stringliteral">"principal: %s\\n"</span>, principal); free(principal); <a class="code" href="group__krb5.html#gd89c4c7b633646c39e4a34a7230c94e1">krb5_free_cred_contents</a> (context, &creds); } ret = <a class="code" href="group__krb5__ccache.html#g024ce036ebf277f918354d4681bd0550">krb5_cc_end_seq_get</a>(context, <span class="keywordtype">id</span>, &cursor); <span class="keywordflow">if</span> (ret) krb5_err(context, 1, ret, <span class="stringliteral">"krb5_cc_end_seq_get"</span>); <a class="code" href="group__krb5__ccache.html#gebc0dd2a77529c05fb49e27235da7017">krb5_cc_close</a>(context, <span class="keywordtype">id</span>); <a class="code" href="group__krb5.html#ge51d83f5d5f589883f1cd10887892777">krb5_free_context</a>(context); <span class="keywordflow">return</span> 0; } </pre></div> </div> <hr size="1"><address style="text-align: right;"><small> Generated on Wed Jan 11 14:07:47 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> </body> </html>
Upload File
Create Folder