Commit 1f1d1306ad for openssl.org

commit 1f1d1306ad5e190b3b169c2bdd13a61b6011dc39
Author: Daniel Kubec <kubec@openssl.foundation>
Date:   Fri Nov 13 14:09:05 2026 +0000

    TEST: verify no data is accepted after client's close_notify

    After the client has sent close_notify, it must not write anything
    further on the connection. Add a test checking that a KeyUpdate or
    CertificateRequest received after that point is ignored.

    Assisted-by: Claude:claude-fable-5-2
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
    Merge-date: Mon Nov 23 17:09:28 2026
    Merged-from: https://github.com/openssl/openssl/pull/33723

diff --git a/test/sslapitest.c b/test/sslapitest.c
index 0edcb8e9e8..b8be9bfa6d 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -13847,6 +13847,12 @@ static int test_shutdown(int tst)
             || !TEST_ptr_ne(sess = SSL_get_session(clientssl), NULL)
             || !TEST_true(SSL_SESSION_is_resumable(sess)))
             goto end;
+        /*
+         * The client must not have written anything after its close_notify:
+         * a KeyUpdate or CertificateRequest received after that is ignored.
+         */
+        if (!TEST_int_eq(BIO_pending(SSL_get_rbio(serverssl)), 0))
+            goto end;
     } else {
         /*
          * tst == 6