1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
samba-mirror/libcli/smb
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
..
read_smb.c
read_smb.h
smb1cli_close.c
smb1cli_create.c
smb1cli_echo.c
smb1cli_read.c
smb1cli_session.c libcli/smb: clang: Fix 'value stored to 'p' is never read' 2019-07-11 04:08:13 +00:00
smb1cli_trans.c libcli smb smb1cli_trans: fix ubsan warning 2019-10-16 18:00:31 +00:00
smb1cli_write.c
smb2_constants.h libcli/smb: add smb2_signing_key_{copy,sign_create,cipher_create}() helpers 2021-03-17 00:49:32 +00:00
smb2_create_blob.c libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_blob.h libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_ctx.h libsmb: Fix a typo 2020-01-30 12:27:40 +00:00
smb2_lease.c
smb2_lease.h
smb2_lock.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb2_negotiate_context.c libcli: Align integer types 2020-03-10 23:08:19 +00:00
smb2_negotiate_context.h libcli/smb: introduce struct smb3_encryption_capabilities 2021-03-17 00:49:32 +00:00
smb2_posix.c smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_posix.h smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_signing.c libcli smb smb2: Use correct enumeration type 2021-03-29 23:19:24 +00:00
smb2_signing.h libcli/smb: no longer pass protocol to smb2_signing_{encrypt,decrypt}_pdu() 2021-03-17 00:49:32 +00:00
smb2cli_close.c
smb2cli_create.c libcli: Add tevent_req_received() calls to smb2cli_create_recv() 2020-06-15 17:59:39 +00:00
smb2cli_echo.c
smb2cli_flush.c
smb2cli_ioctl.c libcli/smb: allow unexpected padding in SMB2 IOCTL responses 2021-01-15 08:36:34 +00:00
smb2cli_notify.c
smb2cli_query_directory.c
smb2cli_query_info.c
smb2cli_read.c
smb2cli_session.c
smb2cli_set_info.c
smb2cli_tcon.c
smb2cli_write.c
smb_common.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb_constants.h s4:torture/smb2: add samba3.smb2.ioctl.bug14607 2021-01-15 07:26:29 +00:00
smb_seal.c
smb_seal.h
smb_signing.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb_signing.h libcli:smb: Return NTSTATUS for smb_key_derivation() 2019-05-21 00:03:21 +00:00
smb_unix_ext.h
smb_util.h libcli:smb: Add smb_encryption_setting_translate() 2020-08-19 16:22:40 +00:00
smbXcli_base.c libcli/smb: make use of smb3_capabilities.encryption 2021-03-17 00:49:32 +00:00
smbXcli_base.h libcli/smb: pass smb3_capabilities to smbXcli_conn_create() 2021-03-17 00:49:32 +00:00
test_smb1cli_session.c
test_util_translate.c libcli:smb: Add smb_encryption_setting_translate() 2020-08-19 16:22:40 +00:00
tstream_smbXcli_np.c
tstream_smbXcli_np.h
util.c libcli: Align integer types 2020-11-30 22:24:37 +00:00
wscript libcli:smb: Add smb_signing_setting_translate() 2020-08-19 16:22:40 +00:00