<!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&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  <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&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&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> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="Logger_8h.html">zypp/base/Logger.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="FileChecker_8h.html">zypp/FileChecker.h</a>"</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="ZYppFactory_8h.html">zypp/ZYppFactory.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="Digest_8h.html">zypp/Digest.h</a>"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="KeyRing_8h.html">zypp/KeyRing.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <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> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <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> <span class="preprocessor">#define ZYPP_BASE_LOGGER_LOGGROUP "FileChecker"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <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> { </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#aa72c3808ef4e59438ac80ba451fa291d"> 28</a></span>  ChecksumFileChecker::ChecksumFileChecker( <span class="keyword">const</span> <a class="code" href="classzypp_1_1CheckSum.html">CheckSum</a> &<a class="code" href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">checksum</a> )</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  : _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>  {}</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc"> 32</a></span>  <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> &file )<span class="keyword"> const</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="comment">//MIL << "checking " << file << " file against checksum '" << _checksum << "'" << endl;</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="structzypp_1_1callback_1_1SendReport.html">callback::SendReport<DigestReport></a> <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <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>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> << <span class="stringliteral">"File "</span> << file << <span class="stringliteral">" has no checksum available."</span> << std::endl;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> ( <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>->askUserToAcceptNoDigest(file) )</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> << <span class="stringliteral">"User accepted "</span> << file << <span class="stringliteral">" with no checksum."</span> << std::endl;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <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">" has no checksum"</span> ) );</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <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>  <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>  {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <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>  <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>  <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>  <span class="keyword">static</span> std::map<std::string,std::string> exceptions;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <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>  <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>  <span class="keywordflow">if</span> ( !exceptions.empty() && now-exceptionsAge > 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>  exceptions.clear();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"File "</span> << file << <span class="stringliteral">" has wrong checksum "</span> << real_checksum << <span class="stringliteral">" (expected "</span> << <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a> << <span class="stringliteral">")"</span> << endl;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> ( !exceptions.empty() && 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>  {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"User accepted "</span> << file << <span class="stringliteral">" with WRONG CHECKSUM. (remembered)"</span> << std::endl;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="MediaCurl_8cc.html#a4e0826ef1eedfec4b8c01665fedeb6d6">report</a>->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>  {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga9423380a92639b296ea0a984ea7e1c6b">WAR</a> << <span class="stringliteral">"User accepted "</span> << file << <span class="stringliteral">" with WRONG CHECKSUM."</span> << std::endl;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  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>  exceptionsAge = now;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <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">" has wrong checksum"</span> ) );</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f"> 85</a></span>  <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> &file )<span class="keyword"> const</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> << <span class="stringliteral">"+ null check on "</span> << file << endl;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96"> 91</a></span>  <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> &file )<span class="keyword"> const</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">//MIL << _checkers.size() << " checkers" << endl;</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">for</span> ( list<FileChecker>::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>  {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> ( *it )</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">//MIL << "+ chk" << endl;</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  (*it)(file);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga735563036dced0b7d6cc98f97ea4978b">ERR</a> << <span class="stringliteral">"Invalid checker"</span> << endl;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b"> 108</a></span>  <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> &checker )</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  { <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> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ad571f759961e0d1be4b3c45ee36ac325"> 112</a></span>  <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> & signature )</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  : _signature(signature)</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  {}</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89"> 116</a></span>  <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>  {}</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0"> 119</a></span>  <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> & keycontext)</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  { <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> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a3a9ef6a9d9ab30a3aeca683aef9e0c77"> 122</a></span>  <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> & publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & keycontext )</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  { <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> </div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd"> 125</a></span>  <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> & publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & keycontext )</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  getZYpp()->keyRing()->importKey(publickey, <span class="keyword">false</span>);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <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>  }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159"> 131</a></span>  <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> &file )<span class="keyword"> const</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <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()) && (!<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>  {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <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">"Signature "</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">" not found."</span>) );</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> << <span class="stringliteral">"checking "</span> << file << <span class="stringliteral">" file validity using digital signature.."</span> << endl;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <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>  <a class="code" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">_fileAccepted</a> = getZYpp()->keyRing()->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> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <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>  <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">"Signature verification failed for "</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>  }</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="comment">/******************************************************************</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> **</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> ** FUNCTION NAME : operator<<</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> ** FUNCTION TYPE : std::ostream &</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <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>  std::ostream & <a class="code" href="namespacezypp.html#a736823673697753a9826f368fefff5f0">operator<<</a>( std::ostream & <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> & obj )</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <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>  }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> } <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 &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< FileChecker > _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 &publickey, const KeyContext &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< bool, false > _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 &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<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &str, const Exception &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 &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 & 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 &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< bool, false > _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 &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 &file, const std::string &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< DownloadProgressReport > * 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< void(const Pathname &file)> 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 &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>