📄 cradiusattribute_8h-source.html
字号:
00201 <span class="comment">// ===========================</span>00202 00204 00207 ACE_UINT32 <a class="code" href="classCRadiusAttribute.html#a12">getNumber</a>(<span class="keywordtype">void</span>);00208 00210 00214 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a13">setNumber</a>(ACE_UINT32 p_value);00215 00216 00218 00221 <span class="keyword">struct </span>in_addr getIPAddress(void);00222 00224 00228 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a15">setIPAddress</a>(<span class="keyword">struct</span> in_addr p_value);00229 00230 00232 00241 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a16">getString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * & p_data, ACE_UINT16 & p_length);00242 00244 00252 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a17">setString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * p_data, ACE_UINT16 p_length);00253 00254 00255 <span class="comment">// ===========================</span>00256 <span class="comment">// Vendor-Specific attribute</span>00257 <span class="comment">// ===========================</span>00258 00260 00263 ACE_UINT32 <a class="code" href="classCRadiusAttribute.html#a18">getVendorId</a>(<span class="keywordtype">void</span>);00264 00266 00270 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a19">setVendorId</a>(ACE_UINT32 p_vendorId);00271 00273 00282 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a20">getVendorString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * & p_data, ACE_UINT16 & p_length);00283 00285 00293 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a21">setVendorString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * p_data, ACE_UINT16 p_length);00294 00295 00297 00300 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classCRadiusAttribute.html#a22">getVendorType</a>();00301 00303 00307 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a23">setVendorType</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> p_value);00308 00309 00311 00314 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classCRadiusAttribute.html#a24">getVendorLength</a>();00315 00317 00321 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a25">setVendorLength</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> p_length);00322 00323 00325 00328 ACE_UINT32 <a class="code" href="classCRadiusAttribute.html#a26">getVendorExtNumber</a>();00329 00331 00335 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a27">setVendorExtNumber</a>(ACE_UINT32 p_value);00336 00337 00339 00342 <span class="keyword">struct </span>in_addr getVendorExtAddress(); 00343 00345 00349 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a29">setVendorExtAddress</a>(<span class="keyword">struct</span> in_addr p_address);00350 00351 00353 00362 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a30">getVendorExtString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * & p_data, ACE_UINT16 & p_length);00363 00365 00373 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a31">setVendorExtString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * & p_data, ACE_UINT16 & p_length);00374 00375 00376 <span class="comment">// ===========================</span>00377 <span class="comment">// User-Password attribute</span>00378 <span class="comment">// ===========================</span>00379 00381 00397 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a32">getUserPassword</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> p_data[], ACE_UINT16 & p_length, 00398 <a class="code" href="classCRadiusSecret.html">CRadiusSecret</a> * p_secret = NULL);00399 00401 00410 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a33">setUserPassword</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * p_data, ACE_UINT16 p_length);00411 00412 <span class="comment">// Encode raw data of User-Password attribute</span>00413 <span class="comment">/*</span>00414 <span class="comment"> * We need this function in order to re-encode User-Password attribute with new secret key</span>00415 <span class="comment"> * when packet is retransmitted through new connection; application should not use this API.</span>00416 <span class="comment"> */</span>00417 <span class="keywordtype">int</span> encodeUserPassword(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * p_data, ACE_UINT16 p_length);00418 00419 00420 <span class="comment">// ===========================</span>00421 <span class="comment">// CHAP-Password attribute</span>00422 <span class="comment">// ===========================</span>00423 00425 00428 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classCRadiusAttribute.html#a35">getChapIdentifier</a>(<span class="keywordtype">void</span>);00429 00431 00435 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a36">setChapIdentifier</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> p_chapId);00436 00438 00447 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a37">getChapString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * & p_data, ACE_UINT16 & p_length);00448 00450 00458 <span class="keywordtype">int</span> <a class="code" href="classCRadiusAttribute.html#a38">setChapString</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * p_data, ACE_UINT16 p_length);00459 00460 00461 00462 <span class="keyword">private</span>:00463 00464 <span class="comment">// Get pointer to the attribute raw data</span>00465 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> * getRawData(<span class="keywordtype">void</span>);00466 00467 <span class="comment">// Types of attribute data</span>00468 <span class="keyword">typedef</span> <span class="keyword">enum</span> AttributeFormat_e00469 {00470 E_ATTR_FORMAT_INTEGER,00471 E_ATTR_FORMAT_IP_ADDRESS,00472 E_ATTR_FORMAT_STRING,00473 E_ATTR_FORMAT_VENDOR_SPECIFIC,00474 E_ATTR_FORMAT_USER_PASSWORD,00475 E_ATTR_FORMAT_CHAP_PASSWORD00476 };00477 00478 <span class="comment">// Dump attribute in readable text format to the text buffer</span>00484 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCRadiusAttribute.html#a2">dump</a>(<span class="keywordtype">char</span> * p_buf, AttributeFormat_e p_format);00485 00487 00488 <span class="comment">// Pointer to the RADIUS packet that this attribute belongs to</span>00489 <a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * m_packet;00490 00491 <span class="comment">// Offset of the attribute inside the RADIUS packet</span>00492 ACE_UINT16 m_offset;00493 };00494 00495 <span class="preprocessor">#endif // _CRADIUSATTRIBUTE_H__</span>00496 <span class="preprocessor"></span></div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 30 11:00:57 2005 for ace-radius by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7-20040704 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -