Lines Matching refs:extctx
403 static int validate_context(SSL *s, unsigned int extctx, unsigned int thisctx)
406 if ((thisctx & extctx) == 0)
410 if ((extctx & SSL_EXT_TLS_ONLY) != 0)
412 } else if ((extctx & SSL_EXT_DTLS_ONLY) != 0) {
507 * Check whether the context defined for an extension |extctx| means whether
511 int extension_is_relevant(SSL *s, unsigned int extctx, unsigned int thisctx)
525 && (extctx & SSL_EXT_TLS_IMPLEMENTATION_ONLY) != 0)
527 && (extctx & SSL_EXT_SSL3_ALLOWED) == 0)
536 || (is_tls13 && (extctx & SSL_EXT_TLS1_2_AND_BELOW_ONLY) != 0)
537 || (!is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0
539 || (s->server && !is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0)
540 || (s->hit && (extctx & SSL_EXT_IGNORE_ON_RESUMPTION) != 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)
786 || ((extctx & SSL_EXT_TLS1_3_ONLY) != 0