Lines Matching refs:thisctx
403 static int validate_context(SSL *s, unsigned int extctx, unsigned int thisctx) in validate_context() argument
406 if ((thisctx & extctx) == 0) in validate_context()
419 int tls_validate_all_contexts(SSL *s, unsigned int thisctx, RAW_EXTENSION *exts) in tls_validate_all_contexts() argument
426 if ((thisctx & SSL_EXT_CLIENT_HELLO) != 0) in tls_validate_all_contexts()
428 else if ((thisctx & SSL_EXT_TLS1_2_SERVER_HELLO) != 0) in tls_validate_all_contexts()
450 if (!validate_context(s, context, thisctx)) in tls_validate_all_contexts()
511 int extension_is_relevant(SSL *s, unsigned int extctx, unsigned int thisctx) in extension_is_relevant() argument
519 if ((thisctx & SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST) != 0) in extension_is_relevant()
538 && (thisctx & SSL_EXT_CLIENT_HELLO) == 0) in extension_is_relevant()
777 int should_add_extension(SSL *s, unsigned int extctx, unsigned int thisctx, in should_add_extension() argument
781 if ((extctx & thisctx) == 0) in should_add_extension()
785 if (!extension_is_relevant(s, extctx, thisctx) in should_add_extension()
787 && (thisctx & SSL_EXT_CLIENT_HELLO) != 0 in should_add_extension()