* Like expect_quic(), but fails if called on a QUIC_XSO. ctx->xso may still
* be non-NULL if the QCSO has a default stream.
*/
-static int ossl_unused expect_quic_conn_only(const SSL *s, int in_io, QCTX *ctx)
+static int ossl_unused expect_quic_conn_only(const SSL *s, QCTX *ctx)
{
if (!expect_quic(s, ctx))
return 0;
- ctx->in_io = in_io;
if (ctx->is_stream)
return QUIC_RAISE_NON_NORMAL_ERROR(ctx, SSL_R_CONN_USE_ONLY, NULL);
{
QCTX ctx;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return NULL;
return quic_conn_stream_new(&ctx, flags, /*need_lock=*/1);
{
QCTX ctx;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return 0;
quic_lock(ctx.qc);
QCTX ctx;
QUIC_XSO *xso = NULL;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return NULL;
quic_lock(ctx.qc);
QUIC_XSO *xso;
int nref;
- if (!expect_quic_conn_only(conn, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(conn, &ctx))
return 0;
if (stream == NULL || stream->type != SSL_TYPE_QUIC_XSO)
int ret = 1;
QCTX ctx;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return 0;
quic_lock(ctx.qc);
QUIC_XSO *xso;
OSSL_RTT_INFO rtt_info;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return NULL;
quic_lock(ctx.qc);
QCTX ctx;
size_t v;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return 0;
quic_lock(ctx.qc);
QCTX ctx;
const QUIC_TERMINATE_CAUSE *tc;
- if (!expect_quic_conn_only(ssl, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(ssl, &ctx))
return -1;
tc = ossl_quic_channel_get_terminate_cause(ctx.qc->ch);
{
QCTX ctx;
- if (!expect_quic_conn_only(ssl, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(ssl, &ctx))
return 0;
switch (update_type) {
{
QCTX ctx;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return 0;
switch (cmd) {
{
QCTX ctx;
- if (!expect_quic_conn_only(s, /*io=*/0, &ctx))
+ if (!expect_quic_conn_only(s, &ctx))
return NULL;
return ctx.qc->ch;