Lines Matching refs:ctx
404 int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx, unsigned int ext_type) in SSL_CTX_has_client_custom_ext() argument
406 return custom_ext_find(&ctx->cert->custext, ENDPOINT_CLIENT, ext_type, in SSL_CTX_has_client_custom_ext()
410 int ossl_tls_add_custom_ext_intern(SSL_CTX *ctx, custom_ext_methods *exts, in ossl_tls_add_custom_ext_intern() argument
429 exts = &ctx->cert->custext; in ossl_tls_add_custom_ext_intern()
439 && ctx != NULL in ossl_tls_add_custom_ext_intern()
440 && SSL_CTX_ct_is_enabled(ctx)) in ossl_tls_add_custom_ext_intern()
472 meth->ext_flags = (ctx == NULL) ? SSL_EXT_FLAG_CONN : 0; in ossl_tls_add_custom_ext_intern()
479 static int add_old_custom_ext(SSL_CTX *ctx, ENDPOINT role, in add_old_custom_ext() argument
505 ret = ossl_tls_add_custom_ext_intern(ctx, NULL, role, ext_type, in add_old_custom_ext()
522 int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx, unsigned int ext_type, in SSL_CTX_add_client_custom_ext() argument
528 return add_old_custom_ext(ctx, ENDPOINT_CLIENT, ext_type, in SSL_CTX_add_client_custom_ext()
536 int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx, unsigned int ext_type, in SSL_CTX_add_server_custom_ext() argument
542 return add_old_custom_ext(ctx, ENDPOINT_SERVER, ext_type, in SSL_CTX_add_server_custom_ext()
550 int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type, in SSL_CTX_add_custom_ext() argument
557 return ossl_tls_add_custom_ext_intern(ctx, NULL, ENDPOINT_BOTH, ext_type, in SSL_CTX_add_custom_ext()