Lines Matching defs:thisctx
403 static int validate_context(SSL *s, unsigned int extctx, unsigned int thisctx)
406 if ((thisctx & extctx) == 0)
419 int tls_validate_all_contexts(SSL *s, unsigned int thisctx, RAW_EXTENSION *exts)
426 if ((thisctx & SSL_EXT_CLIENT_HELLO) != 0)
428 else if ((thisctx & SSL_EXT_TLS1_2_SERVER_HELLO) != 0)
450 if (!validate_context(s, context, thisctx))
508 * the extension is relevant for the current context |thisctx| or not. Returns
511 int extension_is_relevant(SSL *s, unsigned int extctx, unsigned int thisctx)
519 if ((thisctx & SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST) != 0)
538 && (thisctx & SSL_EXT_CLIENT_HELLO) == 0)
777 int should_add_extension(SSL *s, unsigned int extctx, unsigned int thisctx,
781 if ((extctx & thisctx) == 0)
785 if (!extension_is_relevant(s, extctx, thisctx)
787 && (thisctx & SSL_EXT_CLIENT_HELLO) != 0