-
Dec 7th, 2012, 10:02 AM
#1
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules