]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Incorporate more review feedback
authorRobert Schulze <robert@clickhouse.com>
Wed, 19 Jun 2024 08:40:16 +0000 (08:40 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Jun 2024 13:32:39 +0000 (15:32 +0200)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24673)

(cherry picked from commit af82623d32962b3eff5b0f0b0dedec5eb730b231)

ssl/ssl_local.h

index a5f1e169002699c83949d7ddfe4030a19230ed32..c5eb7bc395475a59c8d7bb7d2b99b1360224d2fa 100644 (file)
@@ -532,7 +532,6 @@ struct ssl_session_st {
      * certificate is not ok, we must remember the error for session reuse:
      */
     long verify_result;         /* only for servers */
-    CRYPTO_REF_COUNT references;
     OSSL_TIME timeout;
     OSSL_TIME time;
     OSSL_TIME calc_timeout;
@@ -574,9 +573,10 @@ struct ssl_session_st {
 
     /*
      * These are used to make removal of session-ids more efficient and to
-     * implement a maximum cache size.
+     * implement a maximum cache size. Access requires protection of ctx->lock.
      */
     struct ssl_session_st *prev, *next;
+    CRYPTO_REF_COUNT references;
 };
 
 /* Extended master secret support */