libcli:smb: Add forward declaration for gnutls_hmac_hd_t
authorAndreas Schneider <asn@samba.org>
Thu, 8 Aug 2019 09:57:02 +0000 (11:57 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Aug 2019 19:24:29 +0000 (19:24 +0000)
This file is basically included everywhere. So use a forward declaration
for gnutls_hmac_hd_t. This way we don't have to link everthing against
gnutls to get access to the header path.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smb/smb2_signing.h

index 6e1682955c9abe8e16e71af188fb9dd69250a455..96a002f4a0ce410bfcfbcad8a32e560708c2eb60 100644 (file)
 #ifndef _LIBCLI_SMB_SMB2_SIGNING_H_
 #define _LIBCLI_SMB_SMB2_SIGNING_H_
 
-#include <gnutls/gnutls.h>
-#include <gnutls/crypto.h>
-
 struct iovec;
+ /* Forward declaration of GnuTLS typedefs */
+struct hmac_hd_st;
+typedef struct hmac_hd_st* gnutls_hmac_hd_t;
 
 struct smb2_signing_key {
        gnutls_hmac_hd_t hmac_hnd;