Skip to content

Commit

Permalink
Make ssl.h include order independant
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Svensson <[email protected]>
  • Loading branch information
bjosv committed Sep 5, 2024
1 parent 8ad9867 commit 1047988
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/valkey/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 1047988

Please sign in to comment.