Announcement Announcement Module
Collapse
No announcement yet.
SSLServer allow_none Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SSLServer allow_none

    Would it be possible update the SSLServer to include the allow_none setting to the following code as found in xmlrpc.py line numbers included

    51 class SSLServer(object, SimpleXMLRPCServer):
    52 def __init__(self, host=None, port=None, keyfile=None, certfile=None,
    53 ca_certs=None, cert_reqs=ssl.CERT_NONE, ssl_version=ssl.PROTOCOL_TLSv1,
    54 do_handshake_on_connect=True, suppress_ragged_eofs=True, ciphers=None,
    55 log_requests=True, **kwargs):
    56
    57 SimpleXMLRPCServer.__init__(self, (host, port), requestHandler=RequestHandler)

    As shown below to allow the 'allow_none' paramater to be set:

    51 class SSLServer(object, SimpleXMLRPCServer):
    52 def __init__(self, host=None, port=None, keyfile=None, certfile=None,
    53 ca_certs=None, cert_reqs=ssl.CERT_NONE, ssl_version=ssl.PROTOCOL_TLSv1,
    54 do_handshake_on_connect=True, suppress_ragged_eofs=True, ciphers=None,
    55 log_requests=True, allow_none=0, **kwargs):
    56
    57 SimpleXMLRPCServer.__init__(self, (host, port), requestHandler=RequestHandler, allow_none=allow_none)

    So that the SSLServer can then be called at shown below:

    my_server = SSLServer(host, port, keyfile, certfile, ca_certs, cert_reqs=cert_reqs, allow_none=True)
Working...
X