security__cache_8hh_source.html 18.9 KB
Newer Older
garciay's avatar
garciay committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ETSI STF525 / Internal Testing test suite: /home/vagrant/TriesAndDelete/etsi_its/framework/include/security_cache.hh Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ETSI STF525 / Internal Testing test suite
   </div>
   <div id="projectbrief">This project provides an internal testing test suite and its associated Test Adapter/Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_dd40116cd1cfebdc77a7c7114b29912e.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">security_cache.hh</div>  </div>
</div><!--header-->
<div class="contents">
<a href="security__cache_8hh.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="security__db__record_8hh.html">security_db_record.hh</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">class </span>OCTETSTRING;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">class </span>CHARSTRING;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classsecurity__cache.html">   17</a></span>&#160;<span class="keyword">class </span><a class="code" href="classsecurity__cache.html">security_cache</a> {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">protected</span>: </div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="comment">// TODO Enforce with const security_cache_record, and const std::string</span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classsecurity__cache.html#aad590aefcb46e35aad7ee4cacf4de7ee">   20</a></span>&#160;  std::map&lt;std::string, std::unique_ptr&lt;security_db_record&gt; &gt; <a class="code" href="classsecurity__cache.html#aad590aefcb46e35aad7ee4cacf4de7ee">_certificates</a>; </div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classsecurity__cache.html#aa8afb2e88badf49a0a036ca0230f0141">   21</a></span>&#160;  std::map&lt;std::vector&lt;unsigned char&gt;, std::string&gt; <a class="code" href="classsecurity__cache.html#aa8afb2e88badf49a0a036ca0230f0141">_hashed_id8s</a>; </div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  </div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">public</span>: </div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <a class="code" href="classsecurity__cache.html#a136bab72a5f73d09ecf6043242051ec7">security_cache</a>();</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classsecurity__cache.html#ab2a193e2bd8cd5ff02d3ec05c10fb068">~security_cache</a>();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#ad83b2df3cb746e7575bf8a6db62ec1f5">get_certificate_id</a>(<span class="keyword">const</span> OCTETSTRING&amp; p_hashed_id8, std::string&amp; p_certificate_id) <span class="keyword">const</span>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#addbf34c8bfa6e3a1305d8382bb5c8bc4">get_certificate</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_certificate) <span class="keyword">const</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#addbf34c8bfa6e3a1305d8382bb5c8bc4">get_certificate</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, IEEE1609dot2::CertificateBase&amp; p_certificate) <span class="keyword">const</span>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a143f411cd85b81f7b552ae3f1931392a">get_issuer</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_hashed_id_issuer) <span class="keyword">const</span>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#acd2271d39a88a4b483be8723fecab9ce">get_hashed_id</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_hashed_id) <span class="keyword">const</span>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a526fca95f1d832994d6dc08cb053dc84">get_private_key</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_private_key) <span class="keyword">const</span>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a0e5da4ac16057cfddd2dbb1d5c073337">get_public_keys</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_public_key_x, OCTETSTRING&amp; p_public_key_y) <span class="keyword">const</span>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a7d2a42c7c16ba9f59c0b094f0f8ea388">get_private_enc_key</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_private_enc_key) <span class="keyword">const</span>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a89e47e6d61dde7b6bae2f8d7f30c6169">get_public_enc_keys</a>(<span class="keyword">const</span> std::string&amp; p_certificate_id, OCTETSTRING&amp; p_public_enc_key_x, OCTETSTRING&amp; p_public_enc_key_y) <span class="keyword">const</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#a8f7063b39782b92a8d8134658aa8db97">store_certificate</a>(<span class="keyword">const</span> CHARSTRING&amp; p_cert_id, <span class="keyword">const</span> OCTETSTRING&amp; p_cert, <span class="keyword">const</span> OCTETSTRING&amp; p_private_key, <span class="keyword">const</span> OCTETSTRING&amp; p_public_key_x, <span class="keyword">const</span> OCTETSTRING&amp; p_public_key_y, <span class="keyword">const</span> OCTETSTRING&amp; p_hashid8, <span class="keyword">const</span> OCTETSTRING&amp; p_issuer, <span class="keyword">const</span> OCTETSTRING&amp; p_private_enc_key, <span class="keyword">const</span> OCTETSTRING&amp; p_public_enc_key_x, <span class="keyword">const</span> OCTETSTRING&amp; p_public_enc_key_y);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <span class="comment">//virtual int store_certificate(const std::sring&amp; p_cert_id, const std::vector&lt;unsigned char&gt;&amp; p_cert, const std::vector&lt;unsigned char&gt;&amp; p_private_key, const std::vector&lt;unsigned char&gt;&amp; p_public_key_x, const std::vector&lt;unsigned char&gt;&amp; p_public_key_y, const std::vector&lt;unsigned char&gt;&amp; p_hashid8, const OCTETSTRING&amp; p_issuer);</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsecurity__cache.html#ac513a82e4b184068b0f71ce059bc23cb">clear</a>();</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  </div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classsecurity__cache.html#a38444f5cc86f08bc0f3a57a1b280c93e">dump</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}; <span class="comment">// End of class security_cache</span></div><div class="ttc" id="classsecurity__cache_html_aa8afb2e88badf49a0a036ca0230f0141"><div class="ttname"><a href="classsecurity__cache.html#aa8afb2e88badf49a0a036ca0230f0141">security_cache::_hashed_id8s</a></div><div class="ttdeci">std::map&lt; std::vector&lt; unsigned char &gt;, std::string &gt; _hashed_id8s</div><div class="ttdoc">List of the certificates indexed by the certificate identifier. </div><div class="ttdef"><b>Definition:</b> security_cache.hh:21</div></div>
<div class="ttc" id="classsecurity__cache_html_ad83b2df3cb746e7575bf8a6db62ec1f5"><div class="ttname"><a href="classsecurity__cache.html#ad83b2df3cb746e7575bf8a6db62ec1f5">security_cache::get_certificate_id</a></div><div class="ttdeci">int get_certificate_id(const OCTETSTRING &amp;p_hashed_id8, std::string &amp;p_certificate_id) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:29</div></div>
<div class="ttc" id="classsecurity__cache_html_a143f411cd85b81f7b552ae3f1931392a"><div class="ttname"><a href="classsecurity__cache.html#a143f411cd85b81f7b552ae3f1931392a">security_cache::get_issuer</a></div><div class="ttdeci">int get_issuer(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_hashed_id_issuer) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:71</div></div>
<div class="ttc" id="classsecurity__cache_html_aad590aefcb46e35aad7ee4cacf4de7ee"><div class="ttname"><a href="classsecurity__cache.html#aad590aefcb46e35aad7ee4cacf4de7ee">security_cache::_certificates</a></div><div class="ttdeci">std::map&lt; std::string, std::unique_ptr&lt; security_db_record &gt; &gt; _certificates</div><div class="ttdef"><b>Definition:</b> security_cache.hh:20</div></div>
<div class="ttc" id="security__db__record_8hh_html"><div class="ttname"><a href="security__db__record_8hh.html">security_db_record.hh</a></div></div>
<div class="ttc" id="classsecurity__cache_html_a89e47e6d61dde7b6bae2f8d7f30c6169"><div class="ttname"><a href="classsecurity__cache.html#a89e47e6d61dde7b6bae2f8d7f30c6169">security_cache::get_public_enc_keys</a></div><div class="ttdeci">int get_public_enc_keys(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_public_enc_key_x, OCTETSTRING &amp;p_public_enc_key_y) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:143</div></div>
<div class="ttc" id="classsecurity__cache_html_a526fca95f1d832994d6dc08cb053dc84"><div class="ttname"><a href="classsecurity__cache.html#a526fca95f1d832994d6dc08cb053dc84">security_cache::get_private_key</a></div><div class="ttdeci">int get_private_key(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_private_key) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:99</div></div>
<div class="ttc" id="classsecurity__cache_html"><div class="ttname"><a href="classsecurity__cache.html">security_cache</a></div><div class="ttdoc">This class provides security record description for in memory security database. In memory mens there...</div><div class="ttdef"><b>Definition:</b> security_cache.hh:17</div></div>
<div class="ttc" id="classsecurity__cache_html_a8f7063b39782b92a8d8134658aa8db97"><div class="ttname"><a href="classsecurity__cache.html#a8f7063b39782b92a8d8134658aa8db97">security_cache::store_certificate</a></div><div class="ttdeci">virtual int store_certificate(const CHARSTRING &amp;p_cert_id, const OCTETSTRING &amp;p_cert, const OCTETSTRING &amp;p_private_key, const OCTETSTRING &amp;p_public_key_x, const OCTETSTRING &amp;p_public_key_y, const OCTETSTRING &amp;p_hashid8, const OCTETSTRING &amp;p_issuer, const OCTETSTRING &amp;p_private_enc_key, const OCTETSTRING &amp;p_public_enc_key_x, const OCTETSTRING &amp;p_public_enc_key_y)</div><div class="ttdef"><b>Definition:</b> security_cache.cc:159</div></div>
<div class="ttc" id="classsecurity__cache_html_a38444f5cc86f08bc0f3a57a1b280c93e"><div class="ttname"><a href="classsecurity__cache.html#a38444f5cc86f08bc0f3a57a1b280c93e">security_cache::dump</a></div><div class="ttdeci">void dump() const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:216</div></div>
<div class="ttc" id="classsecurity__cache_html_ab2a193e2bd8cd5ff02d3ec05c10fb068"><div class="ttname"><a href="classsecurity__cache.html#ab2a193e2bd8cd5ff02d3ec05c10fb068">security_cache::~security_cache</a></div><div class="ttdeci">virtual ~security_cache()</div><div class="ttdoc">Default private dtor. </div><div class="ttdef"><b>Definition:</b> security_cache.cc:16</div></div>
<div class="ttc" id="classsecurity__cache_html_addbf34c8bfa6e3a1305d8382bb5c8bc4"><div class="ttname"><a href="classsecurity__cache.html#addbf34c8bfa6e3a1305d8382bb5c8bc4">security_cache::get_certificate</a></div><div class="ttdeci">int get_certificate(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_certificate) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:43</div></div>
<div class="ttc" id="classsecurity__cache_html_ac513a82e4b184068b0f71ce059bc23cb"><div class="ttname"><a href="classsecurity__cache.html#ac513a82e4b184068b0f71ce059bc23cb">security_cache::clear</a></div><div class="ttdeci">virtual int clear()</div><div class="ttdef"><b>Definition:</b> security_cache.cc:21</div></div>
<div class="ttc" id="classsecurity__cache_html_a7d2a42c7c16ba9f59c0b094f0f8ea388"><div class="ttname"><a href="classsecurity__cache.html#a7d2a42c7c16ba9f59c0b094f0f8ea388">security_cache::get_private_enc_key</a></div><div class="ttdeci">int get_private_enc_key(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_private_enc_key) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:129</div></div>
<div class="ttc" id="classsecurity__cache_html_a136bab72a5f73d09ecf6043242051ec7"><div class="ttname"><a href="classsecurity__cache.html#a136bab72a5f73d09ecf6043242051ec7">security_cache::security_cache</a></div><div class="ttdeci">security_cache()</div><div class="ttdoc">List of the certificates indexed by the HashedId8. </div><div class="ttdef"><b>Definition:</b> security_cache.cc:12</div></div>
<div class="ttc" id="classsecurity__cache_html_a0e5da4ac16057cfddd2dbb1d5c073337"><div class="ttname"><a href="classsecurity__cache.html#a0e5da4ac16057cfddd2dbb1d5c073337">security_cache::get_public_keys</a></div><div class="ttdeci">int get_public_keys(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_public_key_x, OCTETSTRING &amp;p_public_key_y) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:113</div></div>
<div class="ttc" id="classsecurity__cache_html_acd2271d39a88a4b483be8723fecab9ce"><div class="ttname"><a href="classsecurity__cache.html#acd2271d39a88a4b483be8723fecab9ce">security_cache::get_hashed_id</a></div><div class="ttdeci">int get_hashed_id(const std::string &amp;p_certificate_id, OCTETSTRING &amp;p_hashed_id) const</div><div class="ttdef"><b>Definition:</b> security_cache.cc:85</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
90
Generated on Wed Apr 4 2018 14:16:23 for ETSI STF525 / Internal Testing test suite by &#160;<a href="http://www.doxygen.org/index.html">
garciay's avatar
garciay committed
91 92 93 94 95
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>