Called to set up the OpenSSL.SSL.Context for doing NPN and/or ALPN negotiation.

ParameterscontextThe context which is set up. (type: OpenSSL.SSL.Context)
acceptableProtocolsThe protocols this peer is willing to speak after the TLS negotiation has completed, advertised over both ALPN and NPN. If this argument is specified, and no overlap can be found with the other peer, the connection will fail to be established. If the remote peer does not offer NPN or ALPN, the connection will be established, but no protocol wil be negotiated. Protocols earlier in the list are preferred over those later in the list. (type: list of bytes)
Function protoSelectCallback NPN client-side and ALPN server-side callback used to select the next protocol. Prefers protocols found earlier in _acceptableProtocols.
Function npnAdvertiseCallback Undocumented
def protoSelectCallback(conn, protocols): (source)

NPN client-side and ALPN server-side callback used to select the next protocol. Prefers protocols found earlier in _acceptableProtocols.

ParametersconnThe context which is set up. (type: list of bytes)
connProtocols advertised by the other side. (type: list of bytes)
def npnAdvertiseCallback(conn): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.