Sophie

Sophie

distrib > Fedora > 20 > x86_64 > media > updates > by-pkgid > c579c38484b8ffa244858626df1128ca > files > 135

libhtp-doc-0.5.6-3.fc20.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>HTP: htp_parsers.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">HTP
   &#160;<span id="projectnumber">0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_5edaa2d740570af18be6e40ef0aff597.html">htp</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">htp_parsers.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="htp__private_8h_source.html">htp_private.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a237aaf4069198820e21015a9efb28ed6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__parsers_8c.html#a237aaf4069198820e21015a9efb28ed6">htp_parse_protocol</a> (<a class="el" href="bstr_8h.html#ad24e3759c8d17c13ae2f05d9dde4d0b6">bstr</a> *protocol)</td></tr>
<tr class="separator:a237aaf4069198820e21015a9efb28ed6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ad81779ba8a5a89d48455078d5aedc9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__parsers_8c.html#a2ad81779ba8a5a89d48455078d5aedc9">htp_parse_status</a> (<a class="el" href="bstr_8h.html#ad24e3759c8d17c13ae2f05d9dde4d0b6">bstr</a> *status)</td></tr>
<tr class="separator:a2ad81779ba8a5a89d48455078d5aedc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ce81b909ad3720c21dc675f35b95767"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__parsers_8c.html#a0ce81b909ad3720c21dc675f35b95767">htp_parse_authorization_digest</a> (<a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *connp, <a class="el" href="structhtp__header__t.html">htp_header_t</a> *auth_header)</td></tr>
<tr class="separator:a0ce81b909ad3720c21dc675f35b95767"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83f1fbe81d55cb3ef6402bc069b5baca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__parsers_8c.html#a83f1fbe81d55cb3ef6402bc069b5baca">htp_parse_authorization_basic</a> (<a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *connp, <a class="el" href="structhtp__header__t.html">htp_header_t</a> *auth_header)</td></tr>
<tr class="separator:a83f1fbe81d55cb3ef6402bc069b5baca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8acc6c49e7f95eb1cbdf088dc5df9ae4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="htp__parsers_8c.html#a8acc6c49e7f95eb1cbdf088dc5df9ae4">htp_parse_authorization</a> (<a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *connp)</td></tr>
<tr class="separator:a8acc6c49e7f95eb1cbdf088dc5df9ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Ivan Ristic <a href="#" onclick="location.href='mai'+'lto:'+'iva'+'nr'+'@we'+'bk'+'rea'+'to'+'r.c'+'om'; return false;">ivanr<span style="display: none;">.nosp@m.</span>@web<span style="display: none;">.nosp@m.</span>kreat<span style="display: none;">.nosp@m.</span>or.c<span style="display: none;">.nosp@m.</span>om</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a8acc6c49e7f95eb1cbdf088dc5df9ae4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int htp_parse_authorization </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *&#160;</td>
          <td class="paramname"><em>connp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parses Authorization request header.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">connp</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a83f1fbe81d55cb3ef6402bc069b5baca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int htp_parse_authorization_basic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *&#160;</td>
          <td class="paramname"><em>connp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structhtp__header__t.html">htp_header_t</a> *&#160;</td>
          <td class="paramname"><em>auth_header</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parses Basic Authorization request header.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">connp</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">auth_header</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0ce81b909ad3720c21dc675f35b95767"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int htp_parse_authorization_digest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structhtp__connp__t.html">htp_connp_t</a> *&#160;</td>
          <td class="paramname"><em>connp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structhtp__header__t.html">htp_header_t</a> *&#160;</td>
          <td class="paramname"><em>auth_header</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parses Digest Authorization request header.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">connp</td><td></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">auth_header</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a237aaf4069198820e21015a9efb28ed6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int htp_parse_protocol </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="bstr_8h.html#ad24e3759c8d17c13ae2f05d9dde4d0b6">bstr</a> *&#160;</td>
          <td class="paramname"><em>protocol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determines protocol number from a textual representation (i.e., "HTTP/1.1"). This function will only understand a properly formatted protocol information. It does not try to be flexible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">protocol</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Protocol version or PROTOCOL_UNKNOWN. </dd></dl>

</div>
</div>
<a class="anchor" id="a2ad81779ba8a5a89d48455078d5aedc9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int htp_parse_status </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="bstr_8h.html#ad24e3759c8d17c13ae2f05d9dde4d0b6">bstr</a> *&#160;</td>
          <td class="paramname"><em>status</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determines the numerical value of a response status given as a string.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">status</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status code on success, or -1 on error. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>