From 34d0d935225ce3e7bc7b6b307fbe681a6ba227f1 Mon Sep 17 00:00:00 2001 From: wangduanduan Date: Mon, 28 Jul 2025 22:53:10 +0800 Subject: [PATCH] wip --- daemon/dtls.c | 2 +- include/dtls.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/dtls.c b/daemon/dtls.c index b4ed0aeb2..1725736b2 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -600,7 +600,7 @@ static int try_connect(struct dtls_connection *d) { if (d->connected) { ilogs(crypto, LOG_INFO, "DTLS data received after handshake, code: %i", code); } else { - ilogs(crypto, LOG_DEBUG, "DTLS handshake not completed yet, current state: %s", + ilogs(crypto, LOG_DEBUG, "DTLS handshake not completed yet, current state: %s", SSL_state_string_long(d->ssl)); } break; diff --git a/include/dtls.h b/include/dtls.h index fa00e2125..ebb1c657a 100644 --- a/include/dtls.h +++ b/include/dtls.h @@ -67,6 +67,7 @@ void dtls_shutdown(struct packet_stream *ps); + INLINE void __dtls_hash(const struct dtls_hash_func *hash_func, X509 *cert, unsigned char *out, unsigned int bufsize) {