Lines Matching refs:thisctx
389 static int validate_context(SSL *s, unsigned int extctx, unsigned int thisctx) in validate_context() argument
392 if ((thisctx & extctx) == 0) in validate_context()
405 int tls_validate_all_contexts(SSL *s, unsigned int thisctx, RAW_EXTENSION *exts) in tls_validate_all_contexts() argument
412 if ((thisctx & SSL_EXT_CLIENT_HELLO) != 0) in tls_validate_all_contexts()
414 else if ((thisctx & SSL_EXT_TLS1_2_SERVER_HELLO) != 0) in tls_validate_all_contexts()
436 if (!validate_context(s, context, thisctx)) in tls_validate_all_contexts()
497 int extension_is_relevant(SSL *s, unsigned int extctx, unsigned int thisctx) in extension_is_relevant() argument
505 if ((thisctx & SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST) != 0) in extension_is_relevant()
524 && (thisctx & SSL_EXT_CLIENT_HELLO) == 0) in extension_is_relevant()
763 int should_add_extension(SSL *s, unsigned int extctx, unsigned int thisctx, in should_add_extension() argument
767 if ((extctx & thisctx) == 0) in should_add_extension()
771 if (!extension_is_relevant(s, extctx, thisctx) in should_add_extension()
773 && (thisctx & SSL_EXT_CLIENT_HELLO) != 0 in should_add_extension()