Remove the user_ssl field
authorMatt Caswell <matt@openssl.org>
Mon, 23 Jan 2023 14:04:26 +0000 (14:04 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 24 Jan 2023 17:16:29 +0000 (17:16 +0000)
The user_ssl field in an SSL_CONNECTION is no longer used - so remove it.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19748)

ssl/quic/quic_impl.c
ssl/ssl_lib.c
ssl/ssl_local.h

index 5b895cb48a39b6a87b57a46a6d66d192068c548a..6fb868a00450519307016b899e0e65074a0c66b3 100644 (file)
@@ -134,8 +134,6 @@ SSL *ossl_quic_new(SSL_CTX *ctx)
     qc->tls = ossl_ssl_connection_new_int(ctx, TLS_method());
     if (qc->tls == NULL || (sc = SSL_CONNECTION_FROM_SSL(qc->tls)) == NULL)
          goto err;
-    /* override the user_ssl of the inner connection */
-    sc->user_ssl = ssl_base;
 
     /* Channel is not created yet. */
     qc->ssl_mode   = qc->ssl.ctx->mode;
index ffae69bc38b67714c9383028514337be08e80dcc..1e23ec55e55ea932c2f794b7ac92cff9c91107de 100644 (file)
@@ -739,11 +739,6 @@ SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, const SSL_METHOD *method)
         goto sslerr;
     }
 
-#ifndef OPENSSL_NO_QUIC
-    /* set the parent (user visible) ssl to self */
-    s->user_ssl = ssl;
-#endif
-
     RECORD_LAYER_init(&s->rlayer, s);
 
     s->options = ctx->options;
index ea8f5aa8b4ef4e9d132969491123d48f4ef76d2a..65634a24ef41be2b51242afffc69032d793d60e4 100644 (file)
@@ -1249,10 +1249,6 @@ struct ssl_st {
 struct ssl_connection_st {
     /* type identifier and common data */
     struct ssl_st ssl;
-#ifndef OPENSSL_NO_QUIC
-    /* pointer to parent SSL of QUIC_CONNECTION or self */
-    struct ssl_st *user_ssl;
-#endif
     /*
      * protocol version (one of SSL2_VERSION, SSL3_VERSION, TLS1_VERSION,
      * DTLS1_VERSION)