Lines Matching defs:context
32 unsigned int context,
47 unsigned int context,
59 unsigned int context,
113 int custom_ext_parse(SSL *s, unsigned int context, unsigned int ext_type,
122 if ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO)) != 0)
131 if (!extension_is_relevant(s, meth->context, context))
134 if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO
152 if ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_3_CERTIFICATE_REQUEST))
160 if (meth->parse_cb(s, ext_type, context, ext_data, ext_size, x, chainidx,
173 int custom_ext_add(SSL *s, int context, WPACKET *pkt, X509 *x, size_t chainidx,
187 if (!should_add_extension(s, meth->context, context, maxversion))
190 if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO
203 if ((context & SSL_EXT_CLIENT_HELLO) == 0 && meth->add_cb == NULL)
207 int cb_retval = meth->add_cb(s, meth->ext_type, context, &out,
224 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg);
228 if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
234 meth->free_cb(s, meth->ext_type, context, out,
247 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg);
347 unsigned int context,
371 && (context & SSL_EXT_CLIENT_HELLO) != 0
399 meth->context = context;
412 unsigned int context,
437 context,
482 unsigned int context,
488 return add_custom_ext_intern(ctx, ENDPOINT_BOTH, ext_type, context, add_cb,