Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23360)
if (!expect_quic_conn_only(s, &ctx))
return 0;
+ if (value == NULL)
+ return QUIC_RAISE_NON_NORMAL_ERROR(&ctx,
+ ERR_R_PASSED_INVALID_ARGUMENT, NULL);
+
switch (id) {
case SSL_VALUE_QUIC_IDLE_TIMEOUT:
return qc_getset_idle_timeout(&ctx, class_, value, NULL);
int SSL_get_value_uint(SSL *s, uint32_t class_, uint32_t id,
uint64_t *value)
{
- if (value == NULL) {
- ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
- return 0;
- }
-
#ifndef OPENSSL_NO_QUIC
if (IS_QUIC(s))
return ossl_quic_get_value_uint(s, class_, id, value);