summaryrefslogtreecommitdiff
path: root/OpenSSL/PKey/DH.html
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2019-10-25 19:30:38 +0200
committerMiklos Fazekas <mfazekas@szemafor.com>2019-10-25 19:30:38 +0200
commitf52ea64977dd7dd30fbc49ac651cb5f784b0818c (patch)
tree0ff3a2f29c8a24dc814037c30de1140c90293428 /OpenSSL/PKey/DH.html
parent51c0dce218783c7eb82e5b45d65cfcb20f733288 (diff)
downloadnet-ssh-f52ea64977dd7dd30fbc49ac651cb5f784b0818c.tar.gz
Update docsgh-pages
Diffstat (limited to 'OpenSSL/PKey/DH.html')
-rw-r--r--OpenSSL/PKey/DH.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSSL/PKey/DH.html b/OpenSSL/PKey/DH.html
index 56354ff..a384514 100644
--- a/OpenSSL/PKey/DH.html
+++ b/OpenSSL/PKey/DH.html
@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
-<title>class OpenSSL::PKey::DH - net-ssh 4.2.0</title>
+<title>class OpenSSL::PKey::DH - net-ssh 6.0.0.beta1</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../../";
@@ -86,10 +86,10 @@
<section class="description">
-<p>This class is originally defined in the <a href="OpenSSL.html">OpenSSL</a>
-module. As needed, methods have been added to it by the <a
-href="../../Net/SSH.html">Net::SSH</a> module for convenience in dealing
-with SSH functionality.</p>
+<p>This class is originally defined in the <a
+href="../../OpenSSL.html">OpenSSL</a> module. As needed, methods have been
+added to it by the <a href="../../Net/SSH.html">Net::SSH</a> module for
+convenience in dealing with SSH functionality.</p>
</section>
@@ -132,12 +132,12 @@ lifted more-or-less directly from OpenSSH, dh.c, dh_pub_is_valid.)</p>
<div class="method-source-code" id="valid-3F-source">
- <pre><span class="ruby-comment"># File lib/net/ssh/transport/openssl.rb, line 42</span>
+ <pre><span class="ruby-comment"># File lib/net/ssh/transport/openssl.rb, line 38</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">valid?</span>
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">pub_key</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">pub_key</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span>
<span class="ruby-identifier">bits_set</span> = <span class="ruby-value">0</span>
<span class="ruby-identifier">pub_key</span>.<span class="ruby-identifier">num_bits</span>.<span class="ruby-identifier">times</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">bits_set</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">pub_key</span>.<span class="ruby-identifier">bit_set?</span>(<span class="ruby-identifier">i</span>) }
- <span class="ruby-keyword">return</span> ( <span class="ruby-identifier">bits_set</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">pub_key</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">p</span> )
+ <span class="ruby-keyword">return</span> (<span class="ruby-identifier">bits_set</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">pub_key</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">p</span>)
<span class="ruby-keyword">end</span></pre>
</div>