twisted.internet._sslverify._setAcceptableProtocols(context, acceptableProtocols)
function documentationtwisted.internet._sslverify
View Source
Called to set up the OpenSSL.SSL.Context
for doing NPN and/or ALPN negotiation.
Parameters | context | The context which is set up. (type: OpenSSL.SSL.Context ) |
acceptableProtocols | The 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 |