Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(166910)

Side by Side Diff: Doc/library/ssl.rst

Issue 23001: Accept mutable bytes-like objects
Patch Set: Created 4 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 :mod:`ssl` --- TLS/SSL wrapper for socket objects 1 :mod:`ssl` --- TLS/SSL wrapper for socket objects
2 ================================================= 2 =================================================
3 3
4 .. module:: ssl 4 .. module:: ssl
5 :synopsis: TLS/SSL wrapper for socket objects 5 :synopsis: TLS/SSL wrapper for socket objects
6 6
7 .. moduleauthor:: Bill Janssen <bill.janssen@gmail.com> 7 .. moduleauthor:: Bill Janssen <bill.janssen@gmail.com>
8 .. sectionauthor:: Bill Janssen <bill.janssen@gmail.com> 8 .. sectionauthor:: Bill Janssen <bill.janssen@gmail.com>
9 9
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 of entropy-gathering daemons. 332 of entropy-gathering daemons.
333 333
334 Availability: not available with LibreSSL. 334 Availability: not available with LibreSSL.
335 335
336 .. function:: RAND_add(bytes, entropy) 336 .. function:: RAND_add(bytes, entropy)
337 337
338 Mixes the given *bytes* into the SSL pseudo-random number generator. The 338 Mixes the given *bytes* into the SSL pseudo-random number generator. The
339 parameter *entropy* (a float) is a lower bound on the entropy contained in 339 parameter *entropy* (a float) is a lower bound on the entropy contained in
340 string (so you can always use :const:`0.0`). See :rfc:`1750` for more 340 string (so you can always use :const:`0.0`). See :rfc:`1750` for more
341 information on sources of entropy. 341 information on sources of entropy.
342
343 .. versionchanged: 3.5
344 Writable :term:`bytes-like object` is now accepted.
342 345
343 Certificate handling 346 Certificate handling
344 ^^^^^^^^^^^^^^^^^^^^ 347 ^^^^^^^^^^^^^^^^^^^^
345 348
346 .. function:: match_hostname(cert, hostname) 349 .. function:: match_hostname(cert, hostname)
347 350
348 Verify that *cert* (in decoded format as returned by 351 Verify that *cert* (in decoded format as returned by
349 :meth:`SSLSocket.getpeercert`) matches the given *hostname*. The rules 352 :meth:`SSLSocket.getpeercert`) matches the given *hostname*. The rules
350 applied are those for checking the identity of HTTPS servers as outlined 353 applied are those for checking the identity of HTTPS servers as outlined
351 in :rfc:`2818` and :rfc:`6125`. In addition to HTTPS, this function 354 in :rfc:`2818` and :rfc:`6125`. In addition to HTTPS, this function
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 Blake-Wilson et. al. 2042 Blake-Wilson et. al.
2040 2043
2041 `RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <http://to ols.ietf.org/html/rfc5246>`_ 2044 `RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <http://to ols.ietf.org/html/rfc5246>`_
2042 T. Dierks et. al. 2045 T. Dierks et. al.
2043 2046
2044 `RFC 6066: Transport Layer Security (TLS) Extensions <http://tools.ietf.org/h tml/rfc6066>`_ 2047 `RFC 6066: Transport Layer Security (TLS) Extensions <http://tools.ietf.org/h tml/rfc6066>`_
2045 D. Eastlake 2048 D. Eastlake
2046 2049
2047 `IANA TLS: Transport Layer Security (TLS) Parameters <http://www.iana.org/ass ignments/tls-parameters/tls-parameters.xml>`_ 2050 `IANA TLS: Transport Layer Security (TLS) Parameters <http://www.iana.org/ass ignments/tls-parameters/tls-parameters.xml>`_
2048 IANA 2051 IANA
OLDNEW

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+