SSL_clear_options(ctx.qc->tls, mask_value);
options = SSL_set_options(ctx.qc->tls, or_value);
- if (ctx.xso != NULL
- && ctx.xso->stream != NULL
- && ctx.xso->stream->rstream != NULL)
- ossl_quic_rstream_set_cleanse(ctx.xso->stream->rstream,
- (options & SSL_OP_CLEANSE_PLAINTEXT) != 0);
+ if (ctx.xso != NULL && ctx.xso->stream != NULL) {
+ int cleanse = ((options & SSL_OP_CLEANSE_PLAINTEXT) != 0);
+
+ if (ctx.xso->stream->rstream != NULL)
+ ossl_quic_rstream_set_cleanse(ctx.xso->stream->rstream, cleanse);
+ if (ctx.xso->stream->sstream != NULL)
+ ossl_quic_sstream_set_cleanse(ctx.xso->stream->sstream, cleanse);
+ }
quic_unlock(ctx.qc);
return options;
return NULL;
}
-int ossl_quic_set_ssl_op(SSL *ssl, uint64_t op)
-{
- QCTX ctx;
- int cleanse;
-
- if (!expect_quic_with_stream_lock(ssl, /*remote_init=*/-1, &ctx))
- return 0;
-
- if (ctx.xso->stream == NULL)
- goto out;
-
- cleanse = (op & SSL_OP_CLEANSE_PLAINTEXT) != 0;
- if (ctx.xso->stream->rstream != NULL)
- ossl_quic_rstream_set_cleanse(ctx.xso->stream->rstream, cleanse);
- if (ctx.xso->stream->sstream != NULL)
- ossl_quic_sstream_set_cleanse(ctx.xso->stream->sstream, cleanse);
-
- out:
- quic_unlock(ctx.qc);
- return 1;
-}
-
/*
* Internal Testing APIs
* =====================