group__krb5__storage.html revision 226031
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 storage 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 storage 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 void <br> 27226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g99af12d663a652732293b99ecff81989">krb5_storage_set_flags</a> (krb5_storage *sp, krb5_flags flags)</td></tr> 28226031Sstas 29226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 30226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g314501a5959ccde26989429691fded9d">krb5_storage_clear_flags</a> (krb5_storage *sp, krb5_flags flags)</td></tr> 31226031Sstas 32226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_boolean <br> 33226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g430a3498c04aff00534c6e08330b312c">krb5_storage_is_flags</a> (krb5_storage *sp, krb5_flags flags)</td></tr> 34226031Sstas 35226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 36226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder</a> (krb5_storage *sp, krb5_flags byteorder)</td></tr> 37226031Sstas 38226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_flags <br> 39226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g9f521cbe41ed5ba522d3a2006c61201a">krb5_storage_get_byteorder</a> (krb5_storage *sp)</td></tr> 40226031Sstas 41226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 42226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gdaf85983fe8563a63623cd472ff6e2b0">krb5_storage_set_max_alloc</a> (krb5_storage *sp, size_t size)</td></tr> 43226031Sstas 44226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION off_t <br> 45226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g4ecf2806cc57252af155a66fbb705773">krb5_storage_seek</a> (krb5_storage *sp, off_t offset, int whence)</td></tr> 46226031Sstas 47226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gac8da1cf94bd8f60c32ae41bd30abae6">krb5_storage_truncate</a> (krb5_storage *sp, off_t offset)</td></tr> 48226031Sstas 49226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_ssize_t <br> 50226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g4b916691b096448f5b492fcd67148106">krb5_storage_read</a> (krb5_storage *sp, void *buf, size_t len)</td></tr> 51226031Sstas 52226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_ssize_t <br> 53226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gbcc9e0d450d9a02773f4a53bf14fefac">krb5_storage_write</a> (krb5_storage *sp, const void *buf, size_t len)</td></tr> 54226031Sstas 55226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION void <br> 56226031SstasKRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gbc10ced03dcf096b2f09b08568087900">krb5_storage_set_eof_code</a> (krb5_storage *sp, int code)</td></tr> 57226031Sstas 58226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION int KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g8f9e3f1442a4f14ac802bdb9db5f4890">krb5_storage_get_eof_code</a> (krb5_storage *sp)</td></tr> 59226031Sstas 60226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 61226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g110924b1d3a19859eafcfb58127adbb9">krb5_storage_free</a> (krb5_storage *sp)</td></tr> 62226031Sstas 63226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 64226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g7722a5408e5be17d0c258cc2e57e4f41">krb5_storage_to_data</a> (krb5_storage *sp, krb5_data *data)</td></tr> 65226031Sstas 66226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 67226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gf20f743f1d41879479c4a9d7c0f05339">krb5_store_int32</a> (krb5_storage *sp, int32_t value)</td></tr> 68226031Sstas 69226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 70226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gc844df1aadfa6d0b38ffd93413aa1fd8">krb5_store_uint32</a> (krb5_storage *sp, uint32_t value)</td></tr> 71226031Sstas 72226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 73226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g34771e1bed3a205479b62058b46bf118">krb5_ret_int32</a> (krb5_storage *sp, int32_t *value)</td></tr> 74226031Sstas 75226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 76226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gbfdfdb6469374de5537cb484f84b11cc">krb5_ret_uint32</a> (krb5_storage *sp, uint32_t *value)</td></tr> 77226031Sstas 78226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 79226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g41fd71dc201db2872e59016a1652bf6c">krb5_store_int16</a> (krb5_storage *sp, int16_t value)</td></tr> 80226031Sstas 81226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 82226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g80accfb51fadeb1b19584634701a81f7">krb5_store_uint16</a> (krb5_storage *sp, uint16_t value)</td></tr> 83226031Sstas 84226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 85226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g22a752d61f15a4dfe2f6250b6318e9ad">krb5_ret_int16</a> (krb5_storage *sp, int16_t *value)</td></tr> 86226031Sstas 87226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 88226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g70b3c617f00a9705bc2c5ab841a28aab">krb5_ret_uint16</a> (krb5_storage *sp, uint16_t *value)</td></tr> 89226031Sstas 90226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 91226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g39925711ba540216111a8b84f4a1650a">krb5_store_int8</a> (krb5_storage *sp, int8_t value)</td></tr> 92226031Sstas 93226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 94226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gb9856e6211e292b4c9d4c96941c6948e">krb5_store_uint8</a> (krb5_storage *sp, uint8_t value)</td></tr> 95226031Sstas 96226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 97226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gbb124c12e5cee024f44cc2b7c14d39c2">krb5_ret_int8</a> (krb5_storage *sp, int8_t *value)</td></tr> 98226031Sstas 99226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 100226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g9a90ecc945cf95ea0cda1c6199a735b5">krb5_ret_uint8</a> (krb5_storage *sp, uint8_t *value)</td></tr> 101226031Sstas 102226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 103226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g49be426cc2c3e5b10d87cb7643069f04">krb5_store_data</a> (krb5_storage *sp, krb5_data data)</td></tr> 104226031Sstas 105226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 106226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g8c7a2d85381d67f05b5ac7f11f07317c">krb5_ret_data</a> (krb5_storage *sp, krb5_data *data)</td></tr> 107226031Sstas 108226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 109226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g7d0904deeaf23dd845966b954e4b5355">krb5_store_string</a> (krb5_storage *sp, const char *s)</td></tr> 110226031Sstas 111226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 112226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g832d820ec4510a06ee600d5658f7bb44">krb5_ret_string</a> (krb5_storage *sp, char **string)</td></tr> 113226031Sstas 114226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 115226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g60c3e526288efc7b8a751f43ac254aad">krb5_store_stringz</a> (krb5_storage *sp, const char *s)</td></tr> 116226031Sstas 117226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 118226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g49d6e513666d88682d83fe8a68cdff65">krb5_ret_stringz</a> (krb5_storage *sp, char **string)</td></tr> 119226031Sstas 120226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 121226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g54ca232c7ccaf71e2a26e42196dd9780">krb5_store_principal</a> (krb5_storage *sp, krb5_const_principal p)</td></tr> 122226031Sstas 123226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 124226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g7dc492d545194b464fd91c03f9685127">krb5_ret_principal</a> (krb5_storage *sp, krb5_principal *princ)</td></tr> 125226031Sstas 126226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 127226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g54b3e661a9b7b267ba5df17b2e9a59f9">krb5_store_keyblock</a> (krb5_storage *sp, krb5_keyblock p)</td></tr> 128226031Sstas 129226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 130226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#ga187d43f213353f98b8bf7dc3ced58d5">krb5_ret_keyblock</a> (krb5_storage *sp, krb5_keyblock *p)</td></tr> 131226031Sstas 132226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 133226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g3a0bdbf713eea83651b6f9845ea24900">krb5_store_times</a> (krb5_storage *sp, krb5_times times)</td></tr> 134226031Sstas 135226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 136226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gc2821394420e954939f9eab8cb6492f5">krb5_ret_times</a> (krb5_storage *sp, krb5_times *times)</td></tr> 137226031Sstas 138226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 139226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g36c55f5c0c7b555a189623a49bc478cf">krb5_store_address</a> (krb5_storage *sp, krb5_address p)</td></tr> 140226031Sstas 141226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 142226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g6e0be2257ada5b7a37601bde612c3d0c">krb5_ret_address</a> (krb5_storage *sp, krb5_address *adr)</td></tr> 143226031Sstas 144226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 145226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#gd3a1994e44a47e8106334820db9e4946">krb5_store_addrs</a> (krb5_storage *sp, krb5_addresses p)</td></tr> 146226031Sstas 147226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 148226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g4aeeeaba2f5f67031e29704132ecd9ff">krb5_ret_addrs</a> (krb5_storage *sp, krb5_addresses *adr)</td></tr> 149226031Sstas 150226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 151226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g51b5290d8fd6a75c0142815899e209b2">krb5_store_authdata</a> (krb5_storage *sp, krb5_authdata auth)</td></tr> 152226031Sstas 153226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 154226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g49b219ccbc36aed9f3979b4f5374879f">krb5_ret_authdata</a> (krb5_storage *sp, krb5_authdata *auth)</td></tr> 155226031Sstas 156226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 157226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g78a861ff5fb0090d6c05046ef2cff117">krb5_store_creds</a> (krb5_storage *sp, krb5_creds *creds)</td></tr> 158226031Sstas 159226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 160226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g2dc654b283ff77bc4f9071f4a230948b">krb5_ret_creds</a> (krb5_storage *sp, krb5_creds *creds)</td></tr> 161226031Sstas 162226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 163226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g4a3550d1bb7b7641a8c5904e2dcf1a16">krb5_store_creds_tag</a> (krb5_storage *sp, krb5_creds *creds)</td></tr> 164226031Sstas 165226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION <br> 166226031Sstaskrb5_error_code KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#ge7b1a317660a64e555622499bb7624c6">krb5_ret_creds_tag</a> (krb5_storage *sp, krb5_creds *creds)</td></tr> 167226031Sstas 168226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_storage <br> 169226031Sstas*KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g6ba3655c175405064c1ec80e044667cb">krb5_storage_emem</a> (void)</td></tr> 170226031Sstas 171226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_storage <br> 172226031Sstas*KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g60c7ea40fa36375dfd6b4c1213834668">krb5_storage_from_fd</a> (krb5_socket_t fd_in)</td></tr> 173226031Sstas 174226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_storage <br> 175226031Sstas*KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g481850b82dfa486ffaf15be7109f9d07">krb5_storage_from_mem</a> (void *buf, size_t len)</td></tr> 176226031Sstas 177226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_storage <br> 178226031Sstas*KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g022a581989d5cffca3ac53dd79d865af">krb5_storage_from_data</a> (krb5_data *data)</td></tr> 179226031Sstas 180226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">KRB5_LIB_FUNCTION krb5_storage <br> 181226031Sstas*KRB5_LIB_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="group__krb5__storage.html#g53fa57f40353b6dc6a322f597ddbe628">krb5_storage_from_readonly_mem</a> (const void *buf, size_t len)</td></tr> 182226031Sstas 183226031Sstas</table> 184226031Sstas<hr><a name="_details"></a><h2>Detailed Description</h2> 185226031Sstas<hr><h2>Function Documentation</h2> 186226031Sstas<a class="anchor" name="g6e0be2257ada5b7a37601bde612c3d0c"></a><!-- doxytag: member="store.c::krb5_ret_address" ref="g6e0be2257ada5b7a37601bde612c3d0c" args="(krb5_storage *sp, krb5_address *adr)" --> 187226031Sstas<div class="memitem"> 188226031Sstas<div class="memproto"> 189226031Sstas <table class="memname"> 190226031Sstas <tr> 191226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_address </td> 192226031Sstas <td>(</td> 193226031Sstas <td class="paramtype">krb5_storage * </td> 194226031Sstas <td class="paramname"> <em>sp</em>, </td> 195226031Sstas </tr> 196226031Sstas <tr> 197226031Sstas <td class="paramkey"></td> 198226031Sstas <td></td> 199226031Sstas <td class="paramtype">krb5_address * </td> 200226031Sstas <td class="paramname"> <em>adr</em></td><td> </td> 201226031Sstas </tr> 202226031Sstas <tr> 203226031Sstas <td></td> 204226031Sstas <td>)</td> 205226031Sstas <td></td><td></td><td></td> 206226031Sstas </tr> 207226031Sstas </table> 208226031Sstas</div> 209226031Sstas<div class="memdoc"> 210226031Sstas 211226031Sstas<p> 212226031SstasRead a address block from the storage.<p> 213226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 214226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 215226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 216226031Sstas <tr><td valign="top"></td><td valign="top"><em>adr</em> </td><td>the address block read from storage</td></tr> 217226031Sstas </table> 218226031Sstas</dl> 219226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 220226031Sstas 221226031Sstas</div> 222226031Sstas</div><p> 223226031Sstas<a class="anchor" name="g4aeeeaba2f5f67031e29704132ecd9ff"></a><!-- doxytag: member="store.c::krb5_ret_addrs" ref="g4aeeeaba2f5f67031e29704132ecd9ff" args="(krb5_storage *sp, krb5_addresses *adr)" --> 224226031Sstas<div class="memitem"> 225226031Sstas<div class="memproto"> 226226031Sstas <table class="memname"> 227226031Sstas <tr> 228226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_addrs </td> 229226031Sstas <td>(</td> 230226031Sstas <td class="paramtype">krb5_storage * </td> 231226031Sstas <td class="paramname"> <em>sp</em>, </td> 232226031Sstas </tr> 233226031Sstas <tr> 234226031Sstas <td class="paramkey"></td> 235226031Sstas <td></td> 236226031Sstas <td class="paramtype">krb5_addresses * </td> 237226031Sstas <td class="paramname"> <em>adr</em></td><td> </td> 238226031Sstas </tr> 239226031Sstas <tr> 240226031Sstas <td></td> 241226031Sstas <td>)</td> 242226031Sstas <td></td><td></td><td></td> 243226031Sstas </tr> 244226031Sstas </table> 245226031Sstas</div> 246226031Sstas<div class="memdoc"> 247226031Sstas 248226031Sstas<p> 249226031SstasRead a addresses block from the storage.<p> 250226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 251226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 252226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 253226031Sstas <tr><td valign="top"></td><td valign="top"><em>adr</em> </td><td>the addresses block read from storage</td></tr> 254226031Sstas </table> 255226031Sstas</dl> 256226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 257226031Sstas 258226031Sstas</div> 259226031Sstas</div><p> 260226031Sstas<a class="anchor" name="g49b219ccbc36aed9f3979b4f5374879f"></a><!-- doxytag: member="store.c::krb5_ret_authdata" ref="g49b219ccbc36aed9f3979b4f5374879f" args="(krb5_storage *sp, krb5_authdata *auth)" --> 261226031Sstas<div class="memitem"> 262226031Sstas<div class="memproto"> 263226031Sstas <table class="memname"> 264226031Sstas <tr> 265226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_authdata </td> 266226031Sstas <td>(</td> 267226031Sstas <td class="paramtype">krb5_storage * </td> 268226031Sstas <td class="paramname"> <em>sp</em>, </td> 269226031Sstas </tr> 270226031Sstas <tr> 271226031Sstas <td class="paramkey"></td> 272226031Sstas <td></td> 273226031Sstas <td class="paramtype">krb5_authdata * </td> 274226031Sstas <td class="paramname"> <em>auth</em></td><td> </td> 275226031Sstas </tr> 276226031Sstas <tr> 277226031Sstas <td></td> 278226031Sstas <td>)</td> 279226031Sstas <td></td><td></td><td></td> 280226031Sstas </tr> 281226031Sstas </table> 282226031Sstas</div> 283226031Sstas<div class="memdoc"> 284226031Sstas 285226031Sstas<p> 286226031SstasRead a auth data from the storage.<p> 287226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 288226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 289226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 290226031Sstas <tr><td valign="top"></td><td valign="top"><em>auth</em> </td><td>the auth data block read from storage</td></tr> 291226031Sstas </table> 292226031Sstas</dl> 293226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 294226031Sstas 295226031Sstas</div> 296226031Sstas</div><p> 297226031Sstas<a class="anchor" name="g2dc654b283ff77bc4f9071f4a230948b"></a><!-- doxytag: member="store.c::krb5_ret_creds" ref="g2dc654b283ff77bc4f9071f4a230948b" args="(krb5_storage *sp, krb5_creds *creds)" --> 298226031Sstas<div class="memitem"> 299226031Sstas<div class="memproto"> 300226031Sstas <table class="memname"> 301226031Sstas <tr> 302226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_creds </td> 303226031Sstas <td>(</td> 304226031Sstas <td class="paramtype">krb5_storage * </td> 305226031Sstas <td class="paramname"> <em>sp</em>, </td> 306226031Sstas </tr> 307226031Sstas <tr> 308226031Sstas <td class="paramkey"></td> 309226031Sstas <td></td> 310226031Sstas <td class="paramtype">krb5_creds * </td> 311226031Sstas <td class="paramname"> <em>creds</em></td><td> </td> 312226031Sstas </tr> 313226031Sstas <tr> 314226031Sstas <td></td> 315226031Sstas <td>)</td> 316226031Sstas <td></td><td></td><td></td> 317226031Sstas </tr> 318226031Sstas </table> 319226031Sstas</div> 320226031Sstas<div class="memdoc"> 321226031Sstas 322226031Sstas<p> 323226031SstasRead a credentials block from the storage.<p> 324226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 325226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 326226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 327226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>the credentials block read from storage</td></tr> 328226031Sstas </table> 329226031Sstas</dl> 330226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 331226031Sstas 332226031Sstas</div> 333226031Sstas</div><p> 334226031Sstas<a class="anchor" name="ge7b1a317660a64e555622499bb7624c6"></a><!-- doxytag: member="store.c::krb5_ret_creds_tag" ref="ge7b1a317660a64e555622499bb7624c6" args="(krb5_storage *sp, krb5_creds *creds)" --> 335226031Sstas<div class="memitem"> 336226031Sstas<div class="memproto"> 337226031Sstas <table class="memname"> 338226031Sstas <tr> 339226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_creds_tag </td> 340226031Sstas <td>(</td> 341226031Sstas <td class="paramtype">krb5_storage * </td> 342226031Sstas <td class="paramname"> <em>sp</em>, </td> 343226031Sstas </tr> 344226031Sstas <tr> 345226031Sstas <td class="paramkey"></td> 346226031Sstas <td></td> 347226031Sstas <td class="paramtype">krb5_creds * </td> 348226031Sstas <td class="paramname"> <em>creds</em></td><td> </td> 349226031Sstas </tr> 350226031Sstas <tr> 351226031Sstas <td></td> 352226031Sstas <td>)</td> 353226031Sstas <td></td><td></td><td></td> 354226031Sstas </tr> 355226031Sstas </table> 356226031Sstas</div> 357226031Sstas<div class="memdoc"> 358226031Sstas 359226031Sstas<p> 360226031SstasRead a tagged credentials block from the storage.<p> 361226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 362226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 363226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 364226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>the credentials block read from storage</td></tr> 365226031Sstas </table> 366226031Sstas</dl> 367226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 368226031Sstas 369226031Sstas</div> 370226031Sstas</div><p> 371226031Sstas<a class="anchor" name="g8c7a2d85381d67f05b5ac7f11f07317c"></a><!-- doxytag: member="store.c::krb5_ret_data" ref="g8c7a2d85381d67f05b5ac7f11f07317c" args="(krb5_storage *sp, krb5_data *data)" --> 372226031Sstas<div class="memitem"> 373226031Sstas<div class="memproto"> 374226031Sstas <table class="memname"> 375226031Sstas <tr> 376226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_data </td> 377226031Sstas <td>(</td> 378226031Sstas <td class="paramtype">krb5_storage * </td> 379226031Sstas <td class="paramname"> <em>sp</em>, </td> 380226031Sstas </tr> 381226031Sstas <tr> 382226031Sstas <td class="paramkey"></td> 383226031Sstas <td></td> 384226031Sstas <td class="paramtype">krb5_data * </td> 385226031Sstas <td class="paramname"> <em>data</em></td><td> </td> 386226031Sstas </tr> 387226031Sstas <tr> 388226031Sstas <td></td> 389226031Sstas <td>)</td> 390226031Sstas <td></td><td></td><td></td> 391226031Sstas </tr> 392226031Sstas </table> 393226031Sstas</div> 394226031Sstas<div class="memdoc"> 395226031Sstas 396226031Sstas<p> 397226031SstasParse a data from the storage.<p> 398226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 399226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 400226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to read from </td></tr> 401226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>the parsed data</td></tr> 402226031Sstas </table> 403226031Sstas</dl> 404226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 405226031Sstas 406226031Sstas</div> 407226031Sstas</div><p> 408226031Sstas<a class="anchor" name="g22a752d61f15a4dfe2f6250b6318e9ad"></a><!-- doxytag: member="store.c::krb5_ret_int16" ref="g22a752d61f15a4dfe2f6250b6318e9ad" args="(krb5_storage *sp, int16_t *value)" --> 409226031Sstas<div class="memitem"> 410226031Sstas<div class="memproto"> 411226031Sstas <table class="memname"> 412226031Sstas <tr> 413226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_int16 </td> 414226031Sstas <td>(</td> 415226031Sstas <td class="paramtype">krb5_storage * </td> 416226031Sstas <td class="paramname"> <em>sp</em>, </td> 417226031Sstas </tr> 418226031Sstas <tr> 419226031Sstas <td class="paramkey"></td> 420226031Sstas <td></td> 421226031Sstas <td class="paramtype">int16_t * </td> 422226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 423226031Sstas </tr> 424226031Sstas <tr> 425226031Sstas <td></td> 426226031Sstas <td>)</td> 427226031Sstas <td></td><td></td><td></td> 428226031Sstas </tr> 429226031Sstas </table> 430226031Sstas</div> 431226031Sstas<div class="memdoc"> 432226031Sstas 433226031Sstas<p> 434226031SstasRead a int16 from storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 435226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 436226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 437226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 438226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 439226031Sstas </table> 440226031Sstas</dl> 441226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 442226031Sstas 443226031Sstas</div> 444226031Sstas</div><p> 445226031Sstas<a class="anchor" name="g34771e1bed3a205479b62058b46bf118"></a><!-- doxytag: member="store.c::krb5_ret_int32" ref="g34771e1bed3a205479b62058b46bf118" args="(krb5_storage *sp, int32_t *value)" --> 446226031Sstas<div class="memitem"> 447226031Sstas<div class="memproto"> 448226031Sstas <table class="memname"> 449226031Sstas <tr> 450226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_int32 </td> 451226031Sstas <td>(</td> 452226031Sstas <td class="paramtype">krb5_storage * </td> 453226031Sstas <td class="paramname"> <em>sp</em>, </td> 454226031Sstas </tr> 455226031Sstas <tr> 456226031Sstas <td class="paramkey"></td> 457226031Sstas <td></td> 458226031Sstas <td class="paramtype">int32_t * </td> 459226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 460226031Sstas </tr> 461226031Sstas <tr> 462226031Sstas <td></td> 463226031Sstas <td>)</td> 464226031Sstas <td></td><td></td><td></td> 465226031Sstas </tr> 466226031Sstas </table> 467226031Sstas</div> 468226031Sstas<div class="memdoc"> 469226031Sstas 470226031Sstas<p> 471226031SstasRead a int32 from storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 472226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 473226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 474226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 475226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 476226031Sstas </table> 477226031Sstas</dl> 478226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 479226031Sstas 480226031Sstas</div> 481226031Sstas</div><p> 482226031Sstas<a class="anchor" name="gbb124c12e5cee024f44cc2b7c14d39c2"></a><!-- doxytag: member="store.c::krb5_ret_int8" ref="gbb124c12e5cee024f44cc2b7c14d39c2" args="(krb5_storage *sp, int8_t *value)" --> 483226031Sstas<div class="memitem"> 484226031Sstas<div class="memproto"> 485226031Sstas <table class="memname"> 486226031Sstas <tr> 487226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_int8 </td> 488226031Sstas <td>(</td> 489226031Sstas <td class="paramtype">krb5_storage * </td> 490226031Sstas <td class="paramname"> <em>sp</em>, </td> 491226031Sstas </tr> 492226031Sstas <tr> 493226031Sstas <td class="paramkey"></td> 494226031Sstas <td></td> 495226031Sstas <td class="paramtype">int8_t * </td> 496226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 497226031Sstas </tr> 498226031Sstas <tr> 499226031Sstas <td></td> 500226031Sstas <td>)</td> 501226031Sstas <td></td><td></td><td></td> 502226031Sstas </tr> 503226031Sstas </table> 504226031Sstas</div> 505226031Sstas<div class="memdoc"> 506226031Sstas 507226031Sstas<p> 508226031SstasRead a int8 from storage<p> 509226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 510226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 511226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 512226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 513226031Sstas </table> 514226031Sstas</dl> 515226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 516226031Sstas 517226031Sstas</div> 518226031Sstas</div><p> 519226031Sstas<a class="anchor" name="ga187d43f213353f98b8bf7dc3ced58d5"></a><!-- doxytag: member="store.c::krb5_ret_keyblock" ref="ga187d43f213353f98b8bf7dc3ced58d5" args="(krb5_storage *sp, krb5_keyblock *p)" --> 520226031Sstas<div class="memitem"> 521226031Sstas<div class="memproto"> 522226031Sstas <table class="memname"> 523226031Sstas <tr> 524226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_keyblock </td> 525226031Sstas <td>(</td> 526226031Sstas <td class="paramtype">krb5_storage * </td> 527226031Sstas <td class="paramname"> <em>sp</em>, </td> 528226031Sstas </tr> 529226031Sstas <tr> 530226031Sstas <td class="paramkey"></td> 531226031Sstas <td></td> 532226031Sstas <td class="paramtype">krb5_keyblock * </td> 533226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 534226031Sstas </tr> 535226031Sstas <tr> 536226031Sstas <td></td> 537226031Sstas <td>)</td> 538226031Sstas <td></td><td></td><td></td> 539226031Sstas </tr> 540226031Sstas </table> 541226031Sstas</div> 542226031Sstas<div class="memdoc"> 543226031Sstas 544226031Sstas<p> 545226031SstasRead a keyblock from the storage.<p> 546226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 547226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 548226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 549226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the keyblock read from storage, free using <a class="el" href="group__krb5__crypto.html#g2e434abf56e7d7852358e11cdab0bb33">krb5_free_keyblock()</a></td></tr> 550226031Sstas </table> 551226031Sstas</dl> 552226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 553226031Sstas 554226031Sstas</div> 555226031Sstas</div><p> 556226031Sstas<a class="anchor" name="g7dc492d545194b464fd91c03f9685127"></a><!-- doxytag: member="store.c::krb5_ret_principal" ref="g7dc492d545194b464fd91c03f9685127" args="(krb5_storage *sp, krb5_principal *princ)" --> 557226031Sstas<div class="memitem"> 558226031Sstas<div class="memproto"> 559226031Sstas <table class="memname"> 560226031Sstas <tr> 561226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_principal </td> 562226031Sstas <td>(</td> 563226031Sstas <td class="paramtype">krb5_storage * </td> 564226031Sstas <td class="paramname"> <em>sp</em>, </td> 565226031Sstas </tr> 566226031Sstas <tr> 567226031Sstas <td class="paramkey"></td> 568226031Sstas <td></td> 569226031Sstas <td class="paramtype">krb5_principal * </td> 570226031Sstas <td class="paramname"> <em>princ</em></td><td> </td> 571226031Sstas </tr> 572226031Sstas <tr> 573226031Sstas <td></td> 574226031Sstas <td>)</td> 575226031Sstas <td></td><td></td><td></td> 576226031Sstas </tr> 577226031Sstas </table> 578226031Sstas</div> 579226031Sstas<div class="memdoc"> 580226031Sstas 581226031Sstas<p> 582226031SstasParse principal from the storage.<p> 583226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 584226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 585226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to read from </td></tr> 586226031Sstas <tr><td valign="top"></td><td valign="top"><em>princ</em> </td><td>the parsed principal</td></tr> 587226031Sstas </table> 588226031Sstas</dl> 589226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 590226031Sstas 591226031Sstas</div> 592226031Sstas</div><p> 593226031Sstas<a class="anchor" name="g832d820ec4510a06ee600d5658f7bb44"></a><!-- doxytag: member="store.c::krb5_ret_string" ref="g832d820ec4510a06ee600d5658f7bb44" args="(krb5_storage *sp, char **string)" --> 594226031Sstas<div class="memitem"> 595226031Sstas<div class="memproto"> 596226031Sstas <table class="memname"> 597226031Sstas <tr> 598226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_string </td> 599226031Sstas <td>(</td> 600226031Sstas <td class="paramtype">krb5_storage * </td> 601226031Sstas <td class="paramname"> <em>sp</em>, </td> 602226031Sstas </tr> 603226031Sstas <tr> 604226031Sstas <td class="paramkey"></td> 605226031Sstas <td></td> 606226031Sstas <td class="paramtype">char ** </td> 607226031Sstas <td class="paramname"> <em>string</em></td><td> </td> 608226031Sstas </tr> 609226031Sstas <tr> 610226031Sstas <td></td> 611226031Sstas <td>)</td> 612226031Sstas <td></td><td></td><td></td> 613226031Sstas </tr> 614226031Sstas </table> 615226031Sstas</div> 616226031Sstas<div class="memdoc"> 617226031Sstas 618226031Sstas<p> 619226031SstasParse a string from the storage.<p> 620226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 621226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 622226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to read from </td></tr> 623226031Sstas <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>the parsed string</td></tr> 624226031Sstas </table> 625226031Sstas</dl> 626226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 627226031Sstas 628226031Sstas</div> 629226031Sstas</div><p> 630226031Sstas<a class="anchor" name="g49d6e513666d88682d83fe8a68cdff65"></a><!-- doxytag: member="store.c::krb5_ret_stringz" ref="g49d6e513666d88682d83fe8a68cdff65" args="(krb5_storage *sp, char **string)" --> 631226031Sstas<div class="memitem"> 632226031Sstas<div class="memproto"> 633226031Sstas <table class="memname"> 634226031Sstas <tr> 635226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_stringz </td> 636226031Sstas <td>(</td> 637226031Sstas <td class="paramtype">krb5_storage * </td> 638226031Sstas <td class="paramname"> <em>sp</em>, </td> 639226031Sstas </tr> 640226031Sstas <tr> 641226031Sstas <td class="paramkey"></td> 642226031Sstas <td></td> 643226031Sstas <td class="paramtype">char ** </td> 644226031Sstas <td class="paramname"> <em>string</em></td><td> </td> 645226031Sstas </tr> 646226031Sstas <tr> 647226031Sstas <td></td> 648226031Sstas <td>)</td> 649226031Sstas <td></td><td></td><td></td> 650226031Sstas </tr> 651226031Sstas </table> 652226031Sstas</div> 653226031Sstas<div class="memdoc"> 654226031Sstas 655226031Sstas<p> 656226031SstasParse zero terminated string from the storage.<p> 657226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 658226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 659226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to read from </td></tr> 660226031Sstas <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>the parsed string</td></tr> 661226031Sstas </table> 662226031Sstas</dl> 663226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 664226031Sstas 665226031Sstas</div> 666226031Sstas</div><p> 667226031Sstas<a class="anchor" name="gc2821394420e954939f9eab8cb6492f5"></a><!-- doxytag: member="store.c::krb5_ret_times" ref="gc2821394420e954939f9eab8cb6492f5" args="(krb5_storage *sp, krb5_times *times)" --> 668226031Sstas<div class="memitem"> 669226031Sstas<div class="memproto"> 670226031Sstas <table class="memname"> 671226031Sstas <tr> 672226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_times </td> 673226031Sstas <td>(</td> 674226031Sstas <td class="paramtype">krb5_storage * </td> 675226031Sstas <td class="paramname"> <em>sp</em>, </td> 676226031Sstas </tr> 677226031Sstas <tr> 678226031Sstas <td class="paramkey"></td> 679226031Sstas <td></td> 680226031Sstas <td class="paramtype">krb5_times * </td> 681226031Sstas <td class="paramname"> <em>times</em></td><td> </td> 682226031Sstas </tr> 683226031Sstas <tr> 684226031Sstas <td></td> 685226031Sstas <td>)</td> 686226031Sstas <td></td><td></td><td></td> 687226031Sstas </tr> 688226031Sstas </table> 689226031Sstas</div> 690226031Sstas<div class="memdoc"> 691226031Sstas 692226031Sstas<p> 693226031SstasRead a times block from the storage.<p> 694226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 695226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 696226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 697226031Sstas <tr><td valign="top"></td><td valign="top"><em>times</em> </td><td>the times block read from storage</td></tr> 698226031Sstas </table> 699226031Sstas</dl> 700226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 701226031Sstas 702226031Sstas</div> 703226031Sstas</div><p> 704226031Sstas<a class="anchor" name="g70b3c617f00a9705bc2c5ab841a28aab"></a><!-- doxytag: member="store.c::krb5_ret_uint16" ref="g70b3c617f00a9705bc2c5ab841a28aab" args="(krb5_storage *sp, uint16_t *value)" --> 705226031Sstas<div class="memitem"> 706226031Sstas<div class="memproto"> 707226031Sstas <table class="memname"> 708226031Sstas <tr> 709226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_uint16 </td> 710226031Sstas <td>(</td> 711226031Sstas <td class="paramtype">krb5_storage * </td> 712226031Sstas <td class="paramname"> <em>sp</em>, </td> 713226031Sstas </tr> 714226031Sstas <tr> 715226031Sstas <td class="paramkey"></td> 716226031Sstas <td></td> 717226031Sstas <td class="paramtype">uint16_t * </td> 718226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 719226031Sstas </tr> 720226031Sstas <tr> 721226031Sstas <td></td> 722226031Sstas <td>)</td> 723226031Sstas <td></td><td></td><td></td> 724226031Sstas </tr> 725226031Sstas </table> 726226031Sstas</div> 727226031Sstas<div class="memdoc"> 728226031Sstas 729226031Sstas<p> 730226031SstasRead a int16 from storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 731226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 732226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 733226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 734226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 735226031Sstas </table> 736226031Sstas</dl> 737226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 738226031Sstas 739226031Sstas</div> 740226031Sstas</div><p> 741226031Sstas<a class="anchor" name="gbfdfdb6469374de5537cb484f84b11cc"></a><!-- doxytag: member="store.c::krb5_ret_uint32" ref="gbfdfdb6469374de5537cb484f84b11cc" args="(krb5_storage *sp, uint32_t *value)" --> 742226031Sstas<div class="memitem"> 743226031Sstas<div class="memproto"> 744226031Sstas <table class="memname"> 745226031Sstas <tr> 746226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_uint32 </td> 747226031Sstas <td>(</td> 748226031Sstas <td class="paramtype">krb5_storage * </td> 749226031Sstas <td class="paramname"> <em>sp</em>, </td> 750226031Sstas </tr> 751226031Sstas <tr> 752226031Sstas <td class="paramkey"></td> 753226031Sstas <td></td> 754226031Sstas <td class="paramtype">uint32_t * </td> 755226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 756226031Sstas </tr> 757226031Sstas <tr> 758226031Sstas <td></td> 759226031Sstas <td>)</td> 760226031Sstas <td></td><td></td><td></td> 761226031Sstas </tr> 762226031Sstas </table> 763226031Sstas</div> 764226031Sstas<div class="memdoc"> 765226031Sstas 766226031Sstas<p> 767226031SstasRead a uint32 from storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 768226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 769226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 770226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 771226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 772226031Sstas </table> 773226031Sstas</dl> 774226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 775226031Sstas 776226031Sstas</div> 777226031Sstas</div><p> 778226031Sstas<a class="anchor" name="g9a90ecc945cf95ea0cda1c6199a735b5"></a><!-- doxytag: member="store.c::krb5_ret_uint8" ref="g9a90ecc945cf95ea0cda1c6199a735b5" args="(krb5_storage *sp, uint8_t *value)" --> 779226031Sstas<div class="memitem"> 780226031Sstas<div class="memproto"> 781226031Sstas <table class="memname"> 782226031Sstas <tr> 783226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_ret_uint8 </td> 784226031Sstas <td>(</td> 785226031Sstas <td class="paramtype">krb5_storage * </td> 786226031Sstas <td class="paramname"> <em>sp</em>, </td> 787226031Sstas </tr> 788226031Sstas <tr> 789226031Sstas <td class="paramkey"></td> 790226031Sstas <td></td> 791226031Sstas <td class="paramtype">uint8_t * </td> 792226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 793226031Sstas </tr> 794226031Sstas <tr> 795226031Sstas <td></td> 796226031Sstas <td>)</td> 797226031Sstas <td></td><td></td><td></td> 798226031Sstas </tr> 799226031Sstas </table> 800226031Sstas</div> 801226031Sstas<div class="memdoc"> 802226031Sstas 803226031Sstas<p> 804226031SstasRead a uint8 from storage<p> 805226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 806226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 807226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 808226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value read from the buffer</td></tr> 809226031Sstas </table> 810226031Sstas</dl> 811226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 812226031Sstas 813226031Sstas</div> 814226031Sstas</div><p> 815226031Sstas<a class="anchor" name="g314501a5959ccde26989429691fded9d"></a><!-- doxytag: member="store.c::krb5_storage_clear_flags" ref="g314501a5959ccde26989429691fded9d" args="(krb5_storage *sp, krb5_flags flags)" --> 816226031Sstas<div class="memitem"> 817226031Sstas<div class="memproto"> 818226031Sstas <table class="memname"> 819226031Sstas <tr> 820226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_storage_clear_flags </td> 821226031Sstas <td>(</td> 822226031Sstas <td class="paramtype">krb5_storage * </td> 823226031Sstas <td class="paramname"> <em>sp</em>, </td> 824226031Sstas </tr> 825226031Sstas <tr> 826226031Sstas <td class="paramkey"></td> 827226031Sstas <td></td> 828226031Sstas <td class="paramtype">krb5_flags </td> 829226031Sstas <td class="paramname"> <em>flags</em></td><td> </td> 830226031Sstas </tr> 831226031Sstas <tr> 832226031Sstas <td></td> 833226031Sstas <td>)</td> 834226031Sstas <td></td><td></td><td></td> 835226031Sstas </tr> 836226031Sstas </table> 837226031Sstas</div> 838226031Sstas<div class="memdoc"> 839226031Sstas 840226031Sstas<p> 841226031SstasClear the flags on a storage buffer<p> 842226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 843226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 844226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to clear the flags on </td></tr> 845226031Sstas <tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>the flags to clear </td></tr> 846226031Sstas </table> 847226031Sstas</dl> 848226031Sstas 849226031Sstas</div> 850226031Sstas</div><p> 851226031Sstas<a class="anchor" name="g6ba3655c175405064c1ec80e044667cb"></a><!-- doxytag: member="store_emem.c::krb5_storage_emem" ref="g6ba3655c175405064c1ec80e044667cb" args="(void)" --> 852226031Sstas<div class="memitem"> 853226031Sstas<div class="memproto"> 854226031Sstas <table class="memname"> 855226031Sstas <tr> 856226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_storage* KRB5_LIB_CALL krb5_storage_emem </td> 857226031Sstas <td>(</td> 858226031Sstas <td class="paramtype">void </td> 859226031Sstas <td class="paramname"> </td> 860226031Sstas <td> ) </td> 861226031Sstas <td></td> 862226031Sstas </tr> 863226031Sstas </table> 864226031Sstas</div> 865226031Sstas<div class="memdoc"> 866226031Sstas 867226031Sstas<p> 868226031SstasCreate a elastic (allocating) memory storage backend. Memory is allocated on demand. Free returned krb5_storage with <a class="el" href="group__krb5__storage.html#g110924b1d3a19859eafcfb58127adbb9">krb5_storage_free()</a>.<p> 869226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>A krb5_storage on success, or NULL on out of memory error.</dd></dl> 870226031Sstas<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__krb5__storage.html#g481850b82dfa486ffaf15be7109f9d07">krb5_storage_from_mem()</a> <p> 871226031Sstas<a class="el" href="group__krb5__storage.html#g53fa57f40353b6dc6a322f597ddbe628">krb5_storage_from_readonly_mem()</a> <p> 872226031Sstas<a class="el" href="group__krb5__storage.html#g60c7ea40fa36375dfd6b4c1213834668">krb5_storage_from_fd()</a> <p> 873226031Sstas<a class="el" href="group__krb5__storage.html#g022a581989d5cffca3ac53dd79d865af">krb5_storage_from_data()</a> </dd></dl> 874226031Sstas 875226031Sstas</div> 876226031Sstas</div><p> 877226031Sstas<a class="anchor" name="g110924b1d3a19859eafcfb58127adbb9"></a><!-- doxytag: member="store.c::krb5_storage_free" ref="g110924b1d3a19859eafcfb58127adbb9" args="(krb5_storage *sp)" --> 878226031Sstas<div class="memitem"> 879226031Sstas<div class="memproto"> 880226031Sstas <table class="memname"> 881226031Sstas <tr> 882226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_storage_free </td> 883226031Sstas <td>(</td> 884226031Sstas <td class="paramtype">krb5_storage * </td> 885226031Sstas <td class="paramname"> <em>sp</em> </td> 886226031Sstas <td> ) </td> 887226031Sstas <td></td> 888226031Sstas </tr> 889226031Sstas </table> 890226031Sstas</div> 891226031Sstas<div class="memdoc"> 892226031Sstas 893226031Sstas<p> 894226031SstasFree a krb5 storage.<p> 895226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 896226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 897226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to free.</td></tr> 898226031Sstas </table> 899226031Sstas</dl> 900226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>An Kerberos 5 error code. </dd></dl> 901226031Sstas 902226031Sstas</div> 903226031Sstas</div><p> 904226031Sstas<a class="anchor" name="g022a581989d5cffca3ac53dd79d865af"></a><!-- doxytag: member="store_mem.c::krb5_storage_from_data" ref="g022a581989d5cffca3ac53dd79d865af" args="(krb5_data *data)" --> 905226031Sstas<div class="memitem"> 906226031Sstas<div class="memproto"> 907226031Sstas <table class="memname"> 908226031Sstas <tr> 909226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_storage* KRB5_LIB_CALL krb5_storage_from_data </td> 910226031Sstas <td>(</td> 911226031Sstas <td class="paramtype">krb5_data * </td> 912226031Sstas <td class="paramname"> <em>data</em> </td> 913226031Sstas <td> ) </td> 914226031Sstas <td></td> 915226031Sstas </tr> 916226031Sstas </table> 917226031Sstas</div> 918226031Sstas<div class="memdoc"> 919226031Sstas 920226031Sstas<p> 921226031SstasCreate a fixed size memory storage block<p> 922226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>A krb5_storage on success, or NULL on out of memory error.</dd></dl> 923226031Sstas<dl class="see" compact><dt><b>See also:</b></dt><dd>krb5_storage_mem() <p> 924226031Sstas<a class="el" href="group__krb5__storage.html#g481850b82dfa486ffaf15be7109f9d07">krb5_storage_from_mem()</a> <p> 925226031Sstas<a class="el" href="group__krb5__storage.html#g53fa57f40353b6dc6a322f597ddbe628">krb5_storage_from_readonly_mem()</a> <p> 926226031Sstas<a class="el" href="group__krb5__storage.html#g60c7ea40fa36375dfd6b4c1213834668">krb5_storage_from_fd()</a> </dd></dl> 927226031Sstas 928226031Sstas</div> 929226031Sstas</div><p> 930226031Sstas<a class="anchor" name="g60c7ea40fa36375dfd6b4c1213834668"></a><!-- doxytag: member="store_fd.c::krb5_storage_from_fd" ref="g60c7ea40fa36375dfd6b4c1213834668" args="(krb5_socket_t fd_in)" --> 931226031Sstas<div class="memitem"> 932226031Sstas<div class="memproto"> 933226031Sstas <table class="memname"> 934226031Sstas <tr> 935226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_storage* KRB5_LIB_CALL krb5_storage_from_fd </td> 936226031Sstas <td>(</td> 937226031Sstas <td class="paramtype">krb5_socket_t </td> 938226031Sstas <td class="paramname"> <em>fd_in</em> </td> 939226031Sstas <td> ) </td> 940226031Sstas <td></td> 941226031Sstas </tr> 942226031Sstas </table> 943226031Sstas</div> 944226031Sstas<div class="memdoc"> 945226031Sstas 946226031Sstas<p> 947226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>A krb5_storage on success, or NULL on out of memory error.</dd></dl> 948226031Sstas<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__krb5__storage.html#g6ba3655c175405064c1ec80e044667cb">krb5_storage_emem()</a> <p> 949226031Sstas<a class="el" href="group__krb5__storage.html#g481850b82dfa486ffaf15be7109f9d07">krb5_storage_from_mem()</a> <p> 950226031Sstas<a class="el" href="group__krb5__storage.html#g53fa57f40353b6dc6a322f597ddbe628">krb5_storage_from_readonly_mem()</a> <p> 951226031Sstas<a class="el" href="group__krb5__storage.html#g022a581989d5cffca3ac53dd79d865af">krb5_storage_from_data()</a> </dd></dl> 952226031Sstas 953226031Sstas</div> 954226031Sstas</div><p> 955226031Sstas<a class="anchor" name="g481850b82dfa486ffaf15be7109f9d07"></a><!-- doxytag: member="store_mem.c::krb5_storage_from_mem" ref="g481850b82dfa486ffaf15be7109f9d07" args="(void *buf, size_t len)" --> 956226031Sstas<div class="memitem"> 957226031Sstas<div class="memproto"> 958226031Sstas <table class="memname"> 959226031Sstas <tr> 960226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_storage* KRB5_LIB_CALL krb5_storage_from_mem </td> 961226031Sstas <td>(</td> 962226031Sstas <td class="paramtype">void * </td> 963226031Sstas <td class="paramname"> <em>buf</em>, </td> 964226031Sstas </tr> 965226031Sstas <tr> 966226031Sstas <td class="paramkey"></td> 967226031Sstas <td></td> 968226031Sstas <td class="paramtype">size_t </td> 969226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 970226031Sstas </tr> 971226031Sstas <tr> 972226031Sstas <td></td> 973226031Sstas <td>)</td> 974226031Sstas <td></td><td></td><td></td> 975226031Sstas </tr> 976226031Sstas </table> 977226031Sstas</div> 978226031Sstas<div class="memdoc"> 979226031Sstas 980226031Sstas<p> 981226031SstasCreate a fixed size memory storage block<p> 982226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>A krb5_storage on success, or NULL on out of memory error.</dd></dl> 983226031Sstas<dl class="see" compact><dt><b>See also:</b></dt><dd>krb5_storage_mem() <p> 984226031Sstas<a class="el" href="group__krb5__storage.html#g53fa57f40353b6dc6a322f597ddbe628">krb5_storage_from_readonly_mem()</a> <p> 985226031Sstas<a class="el" href="group__krb5__storage.html#g022a581989d5cffca3ac53dd79d865af">krb5_storage_from_data()</a> <p> 986226031Sstas<a class="el" href="group__krb5__storage.html#g60c7ea40fa36375dfd6b4c1213834668">krb5_storage_from_fd()</a> </dd></dl> 987226031Sstas 988226031Sstas</div> 989226031Sstas</div><p> 990226031Sstas<a class="anchor" name="g53fa57f40353b6dc6a322f597ddbe628"></a><!-- doxytag: member="store_mem.c::krb5_storage_from_readonly_mem" ref="g53fa57f40353b6dc6a322f597ddbe628" args="(const void *buf, size_t len)" --> 991226031Sstas<div class="memitem"> 992226031Sstas<div class="memproto"> 993226031Sstas <table class="memname"> 994226031Sstas <tr> 995226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_storage* KRB5_LIB_CALL krb5_storage_from_readonly_mem </td> 996226031Sstas <td>(</td> 997226031Sstas <td class="paramtype">const void * </td> 998226031Sstas <td class="paramname"> <em>buf</em>, </td> 999226031Sstas </tr> 1000226031Sstas <tr> 1001226031Sstas <td class="paramkey"></td> 1002226031Sstas <td></td> 1003226031Sstas <td class="paramtype">size_t </td> 1004226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 1005226031Sstas </tr> 1006226031Sstas <tr> 1007226031Sstas <td></td> 1008226031Sstas <td>)</td> 1009226031Sstas <td></td><td></td><td></td> 1010226031Sstas </tr> 1011226031Sstas </table> 1012226031Sstas</div> 1013226031Sstas<div class="memdoc"> 1014226031Sstas 1015226031Sstas<p> 1016226031SstasCreate a fixed size memory storage block that is read only<p> 1017226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>A krb5_storage on success, or NULL on out of memory error.</dd></dl> 1018226031Sstas<dl class="see" compact><dt><b>See also:</b></dt><dd>krb5_storage_mem() <p> 1019226031Sstas<a class="el" href="group__krb5__storage.html#g481850b82dfa486ffaf15be7109f9d07">krb5_storage_from_mem()</a> <p> 1020226031Sstas<a class="el" href="group__krb5__storage.html#g022a581989d5cffca3ac53dd79d865af">krb5_storage_from_data()</a> <p> 1021226031Sstas<a class="el" href="group__krb5__storage.html#g60c7ea40fa36375dfd6b4c1213834668">krb5_storage_from_fd()</a> </dd></dl> 1022226031Sstas 1023226031Sstas</div> 1024226031Sstas</div><p> 1025226031Sstas<a class="anchor" name="g9f521cbe41ed5ba522d3a2006c61201a"></a><!-- doxytag: member="store.c::krb5_storage_get_byteorder" ref="g9f521cbe41ed5ba522d3a2006c61201a" args="(krb5_storage *sp)" --> 1026226031Sstas<div class="memitem"> 1027226031Sstas<div class="memproto"> 1028226031Sstas <table class="memname"> 1029226031Sstas <tr> 1030226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_flags KRB5_LIB_CALL krb5_storage_get_byteorder </td> 1031226031Sstas <td>(</td> 1032226031Sstas <td class="paramtype">krb5_storage * </td> 1033226031Sstas <td class="paramname"> <em>sp</em> </td> 1034226031Sstas <td> ) </td> 1035226031Sstas <td></td> 1036226031Sstas </tr> 1037226031Sstas </table> 1038226031Sstas</div> 1039226031Sstas<div class="memdoc"> 1040226031Sstas 1041226031Sstas<p> 1042226031SstasReturn the current byteorder for the buffer. See <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a> for the list or byte order contants. 1043226031Sstas</div> 1044226031Sstas</div><p> 1045226031Sstas<a class="anchor" name="g8f9e3f1442a4f14ac802bdb9db5f4890"></a><!-- doxytag: member="store.c::krb5_storage_get_eof_code" ref="g8f9e3f1442a4f14ac802bdb9db5f4890" args="(krb5_storage *sp)" --> 1046226031Sstas<div class="memitem"> 1047226031Sstas<div class="memproto"> 1048226031Sstas <table class="memname"> 1049226031Sstas <tr> 1050226031Sstas <td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_storage_get_eof_code </td> 1051226031Sstas <td>(</td> 1052226031Sstas <td class="paramtype">krb5_storage * </td> 1053226031Sstas <td class="paramname"> <em>sp</em> </td> 1054226031Sstas <td> ) </td> 1055226031Sstas <td></td> 1056226031Sstas </tr> 1057226031Sstas </table> 1058226031Sstas</div> 1059226031Sstas<div class="memdoc"> 1060226031Sstas 1061226031Sstas<p> 1062226031SstasGet the return code that will be used when end of storage is reached.<p> 1063226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1064226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1065226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage</td></tr> 1066226031Sstas </table> 1067226031Sstas</dl> 1068226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>storage error code </dd></dl> 1069226031Sstas 1070226031Sstas</div> 1071226031Sstas</div><p> 1072226031Sstas<a class="anchor" name="g430a3498c04aff00534c6e08330b312c"></a><!-- doxytag: member="store.c::krb5_storage_is_flags" ref="g430a3498c04aff00534c6e08330b312c" args="(krb5_storage *sp, krb5_flags flags)" --> 1073226031Sstas<div class="memitem"> 1074226031Sstas<div class="memproto"> 1075226031Sstas <table class="memname"> 1076226031Sstas <tr> 1077226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL krb5_storage_is_flags </td> 1078226031Sstas <td>(</td> 1079226031Sstas <td class="paramtype">krb5_storage * </td> 1080226031Sstas <td class="paramname"> <em>sp</em>, </td> 1081226031Sstas </tr> 1082226031Sstas <tr> 1083226031Sstas <td class="paramkey"></td> 1084226031Sstas <td></td> 1085226031Sstas <td class="paramtype">krb5_flags </td> 1086226031Sstas <td class="paramname"> <em>flags</em></td><td> </td> 1087226031Sstas </tr> 1088226031Sstas <tr> 1089226031Sstas <td></td> 1090226031Sstas <td>)</td> 1091226031Sstas <td></td><td></td><td></td> 1092226031Sstas </tr> 1093226031Sstas </table> 1094226031Sstas</div> 1095226031Sstas<div class="memdoc"> 1096226031Sstas 1097226031Sstas<p> 1098226031SstasReturn true or false depending on if the storage flags is set or not. NB testing for the flag 0 always return true.<p> 1099226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1100226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1101226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to check flags on </td></tr> 1102226031Sstas <tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>The flags to test for</td></tr> 1103226031Sstas </table> 1104226031Sstas</dl> 1105226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if all the flags are set, false if not. </dd></dl> 1106226031Sstas 1107226031Sstas</div> 1108226031Sstas</div><p> 1109226031Sstas<a class="anchor" name="g4b916691b096448f5b492fcd67148106"></a><!-- doxytag: member="store.c::krb5_storage_read" ref="g4b916691b096448f5b492fcd67148106" args="(krb5_storage *sp, void *buf, size_t len)" --> 1110226031Sstas<div class="memitem"> 1111226031Sstas<div class="memproto"> 1112226031Sstas <table class="memname"> 1113226031Sstas <tr> 1114226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL krb5_storage_read </td> 1115226031Sstas <td>(</td> 1116226031Sstas <td class="paramtype">krb5_storage * </td> 1117226031Sstas <td class="paramname"> <em>sp</em>, </td> 1118226031Sstas </tr> 1119226031Sstas <tr> 1120226031Sstas <td class="paramkey"></td> 1121226031Sstas <td></td> 1122226031Sstas <td class="paramtype">void * </td> 1123226031Sstas <td class="paramname"> <em>buf</em>, </td> 1124226031Sstas </tr> 1125226031Sstas <tr> 1126226031Sstas <td class="paramkey"></td> 1127226031Sstas <td></td> 1128226031Sstas <td class="paramtype">size_t </td> 1129226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 1130226031Sstas </tr> 1131226031Sstas <tr> 1132226031Sstas <td></td> 1133226031Sstas <td>)</td> 1134226031Sstas <td></td><td></td><td></td> 1135226031Sstas </tr> 1136226031Sstas </table> 1137226031Sstas</div> 1138226031Sstas<div class="memdoc"> 1139226031Sstas 1140226031Sstas<p> 1141226031SstasRead to the storage buffer.<p> 1142226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1143226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1144226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to read from </td></tr> 1145226031Sstas <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>the buffer to store the data in </td></tr> 1146226031Sstas <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>the length to read</td></tr> 1147226031Sstas </table> 1148226031Sstas</dl> 1149226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>The length of data read (can be shorter then len), or negative on error. </dd></dl> 1150226031Sstas 1151226031Sstas</div> 1152226031Sstas</div><p> 1153226031Sstas<a class="anchor" name="g4ecf2806cc57252af155a66fbb705773"></a><!-- doxytag: member="store.c::krb5_storage_seek" ref="g4ecf2806cc57252af155a66fbb705773" args="(krb5_storage *sp, off_t offset, int whence)" --> 1154226031Sstas<div class="memitem"> 1155226031Sstas<div class="memproto"> 1156226031Sstas <table class="memname"> 1157226031Sstas <tr> 1158226031Sstas <td class="memname">KRB5_LIB_FUNCTION off_t KRB5_LIB_CALL krb5_storage_seek </td> 1159226031Sstas <td>(</td> 1160226031Sstas <td class="paramtype">krb5_storage * </td> 1161226031Sstas <td class="paramname"> <em>sp</em>, </td> 1162226031Sstas </tr> 1163226031Sstas <tr> 1164226031Sstas <td class="paramkey"></td> 1165226031Sstas <td></td> 1166226031Sstas <td class="paramtype">off_t </td> 1167226031Sstas <td class="paramname"> <em>offset</em>, </td> 1168226031Sstas </tr> 1169226031Sstas <tr> 1170226031Sstas <td class="paramkey"></td> 1171226031Sstas <td></td> 1172226031Sstas <td class="paramtype">int </td> 1173226031Sstas <td class="paramname"> <em>whence</em></td><td> </td> 1174226031Sstas </tr> 1175226031Sstas <tr> 1176226031Sstas <td></td> 1177226031Sstas <td>)</td> 1178226031Sstas <td></td><td></td><td></td> 1179226031Sstas </tr> 1180226031Sstas </table> 1181226031Sstas</div> 1182226031Sstas<div class="memdoc"> 1183226031Sstas 1184226031Sstas<p> 1185226031SstasSeek to a new offset.<p> 1186226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1187226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1188226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to seek in. </td></tr> 1189226031Sstas <tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>the offset to seek </td></tr> 1190226031Sstas <tr><td valign="top"></td><td valign="top"><em>whence</em> </td><td>relateive searching, SEEK_CUR from the current position, SEEK_END from the end, SEEK_SET absolute from the start.</td></tr> 1191226031Sstas </table> 1192226031Sstas</dl> 1193226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new current offset </dd></dl> 1194226031Sstas 1195226031Sstas</div> 1196226031Sstas</div><p> 1197226031Sstas<a class="anchor" name="g8f3e170aeb4a9108b3bfeb550184022c"></a><!-- doxytag: member="store.c::krb5_storage_set_byteorder" ref="g8f3e170aeb4a9108b3bfeb550184022c" args="(krb5_storage *sp, krb5_flags byteorder)" --> 1198226031Sstas<div class="memitem"> 1199226031Sstas<div class="memproto"> 1200226031Sstas <table class="memname"> 1201226031Sstas <tr> 1202226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_storage_set_byteorder </td> 1203226031Sstas <td>(</td> 1204226031Sstas <td class="paramtype">krb5_storage * </td> 1205226031Sstas <td class="paramname"> <em>sp</em>, </td> 1206226031Sstas </tr> 1207226031Sstas <tr> 1208226031Sstas <td class="paramkey"></td> 1209226031Sstas <td></td> 1210226031Sstas <td class="paramtype">krb5_flags </td> 1211226031Sstas <td class="paramname"> <em>byteorder</em></td><td> </td> 1212226031Sstas </tr> 1213226031Sstas <tr> 1214226031Sstas <td></td> 1215226031Sstas <td>)</td> 1216226031Sstas <td></td><td></td><td></td> 1217226031Sstas </tr> 1218226031Sstas </table> 1219226031Sstas</div> 1220226031Sstas<div class="memdoc"> 1221226031Sstas 1222226031Sstas<p> 1223226031SstasSet the new byte order of the storage buffer.<p> 1224226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1225226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1226226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to set the byte order for. </td></tr> 1227226031Sstas <tr><td valign="top"></td><td valign="top"><em>byteorder</em> </td><td>the new byte order.</td></tr> 1228226031Sstas </table> 1229226031Sstas</dl> 1230226031SstasThe byte order are: KRB5_STORAGE_BYTEORDER_BE, KRB5_STORAGE_BYTEORDER_LE and KRB5_STORAGE_BYTEORDER_HOST. 1231226031Sstas</div> 1232226031Sstas</div><p> 1233226031Sstas<a class="anchor" name="gbc10ced03dcf096b2f09b08568087900"></a><!-- doxytag: member="store.c::krb5_storage_set_eof_code" ref="gbc10ced03dcf096b2f09b08568087900" args="(krb5_storage *sp, int code)" --> 1234226031Sstas<div class="memitem"> 1235226031Sstas<div class="memproto"> 1236226031Sstas <table class="memname"> 1237226031Sstas <tr> 1238226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_storage_set_eof_code </td> 1239226031Sstas <td>(</td> 1240226031Sstas <td class="paramtype">krb5_storage * </td> 1241226031Sstas <td class="paramname"> <em>sp</em>, </td> 1242226031Sstas </tr> 1243226031Sstas <tr> 1244226031Sstas <td class="paramkey"></td> 1245226031Sstas <td></td> 1246226031Sstas <td class="paramtype">int </td> 1247226031Sstas <td class="paramname"> <em>code</em></td><td> </td> 1248226031Sstas </tr> 1249226031Sstas <tr> 1250226031Sstas <td></td> 1251226031Sstas <td>)</td> 1252226031Sstas <td></td><td></td><td></td> 1253226031Sstas </tr> 1254226031Sstas </table> 1255226031Sstas</div> 1256226031Sstas<div class="memdoc"> 1257226031Sstas 1258226031Sstas<p> 1259226031SstasSet the return code that will be used when end of storage is reached.<p> 1260226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1261226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1262226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage </td></tr> 1263226031Sstas <tr><td valign="top"></td><td valign="top"><em>code</em> </td><td>the error code to return on end of storage </td></tr> 1264226031Sstas </table> 1265226031Sstas</dl> 1266226031Sstas 1267226031Sstas</div> 1268226031Sstas</div><p> 1269226031Sstas<a class="anchor" name="g99af12d663a652732293b99ecff81989"></a><!-- doxytag: member="store.c::krb5_storage_set_flags" ref="g99af12d663a652732293b99ecff81989" args="(krb5_storage *sp, krb5_flags flags)" --> 1270226031Sstas<div class="memitem"> 1271226031Sstas<div class="memproto"> 1272226031Sstas <table class="memname"> 1273226031Sstas <tr> 1274226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_storage_set_flags </td> 1275226031Sstas <td>(</td> 1276226031Sstas <td class="paramtype">krb5_storage * </td> 1277226031Sstas <td class="paramname"> <em>sp</em>, </td> 1278226031Sstas </tr> 1279226031Sstas <tr> 1280226031Sstas <td class="paramkey"></td> 1281226031Sstas <td></td> 1282226031Sstas <td class="paramtype">krb5_flags </td> 1283226031Sstas <td class="paramname"> <em>flags</em></td><td> </td> 1284226031Sstas </tr> 1285226031Sstas <tr> 1286226031Sstas <td></td> 1287226031Sstas <td>)</td> 1288226031Sstas <td></td><td></td><td></td> 1289226031Sstas </tr> 1290226031Sstas </table> 1291226031Sstas</div> 1292226031Sstas<div class="memdoc"> 1293226031Sstas 1294226031Sstas<p> 1295226031SstasAdd the flags on a storage buffer by or-ing in the flags to the buffer.<p> 1296226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1297226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1298226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to set the flags on </td></tr> 1299226031Sstas <tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>the flags to set </td></tr> 1300226031Sstas </table> 1301226031Sstas</dl> 1302226031Sstas 1303226031Sstas</div> 1304226031Sstas</div><p> 1305226031Sstas<a class="anchor" name="gdaf85983fe8563a63623cd472ff6e2b0"></a><!-- doxytag: member="store.c::krb5_storage_set_max_alloc" ref="gdaf85983fe8563a63623cd472ff6e2b0" args="(krb5_storage *sp, size_t size)" --> 1306226031Sstas<div class="memitem"> 1307226031Sstas<div class="memproto"> 1308226031Sstas <table class="memname"> 1309226031Sstas <tr> 1310226031Sstas <td class="memname">KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_storage_set_max_alloc </td> 1311226031Sstas <td>(</td> 1312226031Sstas <td class="paramtype">krb5_storage * </td> 1313226031Sstas <td class="paramname"> <em>sp</em>, </td> 1314226031Sstas </tr> 1315226031Sstas <tr> 1316226031Sstas <td class="paramkey"></td> 1317226031Sstas <td></td> 1318226031Sstas <td class="paramtype">size_t </td> 1319226031Sstas <td class="paramname"> <em>size</em></td><td> </td> 1320226031Sstas </tr> 1321226031Sstas <tr> 1322226031Sstas <td></td> 1323226031Sstas <td>)</td> 1324226031Sstas <td></td><td></td><td></td> 1325226031Sstas </tr> 1326226031Sstas </table> 1327226031Sstas</div> 1328226031Sstas<div class="memdoc"> 1329226031Sstas 1330226031Sstas<p> 1331226031SstasSet the max alloc value<p> 1332226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1333226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1334226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer set the max allow for </td></tr> 1335226031Sstas <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>maximum size to allocate, use 0 to remove limit </td></tr> 1336226031Sstas </table> 1337226031Sstas</dl> 1338226031Sstas 1339226031Sstas</div> 1340226031Sstas</div><p> 1341226031Sstas<a class="anchor" name="g7722a5408e5be17d0c258cc2e57e4f41"></a><!-- doxytag: member="store.c::krb5_storage_to_data" ref="g7722a5408e5be17d0c258cc2e57e4f41" args="(krb5_storage *sp, krb5_data *data)" --> 1342226031Sstas<div class="memitem"> 1343226031Sstas<div class="memproto"> 1344226031Sstas <table class="memname"> 1345226031Sstas <tr> 1346226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_storage_to_data </td> 1347226031Sstas <td>(</td> 1348226031Sstas <td class="paramtype">krb5_storage * </td> 1349226031Sstas <td class="paramname"> <em>sp</em>, </td> 1350226031Sstas </tr> 1351226031Sstas <tr> 1352226031Sstas <td class="paramkey"></td> 1353226031Sstas <td></td> 1354226031Sstas <td class="paramtype">krb5_data * </td> 1355226031Sstas <td class="paramname"> <em>data</em></td><td> </td> 1356226031Sstas </tr> 1357226031Sstas <tr> 1358226031Sstas <td></td> 1359226031Sstas <td>)</td> 1360226031Sstas <td></td><td></td><td></td> 1361226031Sstas </tr> 1362226031Sstas </table> 1363226031Sstas</div> 1364226031Sstas<div class="memdoc"> 1365226031Sstas 1366226031Sstas<p> 1367226031SstasCopy the contnent of storage<p> 1368226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1369226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1370226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to copy to a data </td></tr> 1371226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>the copied data, free with <a class="el" href="group__krb5.html#gb4b80ac7a8bbab89fe947ae1c7828ea8">krb5_data_free()</a></td></tr> 1372226031Sstas </table> 1373226031Sstas</dl> 1374226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 1375226031Sstas 1376226031Sstas</div> 1377226031Sstas</div><p> 1378226031Sstas<a class="anchor" name="gac8da1cf94bd8f60c32ae41bd30abae6"></a><!-- doxytag: member="store.c::krb5_storage_truncate" ref="gac8da1cf94bd8f60c32ae41bd30abae6" args="(krb5_storage *sp, off_t offset)" --> 1379226031Sstas<div class="memitem"> 1380226031Sstas<div class="memproto"> 1381226031Sstas <table class="memname"> 1382226031Sstas <tr> 1383226031Sstas <td class="memname">KRB5_LIB_FUNCTION int KRB5_LIB_CALL krb5_storage_truncate </td> 1384226031Sstas <td>(</td> 1385226031Sstas <td class="paramtype">krb5_storage * </td> 1386226031Sstas <td class="paramname"> <em>sp</em>, </td> 1387226031Sstas </tr> 1388226031Sstas <tr> 1389226031Sstas <td class="paramkey"></td> 1390226031Sstas <td></td> 1391226031Sstas <td class="paramtype">off_t </td> 1392226031Sstas <td class="paramname"> <em>offset</em></td><td> </td> 1393226031Sstas </tr> 1394226031Sstas <tr> 1395226031Sstas <td></td> 1396226031Sstas <td>)</td> 1397226031Sstas <td></td><td></td><td></td> 1398226031Sstas </tr> 1399226031Sstas </table> 1400226031Sstas</div> 1401226031Sstas<div class="memdoc"> 1402226031Sstas 1403226031Sstas<p> 1404226031SstasTruncate the storage buffer in sp to offset.<p> 1405226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1406226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1407226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to truncate. </td></tr> 1408226031Sstas <tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>the offset to truncate too.</td></tr> 1409226031Sstas </table> 1410226031Sstas</dl> 1411226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>An Kerberos 5 error code. </dd></dl> 1412226031Sstas 1413226031Sstas</div> 1414226031Sstas</div><p> 1415226031Sstas<a class="anchor" name="gbcc9e0d450d9a02773f4a53bf14fefac"></a><!-- doxytag: member="store.c::krb5_storage_write" ref="gbcc9e0d450d9a02773f4a53bf14fefac" args="(krb5_storage *sp, const void *buf, size_t len)" --> 1416226031Sstas<div class="memitem"> 1417226031Sstas<div class="memproto"> 1418226031Sstas <table class="memname"> 1419226031Sstas <tr> 1420226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL krb5_storage_write </td> 1421226031Sstas <td>(</td> 1422226031Sstas <td class="paramtype">krb5_storage * </td> 1423226031Sstas <td class="paramname"> <em>sp</em>, </td> 1424226031Sstas </tr> 1425226031Sstas <tr> 1426226031Sstas <td class="paramkey"></td> 1427226031Sstas <td></td> 1428226031Sstas <td class="paramtype">const void * </td> 1429226031Sstas <td class="paramname"> <em>buf</em>, </td> 1430226031Sstas </tr> 1431226031Sstas <tr> 1432226031Sstas <td class="paramkey"></td> 1433226031Sstas <td></td> 1434226031Sstas <td class="paramtype">size_t </td> 1435226031Sstas <td class="paramname"> <em>len</em></td><td> </td> 1436226031Sstas </tr> 1437226031Sstas <tr> 1438226031Sstas <td></td> 1439226031Sstas <td>)</td> 1440226031Sstas <td></td><td></td><td></td> 1441226031Sstas </tr> 1442226031Sstas </table> 1443226031Sstas</div> 1444226031Sstas<div class="memdoc"> 1445226031Sstas 1446226031Sstas<p> 1447226031SstasWrite to the storage buffer.<p> 1448226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1449226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1450226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1451226031Sstas <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>the buffer to write to the storage buffer </td></tr> 1452226031Sstas <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>the length to write</td></tr> 1453226031Sstas </table> 1454226031Sstas</dl> 1455226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>The length of data written (can be shorter then len), or negative on error. </dd></dl> 1456226031Sstas 1457226031Sstas</div> 1458226031Sstas</div><p> 1459226031Sstas<a class="anchor" name="g36c55f5c0c7b555a189623a49bc478cf"></a><!-- doxytag: member="store.c::krb5_store_address" ref="g36c55f5c0c7b555a189623a49bc478cf" args="(krb5_storage *sp, krb5_address p)" --> 1460226031Sstas<div class="memitem"> 1461226031Sstas<div class="memproto"> 1462226031Sstas <table class="memname"> 1463226031Sstas <tr> 1464226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_address </td> 1465226031Sstas <td>(</td> 1466226031Sstas <td class="paramtype">krb5_storage * </td> 1467226031Sstas <td class="paramname"> <em>sp</em>, </td> 1468226031Sstas </tr> 1469226031Sstas <tr> 1470226031Sstas <td class="paramkey"></td> 1471226031Sstas <td></td> 1472226031Sstas <td class="paramtype">krb5_address </td> 1473226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 1474226031Sstas </tr> 1475226031Sstas <tr> 1476226031Sstas <td></td> 1477226031Sstas <td>)</td> 1478226031Sstas <td></td><td></td><td></td> 1479226031Sstas </tr> 1480226031Sstas </table> 1481226031Sstas</div> 1482226031Sstas<div class="memdoc"> 1483226031Sstas 1484226031Sstas<p> 1485226031SstasWrite a address block to storage.<p> 1486226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1487226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1488226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1489226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the address block to write.</td></tr> 1490226031Sstas </table> 1491226031Sstas</dl> 1492226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1493226031Sstas 1494226031Sstas</div> 1495226031Sstas</div><p> 1496226031Sstas<a class="anchor" name="gd3a1994e44a47e8106334820db9e4946"></a><!-- doxytag: member="store.c::krb5_store_addrs" ref="gd3a1994e44a47e8106334820db9e4946" args="(krb5_storage *sp, krb5_addresses p)" --> 1497226031Sstas<div class="memitem"> 1498226031Sstas<div class="memproto"> 1499226031Sstas <table class="memname"> 1500226031Sstas <tr> 1501226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_addrs </td> 1502226031Sstas <td>(</td> 1503226031Sstas <td class="paramtype">krb5_storage * </td> 1504226031Sstas <td class="paramname"> <em>sp</em>, </td> 1505226031Sstas </tr> 1506226031Sstas <tr> 1507226031Sstas <td class="paramkey"></td> 1508226031Sstas <td></td> 1509226031Sstas <td class="paramtype">krb5_addresses </td> 1510226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 1511226031Sstas </tr> 1512226031Sstas <tr> 1513226031Sstas <td></td> 1514226031Sstas <td>)</td> 1515226031Sstas <td></td><td></td><td></td> 1516226031Sstas </tr> 1517226031Sstas </table> 1518226031Sstas</div> 1519226031Sstas<div class="memdoc"> 1520226031Sstas 1521226031Sstas<p> 1522226031SstasWrite a addresses block to storage.<p> 1523226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1524226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1525226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1526226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the addresses block to write.</td></tr> 1527226031Sstas </table> 1528226031Sstas</dl> 1529226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1530226031Sstas 1531226031Sstas</div> 1532226031Sstas</div><p> 1533226031Sstas<a class="anchor" name="g51b5290d8fd6a75c0142815899e209b2"></a><!-- doxytag: member="store.c::krb5_store_authdata" ref="g51b5290d8fd6a75c0142815899e209b2" args="(krb5_storage *sp, krb5_authdata auth)" --> 1534226031Sstas<div class="memitem"> 1535226031Sstas<div class="memproto"> 1536226031Sstas <table class="memname"> 1537226031Sstas <tr> 1538226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_authdata </td> 1539226031Sstas <td>(</td> 1540226031Sstas <td class="paramtype">krb5_storage * </td> 1541226031Sstas <td class="paramname"> <em>sp</em>, </td> 1542226031Sstas </tr> 1543226031Sstas <tr> 1544226031Sstas <td class="paramkey"></td> 1545226031Sstas <td></td> 1546226031Sstas <td class="paramtype">krb5_authdata </td> 1547226031Sstas <td class="paramname"> <em>auth</em></td><td> </td> 1548226031Sstas </tr> 1549226031Sstas <tr> 1550226031Sstas <td></td> 1551226031Sstas <td>)</td> 1552226031Sstas <td></td><td></td><td></td> 1553226031Sstas </tr> 1554226031Sstas </table> 1555226031Sstas</div> 1556226031Sstas<div class="memdoc"> 1557226031Sstas 1558226031Sstas<p> 1559226031SstasWrite a auth data block to storage.<p> 1560226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1561226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1562226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1563226031Sstas <tr><td valign="top"></td><td valign="top"><em>auth</em> </td><td>the auth data block to write.</td></tr> 1564226031Sstas </table> 1565226031Sstas</dl> 1566226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1567226031Sstas 1568226031Sstas</div> 1569226031Sstas</div><p> 1570226031Sstas<a class="anchor" name="g78a861ff5fb0090d6c05046ef2cff117"></a><!-- doxytag: member="store.c::krb5_store_creds" ref="g78a861ff5fb0090d6c05046ef2cff117" args="(krb5_storage *sp, krb5_creds *creds)" --> 1571226031Sstas<div class="memitem"> 1572226031Sstas<div class="memproto"> 1573226031Sstas <table class="memname"> 1574226031Sstas <tr> 1575226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_creds </td> 1576226031Sstas <td>(</td> 1577226031Sstas <td class="paramtype">krb5_storage * </td> 1578226031Sstas <td class="paramname"> <em>sp</em>, </td> 1579226031Sstas </tr> 1580226031Sstas <tr> 1581226031Sstas <td class="paramkey"></td> 1582226031Sstas <td></td> 1583226031Sstas <td class="paramtype">krb5_creds * </td> 1584226031Sstas <td class="paramname"> <em>creds</em></td><td> </td> 1585226031Sstas </tr> 1586226031Sstas <tr> 1587226031Sstas <td></td> 1588226031Sstas <td>)</td> 1589226031Sstas <td></td><td></td><td></td> 1590226031Sstas </tr> 1591226031Sstas </table> 1592226031Sstas</div> 1593226031Sstas<div class="memdoc"> 1594226031Sstas 1595226031Sstas<p> 1596226031SstasWrite a credentials block to storage.<p> 1597226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1598226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1599226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1600226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>the creds block to write.</td></tr> 1601226031Sstas </table> 1602226031Sstas</dl> 1603226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1604226031Sstas 1605226031Sstas</div> 1606226031Sstas</div><p> 1607226031Sstas<a class="anchor" name="g4a3550d1bb7b7641a8c5904e2dcf1a16"></a><!-- doxytag: member="store.c::krb5_store_creds_tag" ref="g4a3550d1bb7b7641a8c5904e2dcf1a16" args="(krb5_storage *sp, krb5_creds *creds)" --> 1608226031Sstas<div class="memitem"> 1609226031Sstas<div class="memproto"> 1610226031Sstas <table class="memname"> 1611226031Sstas <tr> 1612226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_creds_tag </td> 1613226031Sstas <td>(</td> 1614226031Sstas <td class="paramtype">krb5_storage * </td> 1615226031Sstas <td class="paramname"> <em>sp</em>, </td> 1616226031Sstas </tr> 1617226031Sstas <tr> 1618226031Sstas <td class="paramkey"></td> 1619226031Sstas <td></td> 1620226031Sstas <td class="paramtype">krb5_creds * </td> 1621226031Sstas <td class="paramname"> <em>creds</em></td><td> </td> 1622226031Sstas </tr> 1623226031Sstas <tr> 1624226031Sstas <td></td> 1625226031Sstas <td>)</td> 1626226031Sstas <td></td><td></td><td></td> 1627226031Sstas </tr> 1628226031Sstas </table> 1629226031Sstas</div> 1630226031Sstas<div class="memdoc"> 1631226031Sstas 1632226031Sstas<p> 1633226031SstasWrite a tagged credentials block to storage.<p> 1634226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1635226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1636226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1637226031Sstas <tr><td valign="top"></td><td valign="top"><em>creds</em> </td><td>the creds block to write.</td></tr> 1638226031Sstas </table> 1639226031Sstas</dl> 1640226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1641226031Sstas 1642226031Sstas</div> 1643226031Sstas</div><p> 1644226031Sstas<a class="anchor" name="g49be426cc2c3e5b10d87cb7643069f04"></a><!-- doxytag: member="store.c::krb5_store_data" ref="g49be426cc2c3e5b10d87cb7643069f04" args="(krb5_storage *sp, krb5_data data)" --> 1645226031Sstas<div class="memitem"> 1646226031Sstas<div class="memproto"> 1647226031Sstas <table class="memname"> 1648226031Sstas <tr> 1649226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_data </td> 1650226031Sstas <td>(</td> 1651226031Sstas <td class="paramtype">krb5_storage * </td> 1652226031Sstas <td class="paramname"> <em>sp</em>, </td> 1653226031Sstas </tr> 1654226031Sstas <tr> 1655226031Sstas <td class="paramkey"></td> 1656226031Sstas <td></td> 1657226031Sstas <td class="paramtype">krb5_data </td> 1658226031Sstas <td class="paramname"> <em>data</em></td><td> </td> 1659226031Sstas </tr> 1660226031Sstas <tr> 1661226031Sstas <td></td> 1662226031Sstas <td>)</td> 1663226031Sstas <td></td><td></td><td></td> 1664226031Sstas </tr> 1665226031Sstas </table> 1666226031Sstas</div> 1667226031Sstas<div class="memdoc"> 1668226031Sstas 1669226031Sstas<p> 1670226031SstasStore a data to the storage. The data is stored with an int32 as lenght plus the data (not padded).<p> 1671226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1672226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1673226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1674226031Sstas <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>the buffer to store.</td></tr> 1675226031Sstas </table> 1676226031Sstas</dl> 1677226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1678226031Sstas 1679226031Sstas</div> 1680226031Sstas</div><p> 1681226031Sstas<a class="anchor" name="g41fd71dc201db2872e59016a1652bf6c"></a><!-- doxytag: member="store.c::krb5_store_int16" ref="g41fd71dc201db2872e59016a1652bf6c" args="(krb5_storage *sp, int16_t value)" --> 1682226031Sstas<div class="memitem"> 1683226031Sstas<div class="memproto"> 1684226031Sstas <table class="memname"> 1685226031Sstas <tr> 1686226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_int16 </td> 1687226031Sstas <td>(</td> 1688226031Sstas <td class="paramtype">krb5_storage * </td> 1689226031Sstas <td class="paramname"> <em>sp</em>, </td> 1690226031Sstas </tr> 1691226031Sstas <tr> 1692226031Sstas <td class="paramkey"></td> 1693226031Sstas <td></td> 1694226031Sstas <td class="paramtype">int16_t </td> 1695226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 1696226031Sstas </tr> 1697226031Sstas <tr> 1698226031Sstas <td></td> 1699226031Sstas <td>)</td> 1700226031Sstas <td></td><td></td><td></td> 1701226031Sstas </tr> 1702226031Sstas </table> 1703226031Sstas</div> 1704226031Sstas<div class="memdoc"> 1705226031Sstas 1706226031Sstas<p> 1707226031SstasStore a int16 to storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 1708226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1709226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1710226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 1711226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 1712226031Sstas </table> 1713226031Sstas</dl> 1714226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 1715226031Sstas 1716226031Sstas</div> 1717226031Sstas</div><p> 1718226031Sstas<a class="anchor" name="gf20f743f1d41879479c4a9d7c0f05339"></a><!-- doxytag: member="store.c::krb5_store_int32" ref="gf20f743f1d41879479c4a9d7c0f05339" args="(krb5_storage *sp, int32_t value)" --> 1719226031Sstas<div class="memitem"> 1720226031Sstas<div class="memproto"> 1721226031Sstas <table class="memname"> 1722226031Sstas <tr> 1723226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_int32 </td> 1724226031Sstas <td>(</td> 1725226031Sstas <td class="paramtype">krb5_storage * </td> 1726226031Sstas <td class="paramname"> <em>sp</em>, </td> 1727226031Sstas </tr> 1728226031Sstas <tr> 1729226031Sstas <td class="paramkey"></td> 1730226031Sstas <td></td> 1731226031Sstas <td class="paramtype">int32_t </td> 1732226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 1733226031Sstas </tr> 1734226031Sstas <tr> 1735226031Sstas <td></td> 1736226031Sstas <td>)</td> 1737226031Sstas <td></td><td></td><td></td> 1738226031Sstas </tr> 1739226031Sstas </table> 1740226031Sstas</div> 1741226031Sstas<div class="memdoc"> 1742226031Sstas 1743226031Sstas<p> 1744226031SstasStore a int32 to storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 1745226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1746226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1747226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 1748226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 1749226031Sstas </table> 1750226031Sstas</dl> 1751226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 1752226031Sstas 1753226031Sstas</div> 1754226031Sstas</div><p> 1755226031Sstas<a class="anchor" name="g39925711ba540216111a8b84f4a1650a"></a><!-- doxytag: member="store.c::krb5_store_int8" ref="g39925711ba540216111a8b84f4a1650a" args="(krb5_storage *sp, int8_t value)" --> 1756226031Sstas<div class="memitem"> 1757226031Sstas<div class="memproto"> 1758226031Sstas <table class="memname"> 1759226031Sstas <tr> 1760226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_int8 </td> 1761226031Sstas <td>(</td> 1762226031Sstas <td class="paramtype">krb5_storage * </td> 1763226031Sstas <td class="paramname"> <em>sp</em>, </td> 1764226031Sstas </tr> 1765226031Sstas <tr> 1766226031Sstas <td class="paramkey"></td> 1767226031Sstas <td></td> 1768226031Sstas <td class="paramtype">int8_t </td> 1769226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 1770226031Sstas </tr> 1771226031Sstas <tr> 1772226031Sstas <td></td> 1773226031Sstas <td>)</td> 1774226031Sstas <td></td><td></td><td></td> 1775226031Sstas </tr> 1776226031Sstas </table> 1777226031Sstas</div> 1778226031Sstas<div class="memdoc"> 1779226031Sstas 1780226031Sstas<p> 1781226031SstasStore a int8 to storage.<p> 1782226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1783226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1784226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 1785226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 1786226031Sstas </table> 1787226031Sstas</dl> 1788226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 1789226031Sstas 1790226031Sstas</div> 1791226031Sstas</div><p> 1792226031Sstas<a class="anchor" name="g54b3e661a9b7b267ba5df17b2e9a59f9"></a><!-- doxytag: member="store.c::krb5_store_keyblock" ref="g54b3e661a9b7b267ba5df17b2e9a59f9" args="(krb5_storage *sp, krb5_keyblock p)" --> 1793226031Sstas<div class="memitem"> 1794226031Sstas<div class="memproto"> 1795226031Sstas <table class="memname"> 1796226031Sstas <tr> 1797226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_keyblock </td> 1798226031Sstas <td>(</td> 1799226031Sstas <td class="paramtype">krb5_storage * </td> 1800226031Sstas <td class="paramname"> <em>sp</em>, </td> 1801226031Sstas </tr> 1802226031Sstas <tr> 1803226031Sstas <td class="paramkey"></td> 1804226031Sstas <td></td> 1805226031Sstas <td class="paramtype">krb5_keyblock </td> 1806226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 1807226031Sstas </tr> 1808226031Sstas <tr> 1809226031Sstas <td></td> 1810226031Sstas <td>)</td> 1811226031Sstas <td></td><td></td><td></td> 1812226031Sstas </tr> 1813226031Sstas </table> 1814226031Sstas</div> 1815226031Sstas<div class="memdoc"> 1816226031Sstas 1817226031Sstas<p> 1818226031SstasStore a keyblock to the storage.<p> 1819226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1820226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1821226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1822226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the keyblock to write</td></tr> 1823226031Sstas </table> 1824226031Sstas</dl> 1825226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1826226031Sstas 1827226031Sstas</div> 1828226031Sstas</div><p> 1829226031Sstas<a class="anchor" name="g54ca232c7ccaf71e2a26e42196dd9780"></a><!-- doxytag: member="store.c::krb5_store_principal" ref="g54ca232c7ccaf71e2a26e42196dd9780" args="(krb5_storage *sp, krb5_const_principal p)" --> 1830226031Sstas<div class="memitem"> 1831226031Sstas<div class="memproto"> 1832226031Sstas <table class="memname"> 1833226031Sstas <tr> 1834226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_principal </td> 1835226031Sstas <td>(</td> 1836226031Sstas <td class="paramtype">krb5_storage * </td> 1837226031Sstas <td class="paramname"> <em>sp</em>, </td> 1838226031Sstas </tr> 1839226031Sstas <tr> 1840226031Sstas <td class="paramkey"></td> 1841226031Sstas <td></td> 1842226031Sstas <td class="paramtype">krb5_const_principal </td> 1843226031Sstas <td class="paramname"> <em>p</em></td><td> </td> 1844226031Sstas </tr> 1845226031Sstas <tr> 1846226031Sstas <td></td> 1847226031Sstas <td>)</td> 1848226031Sstas <td></td><td></td><td></td> 1849226031Sstas </tr> 1850226031Sstas </table> 1851226031Sstas</div> 1852226031Sstas<div class="memdoc"> 1853226031Sstas 1854226031Sstas<p> 1855226031SstasWrite a principal block to storage.<p> 1856226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1857226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1858226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1859226031Sstas <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>the principal block to write.</td></tr> 1860226031Sstas </table> 1861226031Sstas</dl> 1862226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1863226031Sstas 1864226031Sstas</div> 1865226031Sstas</div><p> 1866226031Sstas<a class="anchor" name="g7d0904deeaf23dd845966b954e4b5355"></a><!-- doxytag: member="store.c::krb5_store_string" ref="g7d0904deeaf23dd845966b954e4b5355" args="(krb5_storage *sp, const char *s)" --> 1867226031Sstas<div class="memitem"> 1868226031Sstas<div class="memproto"> 1869226031Sstas <table class="memname"> 1870226031Sstas <tr> 1871226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_string </td> 1872226031Sstas <td>(</td> 1873226031Sstas <td class="paramtype">krb5_storage * </td> 1874226031Sstas <td class="paramname"> <em>sp</em>, </td> 1875226031Sstas </tr> 1876226031Sstas <tr> 1877226031Sstas <td class="paramkey"></td> 1878226031Sstas <td></td> 1879226031Sstas <td class="paramtype">const char * </td> 1880226031Sstas <td class="paramname"> <em>s</em></td><td> </td> 1881226031Sstas </tr> 1882226031Sstas <tr> 1883226031Sstas <td></td> 1884226031Sstas <td>)</td> 1885226031Sstas <td></td><td></td><td></td> 1886226031Sstas </tr> 1887226031Sstas </table> 1888226031Sstas</div> 1889226031Sstas<div class="memdoc"> 1890226031Sstas 1891226031Sstas<p> 1892226031SstasStore a string to the buffer. The data is formated as an len:uint32 plus the string itself (not padded).<p> 1893226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1894226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1895226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1896226031Sstas <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>the string to store.</td></tr> 1897226031Sstas </table> 1898226031Sstas</dl> 1899226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1900226031Sstas 1901226031Sstas</div> 1902226031Sstas</div><p> 1903226031Sstas<a class="anchor" name="g60c3e526288efc7b8a751f43ac254aad"></a><!-- doxytag: member="store.c::krb5_store_stringz" ref="g60c3e526288efc7b8a751f43ac254aad" args="(krb5_storage *sp, const char *s)" --> 1904226031Sstas<div class="memitem"> 1905226031Sstas<div class="memproto"> 1906226031Sstas <table class="memname"> 1907226031Sstas <tr> 1908226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_stringz </td> 1909226031Sstas <td>(</td> 1910226031Sstas <td class="paramtype">krb5_storage * </td> 1911226031Sstas <td class="paramname"> <em>sp</em>, </td> 1912226031Sstas </tr> 1913226031Sstas <tr> 1914226031Sstas <td class="paramkey"></td> 1915226031Sstas <td></td> 1916226031Sstas <td class="paramtype">const char * </td> 1917226031Sstas <td class="paramname"> <em>s</em></td><td> </td> 1918226031Sstas </tr> 1919226031Sstas <tr> 1920226031Sstas <td></td> 1921226031Sstas <td>)</td> 1922226031Sstas <td></td><td></td><td></td> 1923226031Sstas </tr> 1924226031Sstas </table> 1925226031Sstas</div> 1926226031Sstas<div class="memdoc"> 1927226031Sstas 1928226031Sstas<p> 1929226031SstasStore a zero terminated string to the buffer. The data is stored one character at a time until a NUL is stored.<p> 1930226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1931226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1932226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1933226031Sstas <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>the string to store.</td></tr> 1934226031Sstas </table> 1935226031Sstas</dl> 1936226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1937226031Sstas 1938226031Sstas</div> 1939226031Sstas</div><p> 1940226031Sstas<a class="anchor" name="g3a0bdbf713eea83651b6f9845ea24900"></a><!-- doxytag: member="store.c::krb5_store_times" ref="g3a0bdbf713eea83651b6f9845ea24900" args="(krb5_storage *sp, krb5_times times)" --> 1941226031Sstas<div class="memitem"> 1942226031Sstas<div class="memproto"> 1943226031Sstas <table class="memname"> 1944226031Sstas <tr> 1945226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_times </td> 1946226031Sstas <td>(</td> 1947226031Sstas <td class="paramtype">krb5_storage * </td> 1948226031Sstas <td class="paramname"> <em>sp</em>, </td> 1949226031Sstas </tr> 1950226031Sstas <tr> 1951226031Sstas <td class="paramkey"></td> 1952226031Sstas <td></td> 1953226031Sstas <td class="paramtype">krb5_times </td> 1954226031Sstas <td class="paramname"> <em>times</em></td><td> </td> 1955226031Sstas </tr> 1956226031Sstas <tr> 1957226031Sstas <td></td> 1958226031Sstas <td>)</td> 1959226031Sstas <td></td><td></td><td></td> 1960226031Sstas </tr> 1961226031Sstas </table> 1962226031Sstas</div> 1963226031Sstas<div class="memdoc"> 1964226031Sstas 1965226031Sstas<p> 1966226031SstasWrite a times block to storage.<p> 1967226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 1968226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 1969226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage buffer to write to </td></tr> 1970226031Sstas <tr><td valign="top"></td><td valign="top"><em>times</em> </td><td>the times block to write.</td></tr> 1971226031Sstas </table> 1972226031Sstas</dl> 1973226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, a Kerberos 5 error code on failure. </dd></dl> 1974226031Sstas 1975226031Sstas</div> 1976226031Sstas</div><p> 1977226031Sstas<a class="anchor" name="g80accfb51fadeb1b19584634701a81f7"></a><!-- doxytag: member="store.c::krb5_store_uint16" ref="g80accfb51fadeb1b19584634701a81f7" args="(krb5_storage *sp, uint16_t value)" --> 1978226031Sstas<div class="memitem"> 1979226031Sstas<div class="memproto"> 1980226031Sstas <table class="memname"> 1981226031Sstas <tr> 1982226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_uint16 </td> 1983226031Sstas <td>(</td> 1984226031Sstas <td class="paramtype">krb5_storage * </td> 1985226031Sstas <td class="paramname"> <em>sp</em>, </td> 1986226031Sstas </tr> 1987226031Sstas <tr> 1988226031Sstas <td class="paramkey"></td> 1989226031Sstas <td></td> 1990226031Sstas <td class="paramtype">uint16_t </td> 1991226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 1992226031Sstas </tr> 1993226031Sstas <tr> 1994226031Sstas <td></td> 1995226031Sstas <td>)</td> 1996226031Sstas <td></td><td></td><td></td> 1997226031Sstas </tr> 1998226031Sstas </table> 1999226031Sstas</div> 2000226031Sstas<div class="memdoc"> 2001226031Sstas 2002226031Sstas<p> 2003226031SstasStore a uint16 to storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 2004226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2005226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2006226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 2007226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 2008226031Sstas </table> 2009226031Sstas</dl> 2010226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 2011226031Sstas 2012226031Sstas</div> 2013226031Sstas</div><p> 2014226031Sstas<a class="anchor" name="gc844df1aadfa6d0b38ffd93413aa1fd8"></a><!-- doxytag: member="store.c::krb5_store_uint32" ref="gc844df1aadfa6d0b38ffd93413aa1fd8" args="(krb5_storage *sp, uint32_t value)" --> 2015226031Sstas<div class="memitem"> 2016226031Sstas<div class="memproto"> 2017226031Sstas <table class="memname"> 2018226031Sstas <tr> 2019226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_uint32 </td> 2020226031Sstas <td>(</td> 2021226031Sstas <td class="paramtype">krb5_storage * </td> 2022226031Sstas <td class="paramname"> <em>sp</em>, </td> 2023226031Sstas </tr> 2024226031Sstas <tr> 2025226031Sstas <td class="paramkey"></td> 2026226031Sstas <td></td> 2027226031Sstas <td class="paramtype">uint32_t </td> 2028226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 2029226031Sstas </tr> 2030226031Sstas <tr> 2031226031Sstas <td></td> 2032226031Sstas <td>)</td> 2033226031Sstas <td></td><td></td><td></td> 2034226031Sstas </tr> 2035226031Sstas </table> 2036226031Sstas</div> 2037226031Sstas<div class="memdoc"> 2038226031Sstas 2039226031Sstas<p> 2040226031SstasStore a uint32 to storage, byte order is controlled by the settings on the storage, see <a class="el" href="group__krb5__storage.html#g8f3e170aeb4a9108b3bfeb550184022c">krb5_storage_set_byteorder()</a>.<p> 2041226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2042226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2043226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 2044226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 2045226031Sstas </table> 2046226031Sstas</dl> 2047226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 2048226031Sstas 2049226031Sstas</div> 2050226031Sstas</div><p> 2051226031Sstas<a class="anchor" name="gb9856e6211e292b4c9d4c96941c6948e"></a><!-- doxytag: member="store.c::krb5_store_uint8" ref="gb9856e6211e292b4c9d4c96941c6948e" args="(krb5_storage *sp, uint8_t value)" --> 2052226031Sstas<div class="memitem"> 2053226031Sstas<div class="memproto"> 2054226031Sstas <table class="memname"> 2055226031Sstas <tr> 2056226031Sstas <td class="memname">KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_store_uint8 </td> 2057226031Sstas <td>(</td> 2058226031Sstas <td class="paramtype">krb5_storage * </td> 2059226031Sstas <td class="paramname"> <em>sp</em>, </td> 2060226031Sstas </tr> 2061226031Sstas <tr> 2062226031Sstas <td class="paramkey"></td> 2063226031Sstas <td></td> 2064226031Sstas <td class="paramtype">uint8_t </td> 2065226031Sstas <td class="paramname"> <em>value</em></td><td> </td> 2066226031Sstas </tr> 2067226031Sstas <tr> 2068226031Sstas <td></td> 2069226031Sstas <td>)</td> 2070226031Sstas <td></td><td></td><td></td> 2071226031Sstas </tr> 2072226031Sstas </table> 2073226031Sstas</div> 2074226031Sstas<div class="memdoc"> 2075226031Sstas 2076226031Sstas<p> 2077226031SstasStore a uint8 to storage.<p> 2078226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 2079226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 2080226031Sstas <tr><td valign="top"></td><td valign="top"><em>sp</em> </td><td>the storage to write too </td></tr> 2081226031Sstas <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the value to store</td></tr> 2082226031Sstas </table> 2083226031Sstas</dl> 2084226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for success, or a Kerberos 5 error code on failure. </dd></dl> 2085226031Sstas 2086226031Sstas</div> 2087226031Sstas</div><p> 2088226031Sstas</div> 2089226031Sstas<hr size="1"><address style="text-align: right;"><small> 2090226031SstasGenerated on Sat Jul 30 13:45:40 2011 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> 2091226031Sstas</body> 2092226031Sstas</html> 2093