From 70791169945940b07065898f1e1c4233cd1248e2 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 adc1e2035304a4993fbfcdac8a19fa8b36c72b5d) --- 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 810173b37..f4fec6483 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)) @@ -662,7 +662,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 80238658e..19b88727b 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,