From 8bfb414bee0aa8426677efbb0541450915257f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Thu, 5 Sep 2024 13:17:43 +0200 Subject: [PATCH] Make ssl.h include order independant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Svensson --- include/valkey/ssl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/valkey/ssl.h b/include/valkey/ssl.h index ca096fe..9ab2820 100644 --- a/include/valkey/ssl.h +++ b/include/valkey/ssl.h @@ -35,6 +35,9 @@ extern "C" { #endif +/* Forward declarations for structs defined elsewhere. */ +struct valkeyContext; + /* This is the underlying struct for SSL in ssl.h, which is not included to * keep build dependencies short here. */ @@ -147,13 +150,13 @@ void valkeyFreeSSLContext(valkeySSLContext *valkey_ssl_ctx); * previously created using valkeyCreateSSLContext(). */ -int valkeyInitiateSSLWithContext(valkeyContext *c, valkeySSLContext *valkey_ssl_ctx); +int valkeyInitiateSSLWithContext(struct valkeyContext *c, valkeySSLContext *valkey_ssl_ctx); /** * Initiate SSL/TLS negotiation on a provided OpenSSL SSL object. */ -int valkeyInitiateSSL(valkeyContext *c, struct ssl_st *ssl); +int valkeyInitiateSSL(struct valkeyContext *c, struct ssl_st *ssl); #ifdef __cplusplus }