}
-static int expect_quic(const SSL *s, QCTX *ctx)
+static int expect_quic_cs(const SSL *s, QCTX *ctx)
{
return expect_quic_as(s, ctx, QCTX_C | QCTX_S);
}
-static int expect_quic_any(const SSL *s, QCTX *ctx)
+static int expect_quic_csl(const SSL *s, QCTX *ctx)
{
return expect_quic_as(s, ctx, QCTX_C | QCTX_S | QCTX_L);
}
}
/*
- * Like expect_quic(), but requires a QUIC_XSO be contextually available. In
+ * Like expect_quic_cs(), but requires a QUIC_XSO be contextually available. In
* other words, requires that the passed QSO be a QSSO or a QCSO with a default
* stream.
*
}
/*
- * Like expect_quic(), but fails if called on a QUIC_XSO. ctx->xso may still
+ * Like expect_quic_cs(), 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, QCTX *ctx)
int is_default;
/* We should never be called on anything but a QSO. */
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return;
if (ctx.is_listener) {
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
ERR_raise(ERR_LIB_SSL, ERR_R_UNSUPPORTED);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
ERR_raise(ERR_LIB_SSL, ERR_R_UNSUPPORTED);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return;
#if !defined(OPENSSL_NO_QUIC_THREAD_ASSIST)
QCTX ctx;
uint64_t hs_mask_value, hs_or_value, ret;
- if (!expect_quic(ssl, &ctx))
+ if (!expect_quic_cs(ssl, &ctx))
return 0;
qctx_lock(&ctx);
{
QCTX ctx;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return;
/* Returns 0 if no change. */
{
QCTX ctx;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return;
/* Returns 0 if no change. */
QCTX ctx;
QUIC_PORT *port;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return NULL;
port = ossl_quic_obj_get0_port(ctx.obj);
QCTX ctx;
QUIC_PORT *port;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return NULL;
port = ossl_quic_obj_get0_port(ctx.obj);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
if (ctx.is_stream)
int ret = 0;
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
if (ctx.qc->started)
{
QCTX ctx;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return 0;
qctx_lock(&ctx);
QCTX ctx;
OSSL_TIME deadline = ossl_time_infinite();
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
QUIC_PORT *port = NULL;
BIO *net_rbio;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return 0;
port = ossl_quic_obj_get0_port(ctx.obj);
QUIC_PORT *port = NULL;
BIO *net_wbio;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return 0;
port = ossl_quic_obj_get0_port(ctx.obj);
QCTX ctx;
int ret;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
int ret;
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
int no_block = ((flags & SSL_SHUTDOWN_FLAG_NO_BLOCK) != 0);
int wait_peer = ((flags & SSL_SHUTDOWN_FLAG_WAIT_PEER) != 0);
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return -1;
if (ctx.is_stream) {
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
switch (cmd) {
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return;
/* Cannot be changed after handshake started */
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return;
/* Cannot be changed after handshake started */
int ret;
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock_for_io(&ctx);
QCTX ctx;
int net_error, last_error;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
QCTX ctx;
int w;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return SSL_NOTHING;
qctx_lock(&ctx);
*bytes_read = 0;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock_for_io(&ctx);
QCTX ctx;
size_t avail = 0;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
QCTX ctx;
QUIC_DEMUX *demux;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return 0;
qctx_lock(&ctx);
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return NULL;
return &ctx.qc->obj.ssl;
{
QCTX ctx;
- if (!expect_quic_any(s, &ctx))
+ if (!expect_quic_csl(s, &ctx))
return NULL;
return ctx.ql != NULL ? &ctx.ql->obj.ssl : NULL;
{
QCTX ctx;
- if (!expect_quic(s, &ctx))
+ if (!expect_quic_cs(s, &ctx))
return SSL_STREAM_TYPE_BIDI;
if (ctx.xso == NULL) {
case SSL_VALUE_STREAM_WRITE_BUF_SIZE:
case SSL_VALUE_STREAM_WRITE_BUF_USED:
case SSL_VALUE_STREAM_WRITE_BUF_AVAIL:
- return expect_quic(s, ctx);
+ return expect_quic_cs(s, ctx);
default:
return expect_quic_conn_only(s, ctx);
}
QCTX ctx;
uint64_t revents = 0;
- if (!expect_quic(ssl, &ctx))
+ if (!expect_quic_cs(ssl, &ctx))
return 0;
qctx_lock(&ctx);