1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli
Gary Lockyer 1432314f5c libcli smb smb2: Use correct enumeration type
Clang gives the following error:
../../libcli/smb/smb2_signing.c:547:48: error:
   implicit conversion from enumeration type 'gnutls_mac_algorithm_t'
   to different enumeration type 'gnutls_digest_algorithm_t'
   [-Werror,-Wenum-conversion]
   const size_t digest_len = gnutls_hash_get_len(GNUTLS_MAC_SHA256);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~

Should be using GNUTLS_DIG_SHA256, which is set to GNUTLS_MAC_SHA256.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Mon Mar 29 23:19:24 UTC 2021 on sn-devel-184
2021-03-29 23:19:24 +00:00
..
auth CVE-2020-1472(ZeroLogon): libcli/auth: reject weak client challenges in netlogon_creds_server_init() 2020-09-18 12:48:38 +00:00
cldap CVE-2020-10704: libcli ldap_message: Add search size limits to ldap_decode 2020-05-04 02:59:32 +00:00
dns libcli: Add required #includes to libcli/dns/dns.h 2020-12-11 18:29:32 +00:00
drsuapi smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
http http_conn.c: fix "void function cannot return value" error 2020-11-10 06:53:42 +00:00
ldap libcli: Use GUID_to_ndr_buf() in ldap_encode_ndr_GUID() 2020-10-02 21:30:33 +00:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth libcli: Simplify tstream_npa_connect_readv_done() 2021-03-09 22:36:28 +00:00
nbt libcli: nbt: Fix resolve_lmhosts_file_as_sockaddr() to return size_t * count of addresses. 2020-09-15 10:09:37 +00:00
netlogon libcls/netlogon: clang: Fix 'initialization value is never read' 2019-07-16 22:52:24 +00:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
security libcli: Add file specific access flags to sddl 2021-03-24 20:31:30 +00:00
smb libcli smb smb2: Use correct enumeration type 2021-03-29 23:19:24 +00:00
smbreadline libcli:smbreadline: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
util libcli: Align a few integer types 2020-11-30 22:24:37 +00:00