Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20061)
will might lead to connection failures (see L<SSL_new(3)>)
for a description of the method's properties.
+This function is not supported on QUIC SSL objects.
+
=head1 WARNINGS
SSL_clear() resets the SSL object to allow for another connection. The
/* No-op. */
}
-/* SSL_reset */
+/* SSL_clear (ssl_reset method) */
int ossl_quic_reset(SSL *s)
{
QCTX ctx;
if (!expect_quic(s, &ctx))
return 0;
- /* TODO(QUIC); Currently a no-op. */
- return 1;
+ /* Not supported. */
+ return 0;
}
-/* SSL_clear */
+/* ssl_clear method (unused) */
int ossl_quic_clear(SSL *s)
{
QCTX ctx;
if (!TEST_ptr_null(SSL_dup(ssl)))
goto err;
+ /* No clear */
+ if (!TEST_false(SSL_clear(ssl)))
+ goto err;
+
testresult = 1;
err:
SSL_free(ssl);