1524bc
From 595df06b59c80cbb7a484a893e1ebaf917ddddb6 Mon Sep 17 00:00:00 2001
1524bc
From: Andreas Schneider <asn@samba.org>
1524bc
Date: Thu, 8 Aug 2019 11:57:02 +0200
1524bc
Subject: [PATCH 065/187] libcli:smb: Add forward declaration for
1524bc
 gnutls_hmac_hd_t
1524bc
1524bc
This file is basically included everywhere. So use a forward declaration
1524bc
for gnutls_hmac_hd_t. This way we don't have to link everthing against
1524bc
gnutls to get access to the header path.
1524bc
1524bc
Signed-off-by: Andreas Schneider <asn@samba.org>
1524bc
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
1524bc
(cherry picked from commit 6bf6cb1643ae5e8fff66a7cbec50f58ede632666)
1524bc
---
1524bc
 libcli/smb/smb2_signing.h | 6 +++---
1524bc
 1 file changed, 3 insertions(+), 3 deletions(-)
1524bc
1524bc
diff --git a/libcli/smb/smb2_signing.h b/libcli/smb/smb2_signing.h
1524bc
index 6e1682955c9..96a002f4a0c 100644
1524bc
--- a/libcli/smb/smb2_signing.h
1524bc
+++ b/libcli/smb/smb2_signing.h
1524bc
@@ -21,10 +21,10 @@
1524bc
 #ifndef _LIBCLI_SMB_SMB2_SIGNING_H_
1524bc
 #define _LIBCLI_SMB_SMB2_SIGNING_H_
1524bc
 
1524bc
-#include <gnutls/gnutls.h>
1524bc
-#include <gnutls/crypto.h>
1524bc
-
1524bc
 struct iovec;
1524bc
+ /* Forward declaration of GnuTLS typedefs */
1524bc
+struct hmac_hd_st;
1524bc
+typedef struct hmac_hd_st* gnutls_hmac_hd_t;
1524bc
 
1524bc
 struct smb2_signing_key {
1524bc
 	gnutls_hmac_hd_t hmac_hnd;
1524bc
-- 
1524bc
2.23.0
1524bc