Move socket wrapping into a separate method in order to separate
its logic from other action done in _get_socket. Now, ssl wrapping
is applied to the socket returned by _get_socket method.
Additionally checks for ssl config options are now performed during
init and not each time wrap_socket is called.
Reviewed: https:/ /review. openstack. org/171178 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=88510ef1b15 3fc548fc5bccc24 e116a0882e66a8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 88510ef1b153fc5 48fc5bccc24e116 a0882e66a8
Author: Elena Ezhova <email address hidden>
Date: Tue Apr 7 14:54:45 2015 +0300
Refactor socket ssl wrapping
Move socket wrapping into a separate method in order to separate
its logic from other action done in _get_socket. Now, ssl wrapping
is applied to the socket returned by _get_socket method.
Additionally checks for ssl config options are now performed during
init and not each time wrap_socket is called.
Added unit tests.
Related-Bug: #1276694 681623ec91c9657 a2f61cd2679
Change-Id: I706517ae351a7a