Home
last modified time | relevance | path

Searched refs:npn_protocols (Results 1 – 6 of 6) 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/Modules/
D_ssl.c425 unsigned char *npn_protocols; member
3169 self->npn_protocols = NULL; in _ssl__SSLContext_impl()
3324 PyMem_FREE(self->npn_protocols); in context_dealloc()
3436 if (ssl_ctx->npn_protocols == NULL) { in _advertiseNPN_cb()
3440 *data = ssl_ctx->npn_protocols; in _advertiseNPN_cb()
3455 ctx->npn_protocols, ctx->npn_protocols_len); in _selectNPN_cb()
3471 PyMem_Free(self->npn_protocols); in _ssl__SSLContext__set_npn_protocols_impl()
3472 self->npn_protocols = PyMem_Malloc(protos->len); in _ssl__SSLContext__set_npn_protocols_impl()
3473 if (self->npn_protocols == NULL) in _ssl__SSLContext__set_npn_protocols_impl()
3475 memcpy(self->npn_protocols, protos->buf, protos->len); in _ssl__SSLContext__set_npn_protocols_impl()
/external/python/cpython3/Lib/
Dssl.py520 def set_npn_protocols(self, npn_protocols): argument
522 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)
/external/python/cpython3/Lib/test/
Dtest_ssl.py2491 npn_protocols=None, alpn_protocols=None, argument
2505 if npn_protocols:
2506 self.context.set_npn_protocols(npn_protocols)