Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 68c0c2ff89d8bf9051ff1b9773ed48e4 > files > 675

libzypp-doc-17.9.0-1.1.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libzypp: zypp/FileChecker.cc 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</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">libzypp
   &#160;<span id="projectnumber">17.9.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('FileChecker_8cc_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">FileChecker.cc</div>  </div>
</div><!--header-->
<div class="contents">
<a href="FileChecker_8cc.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="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">|                          ____ _   __ __ ___                          |</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">|                         |__  / \ / / . \ . \                         |</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">|                           / / \ V /|  _/  _/                         |</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">|                          / /__ | | | | | |                           |</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">|                         /_____||_| |_| |_|                           |</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">|                                                                      |</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Logger_8h.html">zypp/base/Logger.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="FileChecker_8h.html">zypp/FileChecker.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ZYppFactory_8h.html">zypp/ZYppFactory.h</a>&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Digest_8h.html">zypp/Digest.h</a>&quot;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="KeyRing_8h.html">zypp/KeyRing.h</a>&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#undef ZYPP_BASE_LOGGER_LOGGROUP</span></div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="FileChecker_8cc.html#ad11ca1dc9757eafa29e9de2259388ff4">   22</a></span>&#160;<span class="preprocessor">#define ZYPP_BASE_LOGGER_LOGGROUP &quot;FileChecker&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{ </div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#aa72c3808ef4e59438ac80ba451fa291d">   28</a></span>&#160;  ChecksumFileChecker::ChecksumFileChecker( <span class="keyword">const</span> <a class="code" href="classzypp_1_1CheckSum.html">CheckSum</a> &amp;<a class="code" href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">checksum</a> )</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    : _checksum(<a class="code" href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">checksum</a>)</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  {}</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc">   32</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc">ChecksumFileChecker::operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;file )<span class="keyword"> const</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">//MIL &lt;&lt; &quot;checking &quot; &lt;&lt; file &lt;&lt; &quot; file against checksum &#39;&quot; &lt;&lt; _checksum &lt;&lt; &quot;&#39;&quot; &lt;&lt; endl;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="structzypp_1_1callback_1_1SendReport.html">callback::SendReport&lt;DigestReport&gt;</a> <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#a37aadce213b9860726920f77987ad7eb">empty</a>() )</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; <span class="stringliteral">&quot;File &quot;</span> &lt;&lt;  file &lt;&lt; <span class="stringliteral">&quot; has no checksum available.&quot;</span> &lt;&lt; std::endl;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;      <span class="keywordflow">if</span> ( <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>-&gt;askUserToAcceptNoDigest(file) )</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;      {</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; <span class="stringliteral">&quot;User accepted &quot;</span> &lt;&lt;  file &lt;&lt; <span class="stringliteral">&quot; with no checksum.&quot;</span> &lt;&lt; std::endl;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">return</span>;</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="keywordflow">else</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="group__ZYPP__THROW.html#gaf8c3a87d63dd4f26f059eddd62c22864">ZYPP_THROW</a>( <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2">ExceptionType</a>( file.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#aadebdd3728a6ed5d80f001863b263e23">basename</a>() + <span class="stringliteral">&quot; has no checksum&quot;</span> ) );</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      }</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="keywordflow">else</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;      <a class="code" href="classzypp_1_1CheckSum.html">CheckSum</a> real_checksum( <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#ac56ca1a0f31b135d06f69cb81c080bac">type</a>(), <a class="code" href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">filesystem::checksum</a>( file, <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#ac56ca1a0f31b135d06f69cb81c080bac">type</a>() ));</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      <span class="keywordflow">if</span> ( (real_checksum != <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>) )</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="comment">// Remember askUserToAcceptWrongDigest decision for at most 12hrs in memory;</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="comment">// Actually we just want to prevent asking the same question again when the</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="comment">// previously downloaded file is retrieved from the disk cache.</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">static</span> std::map&lt;std::string,std::string&gt; exceptions;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keyword">static</span> <a class="code" href="classzypp_1_1Date.html">Date</a> exceptionsAge;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <a class="code" href="classzypp_1_1Date.html">Date</a> now( <a class="code" href="classzypp_1_1Date.html#adc8e5ca53781c19864f6c0e6aa6c1076">Date::now</a>() );</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">if</span> ( !exceptions.empty() &amp;&amp; now-exceptionsAge &gt; 12*<a class="code" href="classzypp_1_1Date.html#a2a93fb87a91e08c2bdab05e9e7ab5688">Date::hour</a> )</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;          exceptions.clear();</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> &lt;&lt; <span class="stringliteral">&quot;File &quot;</span> &lt;&lt;  file &lt;&lt; <span class="stringliteral">&quot; has wrong checksum &quot;</span> &lt;&lt; real_checksum &lt;&lt; <span class="stringliteral">&quot; (expected &quot;</span> &lt;&lt; <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a> &lt;&lt; <span class="stringliteral">&quot;)&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keywordflow">if</span> ( !exceptions.empty() &amp;&amp; exceptions[real_checksum.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>()] == <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>() )</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;          <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> &lt;&lt; <span class="stringliteral">&quot;User accepted &quot;</span> &lt;&lt;  file &lt;&lt; <span class="stringliteral">&quot; with WRONG CHECKSUM. (remembered)&quot;</span> &lt;&lt; std::endl;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;          <span class="keywordflow">return</span>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>-&gt;askUserToAcceptWrongDigest( file, <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>(), real_checksum.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>() ) )</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;          <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> &lt;&lt; <span class="stringliteral">&quot;User accepted &quot;</span> &lt;&lt;  file &lt;&lt; <span class="stringliteral">&quot; with WRONG CHECKSUM.&quot;</span> &lt;&lt; std::endl;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;          exceptions[real_checksum.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>()] = <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>.<a class="code" href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">checksum</a>();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;          exceptionsAge = now;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;          <span class="keywordflow">return</span>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        {</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;          <a class="code" href="group__ZYPP__THROW.html#gaf8c3a87d63dd4f26f059eddd62c22864">ZYPP_THROW</a>( <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2">ExceptionType</a>( file.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#aadebdd3728a6ed5d80f001863b263e23">basename</a>() + <span class="stringliteral">&quot; has wrong checksum&quot;</span> ) );</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;      }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  }</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f">   85</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f">NullFileChecker::operator()</a>(<span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;file )<span class="keyword"> const</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; <span class="stringliteral">&quot;+ null check on &quot;</span> &lt;&lt; file &lt;&lt; endl;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordflow">return</span>;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  }</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96">   91</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96">CompositeFileChecker::operator()</a>(<span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;file )<span class="keyword"> const</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">//MIL &lt;&lt; _checkers.size() &lt;&lt; &quot; checkers&quot; &lt;&lt; endl;</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">for</span> ( list&lt;FileChecker&gt;::const_iterator it = <a class="code" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">_checkers</a>.begin(); it != <a class="code" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">_checkers</a>.end(); ++it )</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;      <span class="keywordflow">if</span> ( *it )</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;      {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="comment">//MIL &lt;&lt; &quot;+ chk&quot; &lt;&lt; endl;</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        (*it)(file);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;      }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      <span class="keywordflow">else</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga735563036dced0b7d6cc98f97ea4978b">ERR</a> &lt;&lt; <span class="stringliteral">&quot;Invalid checker&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      }</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  }</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b">  108</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b">CompositeFileChecker::add</a>( <span class="keyword">const</span> <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> &amp;checker )</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  { <a class="code" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">_checkers</a>.push_back(checker); }</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ad571f759961e0d1be4b3c45ee36ac325">  112</a></span>&#160;  <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">SignatureFileChecker::SignatureFileChecker</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp; signature )</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;       : _signature(signature)</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  {}</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">  116</a></span>&#160;  <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">SignatureFileChecker::SignatureFileChecker</a>()</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  {}</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">  119</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">SignatureFileChecker::setKeyContext</a>(<span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> &amp; keycontext)</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  { <a class="code" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">_context</a> = keycontext; }</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a3a9ef6a9d9ab30a3aeca683aef9e0c77">  122</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">SignatureFileChecker::addPublicKey</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp; publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> &amp; keycontext )</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  { <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">addPublicKey</a>( <a class="code" href="classzypp_1_1PublicKey.html">PublicKey</a>(publickey), keycontext ); }</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">  125</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">SignatureFileChecker::addPublicKey</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1PublicKey.html">PublicKey</a> &amp; publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> &amp; keycontext )</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  {</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    getZYpp()-&gt;keyRing()-&gt;importKey(publickey, <span class="keyword">false</span>);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <a class="code" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">_context</a> = keycontext;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  }</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159">  131</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159">SignatureFileChecker::operator()</a>(<span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;file )<span class="keyword"> const</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">  </span>{</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">if</span> ( (! <a class="code" href="classzypp_1_1filesystem_1_1PathInfo.html">PathInfo</a>(<a class="code" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">_signature</a>).isExist()) &amp;&amp; (!<a class="code" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">_signature</a>.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#aaf4388add8c0f9294a7b15f0614f7656">empty</a>()) )</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    {</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;      <a class="code" href="group__ZYPP__THROW.html#gaf8c3a87d63dd4f26f059eddd62c22864">ZYPP_THROW</a>( <a class="code" href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31">ExceptionType</a>(<span class="stringliteral">&quot;Signature &quot;</span> + <a class="code" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">_signature</a>.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#a91a822e47df9fa6f484a7b771a0b3c94">asString</a>() + <span class="stringliteral">&quot; not found.&quot;</span>) );</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; <span class="stringliteral">&quot;checking &quot;</span> &lt;&lt; file &lt;&lt; <span class="stringliteral">&quot; file validity using digital signature..&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">_fileValidated</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">_fileAccepted</a> = getZYpp()-&gt;keyRing()-&gt;verifyFileSignatureWorkflow( file, file.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#aadebdd3728a6ed5d80f001863b263e23">basename</a>(), <a class="code" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">_signature</a>, <a class="code" href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">_fileValidated</a>, <a class="code" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">_context</a> );</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">if</span> ( !<a class="code" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">_fileAccepted</a> )</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;      <a class="code" href="group__ZYPP__THROW.html#gaf8c3a87d63dd4f26f059eddd62c22864">ZYPP_THROW</a>( <a class="code" href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31">ExceptionType</a>( <span class="stringliteral">&quot;Signature verification failed for &quot;</span>  + file.<a class="code" href="classzypp_1_1filesystem_1_1Pathname.html#aadebdd3728a6ed5d80f001863b263e23">basename</a>() ) );</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; }</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  <span class="comment">/******************************************************************</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment">  **</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment">  **    FUNCTION NAME : operator&lt;&lt;</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">  **    FUNCTION TYPE : std::ostream &amp;</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">  */</span></div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="namespacezypp.html#a4d506c84c6b694459c0842b26e2235c7">  151</a></span>&#160;  std::ostream &amp; <a class="code" href="namespacezypp.html#a736823673697753a9826f368fefff5f0">operator&lt;&lt;</a>( std::ostream &amp; <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> &amp; obj )</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  {</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="namespacestr.html">str</a>;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  }</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;} <span class="comment">// namespace zypp</span></div><div class="ttc" id="classzypp_1_1NullFileChecker_html_abc0e43683c43a8e0758c42af1643861f"><div class="ttname"><a href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f">zypp::NullFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &amp;file) const</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00085">FileChecker.cc:85</a></div></div>
<div class="ttc" id="structzypp_1_1callback_1_1SendReport_html"><div class="ttname"><a href="structzypp_1_1callback_1_1SendReport.html">zypp::callback::SendReport</a></div><div class="ttdef"><b>Definition:</b> <a href="Callback_8h_source.html#l00236">Callback.h:236</a></div></div>
<div class="ttc" id="group__ZYPP__BASE__LOGGER__MACROS_html_ga552f8ec9d8e5b4efa04839a129104818"><div class="ttname"><a href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a></div><div class="ttdeci">#define MIL</div><div class="ttdef"><b>Definition:</b> <a href="Logger_8h_source.html#l00079">Logger.h:79</a></div></div>
<div class="ttc" id="group__ZYPP__THROW_html_gaf8c3a87d63dd4f26f059eddd62c22864"><div class="ttname"><a href="group__ZYPP__THROW.html#gaf8c3a87d63dd4f26f059eddd62c22864">ZYPP_THROW</a></div><div class="ttdeci">#define ZYPP_THROW(EXCPT)</div><div class="ttdoc">Drops a logline and throws the Exception.</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8h_source.html#l00392">Exception.h:392</a></div></div>
<div class="ttc" id="classzypp_1_1CheckSum_html_ac8517d2fe69426a5d2a116459133e1c0"><div class="ttname"><a href="classzypp_1_1CheckSum.html#ac8517d2fe69426a5d2a116459133e1c0">zypp::CheckSum::checksum</a></div><div class="ttdeci">std::string checksum() const</div><div class="ttdef"><b>Definition:</b> <a href="CheckSum_8cc_source.html#l00170">CheckSum.cc:170</a></div></div>
<div class="ttc" id="FileChecker_8h_html"><div class="ttname"><a href="FileChecker_8h.html">FileChecker.h</a></div></div>
<div class="ttc" id="namespacestr_html"><div class="ttname"><a href="namespacestr.html">str</a></div><div class="ttdoc">String related utilities and Regular expression matching.</div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ac4118aabb472371848abddcd5b276e89"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">zypp::SignatureFileChecker::SignatureFileChecker</a></div><div class="ttdeci">SignatureFileChecker()</div><div class="ttdoc">Default Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00116">FileChecker.cc:116</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> <a href="Arch_8h_source.html#l00344">Arch.h:344</a></div></div>
<div class="ttc" id="classzypp_1_1CompositeFileChecker_html_a47ecd90359c143a39690c975bde79cae"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">zypp::CompositeFileChecker::_checkers</a></div><div class="ttdeci">std::list&lt; FileChecker &gt; _checkers</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00203">FileChecker.h:203</a></div></div>
<div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html_aadebdd3728a6ed5d80f001863b263e23"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html#aadebdd3728a6ed5d80f001863b263e23">zypp::filesystem::Pathname::basename</a></div><div class="ttdeci">std::string basename() const</div><div class="ttdoc">Return the last component of this path.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00127">Pathname.h:127</a></div></div>
<div class="ttc" id="group__ZYPP__BASE__LOGGER__MACROS_html_ga735563036dced0b7d6cc98f97ea4978b"><div class="ttname"><a href="group__ZYPP__BASE__LOGGER__MACROS.html#ga735563036dced0b7d6cc98f97ea4978b">ERR</a></div><div class="ttdeci">#define ERR</div><div class="ttdef"><b>Definition:</b> <a href="Logger_8h_source.html#l00081">Logger.h:81</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ac60b1519d77430f107f98de120b883cd"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">zypp::SignatureFileChecker::addPublicKey</a></div><div class="ttdeci">void addPublicKey(const PublicKey &amp;publickey, const KeyContext &amp;keycontext=KeyContext())</div><div class="ttdoc">add a public key to the list of known keys</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00125">FileChecker.cc:125</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_aafd41ed3bd2ec896e768c921fc582eb6"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">zypp::SignatureFileChecker::_fileAccepted</a></div><div class="ttdeci">DefaultIntegral&lt; bool, false &gt; _fileAccepted</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00164">FileChecker.h:164</a></div></div>
<div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_a121c50a1e4fa9966b02fb8afce9b4abc"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc">zypp::ChecksumFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &amp;file) const</div><div class="ttdoc">Try to validate the file.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00032">FileChecker.cc:32</a></div></div>
<div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html_aaf4388add8c0f9294a7b15f0614f7656"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html#aaf4388add8c0f9294a7b15f0614f7656">zypp::filesystem::Pathname::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Test for an empty path.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00113">Pathname.h:113</a></div></div>
<div class="ttc" id="classzypp_1_1Date_html"><div class="ttname"><a href="classzypp_1_1Date.html">zypp::Date</a></div><div class="ttdoc">Store and operate on date (time_t).</div><div class="ttdef"><b>Definition:</b> <a href="Date_8h_source.html#l00032">Date.h:32</a></div></div>
<div class="ttc" id="namespacezypp_html_a736823673697753a9826f368fefff5f0"><div class="ttname"><a href="namespacezypp.html#a736823673697753a9826f368fefff5f0">zypp::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;str, const Exception &amp;obj)</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8cc_source.html#l00147">Exception.cc:147</a></div></div>
<div class="ttc" id="structzypp_1_1KeyContext_html"><div class="ttname"><a href="structzypp_1_1KeyContext.html">zypp::KeyContext</a></div><div class="ttdef"><b>Definition:</b> <a href="KeyContext_8h_source.html#l00008">KeyContext.h:8</a></div></div>
<div class="ttc" id="classzypp_1_1CompositeFileChecker_html_aa7a3dca302d850aee1d7dedbc5538b96"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96">zypp::CompositeFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &amp;file) const</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00091">FileChecker.cc:91</a></div></div>
<div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html_a91a822e47df9fa6f484a7b771a0b3c94"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html#a91a822e47df9fa6f484a7b771a0b3c94">zypp::filesystem::Pathname::asString</a></div><div class="ttdeci">const std::string &amp; asString() const</div><div class="ttdoc">String representation.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00090">Pathname.h:90</a></div></div>
<div class="ttc" id="Digest_8h_html"><div class="ttname"><a href="Digest_8h.html">Digest.h</a></div></div>
<div class="ttc" id="classzypp_1_1CompositeFileChecker_html_a755f5a4a14b73233afcad5528f03a23b"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b">zypp::CompositeFileChecker::add</a></div><div class="ttdeci">void add(const FileChecker &amp;checker)</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00108">FileChecker.cc:108</a></div></div>
<div class="ttc" id="group__ZYPP__BASE__LOGGER__MACROS_html_ga9423380a92639b296ea0a984ea7e1c6b"><div class="ttname"><a href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a></div><div class="ttdeci">#define WAR</div><div class="ttdef"><b>Definition:</b> <a href="Logger_8h_source.html#l00080">Logger.h:80</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ad19ae29f2f7a3fa3a455528710c61786"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">zypp::SignatureFileChecker::_fileValidated</a></div><div class="ttdeci">DefaultIntegral&lt; bool, false &gt; _fileValidated</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00165">FileChecker.h:165</a></div></div>
<div class="ttc" id="KeyRing_8h_html"><div class="ttname"><a href="KeyRing_8h.html">KeyRing.h</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a57331780d2a764ade8dc30a5bed65159"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159">zypp::SignatureFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &amp;file) const</div><div class="ttdoc">Calls KeyRing::verifyFileSignatureWorkflow to verify the file.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00131">FileChecker.cc:131</a></div></div>
<div class="ttc" id="classzypp_1_1CheckSum_html_ac56ca1a0f31b135d06f69cb81c080bac"><div class="ttname"><a href="classzypp_1_1CheckSum.html#ac56ca1a0f31b135d06f69cb81c080bac">zypp::CheckSum::type</a></div><div class="ttdeci">std::string type() const</div><div class="ttdef"><b>Definition:</b> <a href="CheckSum_8cc_source.html#l00167">CheckSum.cc:167</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_aaadf81a304bf4b28e3d9b7eced74ee31"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31">zypp::SignatureFileChecker::ExceptionType</a></div><div class="ttdeci">SignatureCheckException ExceptionType</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00096">FileChecker.h:96</a></div></div>
<div class="ttc" id="classzypp_1_1Date_html_a2a93fb87a91e08c2bdab05e9e7ab5688"><div class="ttname"><a href="classzypp_1_1Date.html#a2a93fb87a91e08c2bdab05e9e7ab5688">zypp::Date::hour</a></div><div class="ttdeci">static const ValueType hour</div><div class="ttdef"><b>Definition:</b> <a href="Date_8h_source.html#l00043">Date.h:43</a></div></div>
<div class="ttc" id="Logger_8h_html"><div class="ttname"><a href="Logger_8h.html">Logger.h</a></div></div>
<div class="ttc" id="classzypp_1_1PublicKey_html"><div class="ttname"><a href="classzypp_1_1PublicKey.html">zypp::PublicKey</a></div><div class="ttdoc">Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8h_source.html#l00272">PublicKey.h:272</a></div></div>
<div class="ttc" id="classzypp_1_1CheckSum_html_a37aadce213b9860726920f77987ad7eb"><div class="ttname"><a href="classzypp_1_1CheckSum.html#a37aadce213b9860726920f77987ad7eb">zypp::CheckSum::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>Definition:</b> <a href="CheckSum_8cc_source.html#l00173">CheckSum.cc:173</a></div></div>
<div class="ttc" id="classzypp_1_1Date_html_adc8e5ca53781c19864f6c0e6aa6c1076"><div class="ttname"><a href="classzypp_1_1Date.html#adc8e5ca53781c19864f6c0e6aa6c1076">zypp::Date::now</a></div><div class="ttdeci">static Date now()</div><div class="ttdoc">Return the current time.</div><div class="ttdef"><b>Definition:</b> <a href="Date_8h_source.html#l00078">Date.h:78</a></div></div>
<div class="ttc" id="namespacezypp_1_1filesystem_html_a20a3a87c89cc383460b922f54db7235d"><div class="ttname"><a href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">zypp::filesystem::checksum</a></div><div class="ttdeci">std::string checksum(const Pathname &amp;file, const std::string &amp;algorithm)</div><div class="ttdoc">Compute a files checksum.</div><div class="ttdef"><b>Definition:</b> <a href="PathInfo_8cc_source.html#l01004">PathInfo.cc:1004</a></div></div>
<div class="ttc" id="MediaCurl_8cc_html_a4e0826ef1eedfec4b8c01665fedeb6d6"><div class="ttname"><a href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a></div><div class="ttdeci">callback::SendReport&lt; DownloadProgressReport &gt; * report</div><div class="ttdef"><b>Definition:</b> <a href="MediaCurl_8cc_source.html#l00203">MediaCurl.cc:203</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a1b3be1cf399a308b1d9555588e6c2d4e"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">zypp::SignatureFileChecker::_context</a></div><div class="ttdeci">KeyContext _context</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00163">FileChecker.h:163</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ab00e08c179f020726dd96eec8313dd97"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">zypp::SignatureFileChecker::_signature</a></div><div class="ttdeci">Pathname _signature</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00162">FileChecker.h:162</a></div></div>
<div class="ttc" id="classzypp_1_1filesystem_1_1PathInfo_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1PathInfo.html">zypp::filesystem::PathInfo</a></div><div class="ttdoc">Wrapper class for ::stat/::lstat.</div><div class="ttdef"><b>Definition:</b> <a href="PathInfo_8h_source.html#l00220">PathInfo.h:220</a></div></div>
<div class="ttc" id="namespacezypp_html_ae95ba3a6af05a2b35ed49092f78ce2b3"><div class="ttname"><a href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">zypp::FileChecker</a></div><div class="ttdeci">function&lt; void(const Pathname &amp;file)&gt; FileChecker</div><div class="ttdoc">Functor signature used to check files.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00028">FileChecker.h:28</a></div></div>
<div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_ab8dcaf26fb3613c289d0c52498d0e599"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">zypp::ChecksumFileChecker::_checksum</a></div><div class="ttdeci">CheckSum _checksum</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00087">FileChecker.h:87</a></div></div>
<div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html">zypp::filesystem::Pathname</a></div><div class="ttdoc">Pathname.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00043">Pathname.h:43</a></div></div>
<div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div>
<div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_ad891c41b02782e2b8ed40b28cb68c1b2"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2">zypp::ChecksumFileChecker::ExceptionType</a></div><div class="ttdeci">CheckSumCheckException ExceptionType</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00073">FileChecker.h:73</a></div></div>
<div class="ttc" id="classzypp_1_1CheckSum_html"><div class="ttname"><a href="classzypp_1_1CheckSum.html">zypp::CheckSum</a></div><div class="ttdef"><b>Definition:</b> <a href="CheckSum_8h_source.html#l00033">CheckSum.h:33</a></div></div>
<div class="ttc" id="ZYppFactory_8h_html"><div class="ttname"><a href="ZYppFactory_8h.html">ZYppFactory.h</a></div></div>
<div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a98fb8a830762ee007f6111a67d922fd0"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">zypp::SignatureFileChecker::setKeyContext</a></div><div class="ttdeci">void setKeyContext(const KeyContext &amp;keycontext)</div><div class="ttdoc">Set context for this checker.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00119">FileChecker.cc:119</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="FileChecker_8cc.html">FileChecker.cc</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>