Searched refs:npn_protocols (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/ |
D | ssl.py | 371 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.c | 315 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/Modules/ |
D | _ssl.c | 408 unsigned char *npn_protocols; member 3008 self->npn_protocols = NULL; in _ssl__SSLContext_impl() 3152 PyMem_FREE(self->npn_protocols); in context_dealloc() 3264 if (ssl_ctx->npn_protocols == NULL) { in _advertiseNPN_cb() 3268 *data = ssl_ctx->npn_protocols; in _advertiseNPN_cb() 3283 ctx->npn_protocols, ctx->npn_protocols_len); in _selectNPN_cb() 3299 PyMem_Free(self->npn_protocols); in _ssl__SSLContext__set_npn_protocols_impl() 3300 self->npn_protocols = PyMem_Malloc(protos->len); in _ssl__SSLContext__set_npn_protocols_impl() 3301 if (self->npn_protocols == NULL) in _ssl__SSLContext__set_npn_protocols_impl() 3303 memcpy(self->npn_protocols, protos->buf, protos->len); in _ssl__SSLContext__set_npn_protocols_impl()
|
/external/python/cpython3/Lib/ |
D | ssl.py | 425 def set_npn_protocols(self, npn_protocols): argument 427 for protocol in npn_protocols:
|
/external/python/cpython2/Lib/test/ |
D | test_ssl.py | 1781 npn_protocols=None, alpn_protocols=None, argument 1795 if npn_protocols: 1796 self.context.set_npn_protocols(npn_protocols)
|
/external/python/cpython3/Lib/test/ |
D | test_ssl.py | 2378 npn_protocols=None, alpn_protocols=None, argument 2392 if npn_protocols: 2393 self.context.set_npn_protocols(npn_protocols)
|