def _client_connection(self, callback, data, request_ocsp=True):
    '\n        Builds a client connection suitable for using OCSP.\n\n        :param callback: The callback to register for OCSP.\n        :param data: The opaque data object that will be handed to the\n            OCSP callback.\n        :param request_ocsp: Whether the client will actually ask for OCSP\n            stapling. Useful for testing only.\n        '
    ctx = Context(SSLv23_METHOD)
    ctx.set_ocsp_client_callback(callback, data)
    client = Connection(ctx)
    if request_ocsp:
        client.request_ocsp()
    client.set_connect_state()
    return client
Builds a client connection suitable for using OCSP.

:param callback: The callback to register for OCSP.
:param data: The opaque data object that will be handed to the
    OCSP callback.
:param request_ocsp: Whether the client will actually ask for OCSP
    stapling. Useful for testing only.
def _client_connection(self, callback, data, request_ocsp=True):
    '\n        Builds a client connection suitable for using OCSP.\n\n        :param callback: The callback to register for OCSP.\n        :param data: The opaque data object that will be handed to the\n            OCSP callback.\n        :param request_ocsp: Whether the client will actually ask for OCSP\n            stapling. Useful for testing only.\n        '
    ctx = Context(SSLv23_METHOD)
    ctx.set_ocsp_client_callback(callback, data)
    client = Connection(ctx)
    if request_ocsp:
        client.request_ocsp()
    client.set_connect_state()
    return client