Fix ssl module compilation if ECDH support was disabled in the OpenSSL build.

(followup to issue #13627)
This commit is contained in:
Antoine Pitrou 2011-12-21 09:27:41 +01:00
parent 822c790527
commit 501da61671
4 changed files with 25 additions and 1 deletions

View file

@ -445,6 +445,14 @@ Constants
.. versionadded:: 3.3
.. data:: HAS_ECDH
Whether the OpenSSL library has built-in support for Elliptic Curve-based
Diffie-Hellman key exchange. This should be true unless the feature was
explicitly disabled by the distributor.
.. versionadded:: 3.3
.. data:: HAS_SNI
Whether the OpenSSL library has built-in support for the *Server Name
@ -711,6 +719,8 @@ to speed up repeated connections from the same clients.
This setting doesn't apply to client sockets. You can also use the
:data:`OP_SINGLE_ECDH_USE` option to further improve security.
This method is not available if :data:`HAS_ECDH` is False.
.. versionadded:: 3.3
.. seealso::