Wrap up an info_callback for pyOpenSSL so that if something goes wrong the error is immediately logged and the connection is dropped if possible.

This wrapper exists because some versions of pyOpenSSL don't handle errors from callbacks at all, and those which do write tracebacks directly to stderr rather than to a supplied logging system. This reports unexpected errors to the Twisted logging system.

Also, this terminates the connection immediately if possible because if you've got bugs in your verification logic it's much safer to just give up.

ParameterswrappedA valid info_callback for pyOpenSSL. (type: callable)
ReturnsA valid info_callback for pyOpenSSL that handles any errors in wrapped. (type: callable)
Function infoCallback Undocumented
def infoCallback(connection, where, ret): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.