Lines Matching refs:npn_protocols
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()
2411 memcpy(self->npn_protocols, protos.buf, protos.len); in _set_npn_protocols()