| | | |
Offset 58, 94 lines modified | Offset 58, 80 lines modified |
58 | <span·id="gevent-ssl2-ssl-wrapper-for-socket-objects-on-python-2-7-8-and-below"></span><h1><a·class="reference·internal"·href="#module-gevent._ssl2"·title="gevent._ssl2"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">gevent._ssl2</span></code></a>·–·SSL·wrapper·for·socket·objects·on·Python·2.7.8·and·below<a·class="headerlink"·href="#module-gevent._ssl2"·title="Permalink·to·this·headline">¶</a></h1> | 58 | <span·id="gevent-ssl2-ssl-wrapper-for-socket-objects-on-python-2-7-8-and-below"></span><h1><a·class="reference·internal"·href="#module-gevent._ssl2"·title="gevent._ssl2"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">gevent._ssl2</span></code></a>·–·SSL·wrapper·for·socket·objects·on·Python·2.7.8·and·below<a·class="headerlink"·href="#module-gevent._ssl2"·title="Permalink·to·this·headline">¶</a></h1> |
59 | <p>For·the·documentation,·refer·to·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#module-ssl"·title="(in·Python·v2.7)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">ssl</span></code></a>·module·manual.</p> | 59 | <p>For·the·documentation,·refer·to·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#module-ssl"·title="(in·Python·v2.7)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">ssl</span></code></a>·module·manual.</p> |
60 | <p>This·module·implements·cooperative·SSL·socket·wrappers.</p> | 60 | <p>This·module·implements·cooperative·SSL·socket·wrappers.</p> |
61 | <div·class="deprecated"> | 61 | <div·class="deprecated"> |
62 | <p><span·class="versionmodified">Deprecated·since·version·1.3:·</span>This·module·is·not·secure.·Support·for·Python·versions | 62 | <p><span·class="versionmodified">Deprecated·since·version·1.3:·</span>This·module·is·not·secure.·Support·for·Python·versions |
63 | with·only·this·level·of·SSL·will·be·dropped·in·gevent·1.4.</p> | 63 | with·only·this·level·of·SSL·will·be·dropped·in·gevent·1.4.</p> |
64 | </div> | 64 | </div> |
| 65 | <dl·class="exception"> |
| 66 | <dt·id="gevent._ssl2.SSLEOFError"> |
| 67 | <em·class="property">exception·</em><code·class="descname">SSLEOFError</code><a·class="headerlink"·href="#gevent._ssl2.SSLEOFError"·title="Permalink·to·this·definition">¶</a></dt> |
| 68 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> |
| 69 | <p>SSL/TLS·connection·terminated·abruptly.</p> |
| 70 | </dd></dl> |
| |
65 | <dl·class="attribute"> | 71 | <dl·class="attribute"> |
66 | <dt·id="gevent._ssl2.socket_error"> | 72 | <dt·id="gevent._ssl2.CertificateError"> |
67 | <code·class="descname">socket_error</code><a·class="headerlink"·href="#gevent._ssl2.socket_error"·title="Permalink·to·this·definition">¶</a></dt> | 73 | <code·class="descname">CertificateError</code><a·class="headerlink"·href="#gevent._ssl2.CertificateError"·title="Permalink·to·this·definition">¶</a></dt> |
68 | <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">builtins.OSError</span></code></p> | 74 | <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLCertVerificationError</span></code></p> |
| 75 | </dd></dl> |
| |
| 76 | <dl·class="exception"> |
| 77 | <dt·id="gevent._ssl2.SSLCertVerificationError"> |
| 78 | <em·class="property">exception·</em><code·class="descname">SSLCertVerificationError</code><a·class="headerlink"·href="#gevent._ssl2.SSLCertVerificationError"·title="Permalink·to·this·definition">¶</a></dt> |
| 79 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a>,·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ValueError</span></code></p> |
| 80 | <p>A·certificate·could·not·be·verified.</p> |
69 | </dd></dl> | 81 | </dd></dl> |
| |
70 | <dl·class="exception"> | 82 | <dl·class="exception"> |
71 | <dt·id="gevent._ssl2.SSLWantWriteError"> | 83 | <dt·id="gevent._ssl2.SSLWantWriteError"> |
72 | <em·class="property">exception·</em><code·class="descname">SSLWantWriteError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantWriteError"·title="Permalink·to·this·definition">¶</a></dt> | 84 | <em·class="property">exception·</em><code·class="descname">SSLWantWriteError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantWriteError"·title="Permalink·to·this·definition">¶</a></dt> |
73 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> | 85 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> |
74 | <p>Non-blocking·SSL·socket·needs·to·write·more·data | 86 | <p>Non-blocking·SSL·socket·needs·to·write·more·data |
75 | before·the·requested·operation·can·be·completed.</p> | 87 | before·the·requested·operation·can·be·completed.</p> |
76 | </dd></dl> | 88 | </dd></dl> |
| |
77 | <dl·class="exception"> | 89 | <dl·class="attribute"> |
78 | <dt·id="gevent._ssl2.SSLZeroReturnError"> | 90 | <dt·id="gevent._ssl2.socket_error"> |
79 | <em·class="property">exception·</em><code·class="descname">SSLZeroReturnError</code><a·class="headerlink"·href="#gevent._ssl2.SSLZeroReturnError"·title="Permalink·to·this·definition">¶</a></dt> | 91 | <code·class="descname">socket_error</code><a·class="headerlink"·href="#gevent._ssl2.socket_error"·title="Permalink·to·this·definition">¶</a></dt> |
| 92 | <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">builtins.OSError</span></code></p> |
80 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> | |
81 | <p>SSL/TLS·session·closed·cleanly.</p> | |
82 | </dd></dl> | |
| |
83 | <dl·class="exception"> | |
84 | <dt·id="gevent._ssl2.SSLWantReadError"> | |
85 | <em·class="property">exception·</em><code·class="descname">SSLWantReadError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantReadError"·title="Permalink·to·this·definition">¶</a></dt> | |
86 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> | |
87 | <p>Non-blocking·SSL·socket·needs·to·read·more·data | |
88 | before·the·requested·operation·can·be·completed.</p> | |
89 | </dd></dl> | 93 | </dd></dl> |
| |
90 | <dl·class="exception"> | 94 | <dl·class="exception"> |
91 | <dt·id="gevent._ssl2.SSLEOFError"> | 95 | <dt·id="gevent._ssl2.SSLSyscallError"> |
92 | <em·class="property">exception·</em><code·class="descname">SSLEOFError</code><a·class="headerlink"·href="#gevent._ssl2.SSLEOFError"·title="Permalink·to·this·definition">¶</a></dt> | 96 | <em·class="property">exception·</em><code·class="descname">SSLSyscallError</code><a·class="headerlink"·href="#gevent._ssl2.SSLSyscallError"·title="Permalink·to·this·definition">¶</a></dt> |
93 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> | 97 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> |
94 | <p>SSL/TLS·connection·terminated·abruptly.</p> | 98 | <p>System·error·when·attempting·SSL·operation.</p> |
95 | </dd></dl> | 99 | </dd></dl> |
| |
96 | <dl·class="exception"> | 100 | <dl·class="exception"> |
97 | <dt·id="gevent._ssl2.SSLError"> | 101 | <dt·id="gevent._ssl2.SSLError"> |
98 | <em·class="property">exception·</em><code·class="descname">SSLError</code><a·class="headerlink"·href="#gevent._ssl2.SSLError"·title="Permalink·to·this·definition">¶</a></dt> | 102 | <em·class="property">exception·</em><code·class="descname">SSLError</code><a·class="headerlink"·href="#gevent._ssl2.SSLError"·title="Permalink·to·this·definition">¶</a></dt> |
99 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">OSError</span></code></p> | 103 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">OSError</span></code></p> |
100 | <p>An·error·occurred·in·the·SSL·implementation.</p> | 104 | <p>An·error·occurred·in·the·SSL·implementation.</p> |
101 | </dd></dl> | 105 | </dd></dl> |
| |
102 | <dl·class="exception"> | 106 | <dl·class="exception"> |
103 | <dt·id="gevent._ssl2.SSLSyscallError"> | 107 | <dt·id="gevent._ssl2.SSLWantReadError"> |
104 | <em·class="property">exception·</em><code·class="descname">SSLSyscallError</code><a·class="headerlink"·href="#gevent._ssl2.SSLSyscallError"·title="Permalink·to·this·definition">¶</a></dt> | 108 | <em·class="property">exception·</em><code·class="descname">SSLWantReadError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantReadError"·title="Permalink·to·this·definition">¶</a></dt> |
105 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> | 109 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> |
| 110 | <p>Non-blocking·SSL·socket·needs·to·read·more·data |
| 111 | before·the·requested·operation·can·be·completed.</p> |
106 | <p>System·error·when·attempting·SSL·operation.</p> | |
107 | </dd></dl> | |
| |
108 | <dl·class="attribute"> | |
109 | <dt·id="gevent._ssl2.CertificateError"> | |
110 | <code·class="descname">CertificateError</code><a·class="headerlink"·href="#gevent._ssl2.CertificateError"·title="Permalink·to·this·definition">¶</a></dt> | |
111 | <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLCertVerificationError</span></code></p> | |
112 | </dd></dl> | 112 | </dd></dl> |
| |
113 | <dl·class="exception"> | 113 | <dl·class="exception"> |
114 | <dt·id="gevent._ssl2.SSLCertVerificationError"> | 114 | <dt·id="gevent._ssl2.SSLZeroReturnError"> |
115 | <em·class="property">exception·</em><code·class="descname">SSLCertVerificationError</code><a·class="headerlink"·href="#gevent._ssl2.SSLCertVerificationError"·title="Permalink·to·this·definition">¶</a></dt> | 115 | <em·class="property">exception·</em><code·class="descname">SSLZeroReturnError</code><a·class="headerlink"·href="#gevent._ssl2.SSLZeroReturnError"·title="Permalink·to·this·definition">¶</a></dt> |
116 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a>,·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ValueError</span></code></p> | 116 | <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> |
| 117 | <p>SSL/TLS·session·closed·cleanly.</p> |
117 | <p>A·certificate·could·not·be·verified.</p> | |
118 | </dd></dl> | |
| |
119 | <dl·class="class"> | |
120 | <dt·id="gevent._ssl2.VerifyMode"> | |
121 | <em·class="property">class·</em><code·class="descname">VerifyMode</code><a·class="headerlink"·href="#gevent._ssl2.VerifyMode"·title="Permalink·to·this·definition">¶</a></dt> | |
122 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.IntEnum</span></code></p> | |
123 | <p>An·enumeration.</p> | |
124 | </dd></dl> | |
| |
125 | <dl·class="class"> | |
126 | <dt·id="gevent._ssl2.Purpose"> | |
127 | <em·class="property">class·</em><code·class="descname">Purpose</code><a·class="headerlink"·href="#gevent._ssl2.Purpose"·title="Permalink·to·this·definition">¶</a></dt> | |
128 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl._ASN1Object</span></code>,·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.Enum</span></code></p> | |
129 | <p>SSLContext·purpose·flags·with·X509v3·Extended·Key·Usage·objects</p> | |
130 | </dd></dl> | 118 | </dd></dl> |
| |
131 | <dl·class="class"> | 119 | <dl·class="class"> |
132 | <dt·id="gevent._ssl2.VerifyFlags"> | 120 | <dt·id="gevent._ssl2.Options"> |
133 | <em·class="property">class·</em><code·class="descname">VerifyFlags</code><a·class="headerlink"·href="#gevent._ssl2.VerifyFlags"·title="Permalink·to·this·definition">¶</a></dt> | 121 | <em·class="property">class·</em><code·class="descname">Options</code><a·class="headerlink"·href="#gevent._ssl2.Options"·title="Permalink·to·this·definition">¶</a></dt> |
134 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.IntFlag</span></code></p> | 122 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.IntFlag</span></code></p> |
135 | <p>An·enumeration.</p> | 123 | <p>An·enumeration.</p> |
136 | </dd></dl> | 124 | </dd></dl> |
| |
137 | <dl·class="class"> | 125 | <dl·class="class"> |
138 | <dt·id="gevent._ssl2.SSLSocket"> | 126 | <dt·id="gevent._ssl2.SSLSocket"> |
139 | <em·class="property">class·</em><code·class="descname">SSLSocket</code><span·class="sig-paren">(</span><em>sock</em>,·<em>keyfile=None</em>,·<em>certfile=None</em>,·<em>server_side=False</em>,·<em>cert_reqs=<VerifyMode.CERT_NONE:·0></em>,·<em>ssl_version=<_SSLMethod.PROTOCOL_TLS:·2></em>,·<em>ca_certs=None</em>,·<em>do_handshake_on_connect=True</em>,·<em>suppress_ragged_eofs=True</em>,·<em>ciphers=None</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket"·title="Permalink·to·this·definition">¶</a></dt> | 127 | <em·class="property">class·</em><code·class="descname">SSLSocket</code><span·class="sig-paren">(</span><em>sock</em>,·<em>keyfile=None</em>,·<em>certfile=None</em>,·<em>server_side=False</em>,·<em>cert_reqs=<VerifyMode.CERT_NONE:·0></em>,·<em>ssl_version=<_SSLMethod.PROTOCOL_TLS:·2></em>,·<em>ca_certs=None</em>,·<em>do_handshake_on_connect=True</em>,·<em>suppress_ragged_eofs=True</em>,·<em>ciphers=None</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket"·title="Permalink·to·this·definition">¶</a></dt> |
Offset 203, 14 lines modified | Offset 189, 85 lines modified |
203 | <dd><p>Write·DATA·to·the·underlying·SSL·channel.··Returns | 189 | <dd><p>Write·DATA·to·the·underlying·SSL·channel.··Returns |
204 | number·of·bytes·of·DATA·actually·transmitted.</p> | 190 | number·of·bytes·of·DATA·actually·transmitted.</p> |
205 | </dd></dl> | 191 | </dd></dl> |
| |
206 | </dd></dl> | 192 | </dd></dl> |
| |
207 | <dl·class="class"> | 193 | <dl·class="class"> |
| 194 | <dt·id="gevent._ssl2.VerifyMode"> |
| 195 | <em·class="property">class·</em><code·class="descname">VerifyMode</code><a·class="headerlink"·href="#gevent._ssl2.VerifyMode"·title="Permalink·to·this·definition">¶</a></dt> |
| 196 | <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.IntEnum</span></code></p> |
| 197 | <p>An·enumeration.</p> |
| 198 | </dd></dl> |
| |
| 199 | <dl·class="class"> |
Max diff block lines reached; 22410/37927 bytes (59.09%) of diff not shown.
|