From 0a13b5900a79364beb2591b096ff74e4ed0aea56 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 27 Aug 2025 13:17:14 -0400 Subject: [PATCH] MT#55283 more specific callback arg name Change-Id: I79adcb7f5c93dabe8db53b6203f64fc7f8cb7719 (cherry picked from commit afdeea876a34c72b885aa21b558d2d240bcc7da1) (cherry picked from commit 979a6b63507273bbf217e60cd2fe0106a5ccbacd) --- daemon/dtls.c | 4 ++-- include/dtls.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/dtls.c b/daemon/dtls.c index 5f895447c..8e767ddf2 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -490,7 +490,7 @@ static int verify_callback(int ok, X509_STORE_CTX *store) { d = SSL_get_app_data(ssl); if (d->ssl != ssl) return 0; - ps = d->ptr; + ps = d->ps; if (!ps) return 0; if (PS_ISSET(ps, FINGERPRINT_VERIFIED)) @@ -670,7 +670,7 @@ int dtls_connection_init(struct dtls_connection *d, struct packet_stream *ps, in dtls_connection_cleanup(d); } - d->ptr = ps; + d->ps = ps; ilogs(crypto, LOG_DEBUG, "Creating %s DTLS connection context", active ? "active" : "passive"); diff --git a/include/dtls.h b/include/dtls.h index ebb1c657a..3372e47d7 100644 --- a/include/dtls.h +++ b/include/dtls.h @@ -42,7 +42,7 @@ struct dtls_connection { SSL_CTX *ssl_ctx; SSL *ssl; BIO *r_bio, *w_bio; - void *ptr; + struct packet_stream *ps; unsigned char tls_id[16]; unsigned int init:1, active:1,