There were no traces to diagnose qc_ssl_sess_init() failures from QUIC traces.
This patch add calls to TRACE_DEVEL() into qc_ssl_sess_init() and its caller
(qc_alloc_ssl_sock_ctx()). This was useful at least to diagnose SSL context
initialization failures when porting QUIC to the new OpenSSL 3.5 QUIC API.
Should be easily backported as far as 2.6.
*ssl = SSL_new(ssl_ctx);
if (!*ssl) {
if (!retry--)
- goto leave;
+ goto err;
pool_gc(NULL);
goto retry;
SSL_free(*ssl);
*ssl = NULL;
if (!retry--)
- goto leave;
+ goto err;
pool_gc(NULL);
goto retry;
leave:
TRACE_LEAVE(QUIC_EV_CONN_NEW, qc);
return ret;
+ err:
+ TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc);
+ goto leave;
}
#ifdef HAVE_SSL_0RTT_QUIC
return !ret;
err:
+ TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc);
pool_free(pool_head_quic_ssl_sock_ctx, ctx);
goto leave;
}