QUIC APL: Report that we do not support SSL_clear correctly
authorHugo Landau <hlandau@openssl.org>
Wed, 30 Aug 2023 15:18:50 +0000 (16:18 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 1 Sep 2023 13:02:54 +0000 (14:02 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21905)

ssl/quic/quic_impl.c

index c3900580f79f439c15dc4ad7c119a975fa52045f..7dfe25c916f073ad4799835994c58e70373e12b9 100644 (file)
@@ -567,8 +567,8 @@ int ossl_quic_clear(SSL *s)
     if (!expect_quic(s, &ctx))
         return 0;
 
-    /* TODO(QUIC FUTURE): Currently a no-op. */
-    return 1;
+    ERR_raise(ERR_LIB_SSL, ERR_R_UNSUPPORTED);
+    return 0;
 }
 
 int ossl_quic_conn_set_override_now_cb(SSL *s,