Home
last modified time | relevance | path

Searched refs:npn_protocols (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
Dssl.py371 def set_npn_protocols(self, npn_protocols): argument
373 for protocol in npn_protocols:
540 suppress_ragged_eofs=True, npn_protocols=None, ciphers=None, argument
561 if npn_protocols:
562 self._context.set_npn_protocols(npn_protocols)
/external/python/cpython2/Modules/
D_ssl.c315 unsigned char *npn_protocols; member
2228 self->npn_protocols = NULL; in context_new()
2306 PyMem_FREE(self->npn_protocols); in context_dealloc()
2370 if (ssl_ctx->npn_protocols == NULL) { in _advertiseNPN_cb()
2374 *data = ssl_ctx->npn_protocols; in _advertiseNPN_cb()
2389 ctx->npn_protocols, ctx->npn_protocols_len); in _selectNPN_cb()
2402 if (self->npn_protocols != NULL) { in _set_npn_protocols()
2403 PyMem_Free(self->npn_protocols); in _set_npn_protocols()
2406 self->npn_protocols = PyMem_Malloc(protos.len); in _set_npn_protocols()
2407 if (self->npn_protocols == NULL) { in _set_npn_protocols()
[all …]
/external/python/cpython3/Lib/
Dssl.py532 def set_npn_protocols(self, npn_protocols): argument
539 for protocol in npn_protocols:
/external/python/cpython2/Lib/test/
Dtest_ssl.py1781 npn_protocols=None, alpn_protocols=None, argument
1795 if npn_protocols:
1796 self.context.set_npn_protocols(npn_protocols)