1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/lib/crypto
Jo Sutton 46955bc766 lib:crypto: Fix Coverity build
The Coverity build is failing with the following errors:

[1936/5164] Compiling lib/crypto/gkdi.c
In file included from /usr/lib64/gcc/x86_64-suse-linux/7/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from ../../lib/crypto/../replace/replace.h:64,
                 from ../../source4/include/includes.h:23,
                 from ../../lib/crypto/gkdi.c:21:
../../lib/crypto/gkdi.c: In function ‘gkdi_get_key_start_time’:
../../lib/crypto/gkdi.c:197:4: error: initializer element is not constant
    UINT64_MAX /
    ^
../../lib/crypto/gkdi.c:197:4: note: (near initialization for ‘max_gkid.l0_idx’)
../../lib/crypto/gkdi.c:200:4: error: initializer element is not constant
    UINT64_MAX /
    ^
../../lib/crypto/gkdi.c:200:4: note: (near initialization for ‘max_gkid.l1_idx’)
../../lib/crypto/gkdi.c:204:4: error: initializer element is not constant
    UINT64_MAX / gkdi_key_cycle_duration %
    ^
../../lib/crypto/gkdi.c:204:4: note: (near initialization for ‘max_gkid.l2_idx’)

Fix the build by removing the ‘static’ specifier on this constant.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-04-24 05:16:29 +00:00
..
tests lib:crypto: Add test for samba_gnutls_sp800_108_derive_key() using NIST test vectors 2023-11-30 01:03:28 +00:00
aes.h Remove redundant check and fallback for AES CMAC 128 as we now require GnuTLS 3.6.13 2023-06-30 14:00:38 +00:00
crypto.h Remove redundant check and fallback for AES CMAC 128 as we now require GnuTLS 3.6.13 2023-06-30 14:00:38 +00:00
gkdi.c lib:crypto: Fix Coverity build 2024-04-24 05:16:29 +00:00
gkdi.h s4-dsdb: Populate new GKDI root keys from the server configuration object 2024-03-28 01:50:41 +00:00
gmsa.c lib:crypto: Reformat source code 2024-04-16 03:58:31 +00:00
gmsa.h lib:crypto: Add functions for deriving gMSA passwords 2024-02-16 02:41:36 +00:00
gnutls_aead_aes_256_cbc_hmac_sha512.c lib:crypto: Change error return to SMB_ASSERT() 2022-10-05 04:23:32 +00:00
gnutls_arcfour_confounded_md5.c lib:crypto: Fix code spelling 2023-09-11 02:42:41 +00:00
gnutls_error.c libcli:util: Add gnutls_error_to_werror() 2019-06-27 12:54:22 +00:00
gnutls_helpers.h lib/crypto: add legacy_gnutls_server_end_point_cb() if needed 2024-04-23 23:50:33 +00:00
gnutls_server_end_point_cb.c lib/crypto: add legacy_gnutls_server_end_point_cb() if needed 2024-04-23 23:50:33 +00:00
gnutls_sp800_108.c lib:crypto: Remove redundant array zeroing 2023-12-08 02:28:33 +00:00
gnutls_weak_crypto.c lib:crypto: Improve comment about weak crypto 2023-04-03 03:56:35 +00:00
md4.c lib:crypto: Fix undefined behavior in md4 2018-11-22 22:13:27 +01:00
md4.h
md4test.c lib:crypto: Include only the required header files 2019-02-27 07:59:26 +00:00
py_crypto.c Use python.h from libreplace 2023-11-20 15:37:33 +00:00
REQUIREMENTS crypto: Update REQUIREMENTS file with new minimum version 2019-08-21 09:57:30 +00:00
test_gkdi_key_derivation.c lib:crypto: Fix code formatting 2024-02-16 02:41:36 +00:00
test_gkdi.c lib:crypto: Add more unit tests for GKDI functions 2024-04-21 22:10:36 +00:00
wscript lib/crypto: add legacy_gnutls_server_end_point_cb() if needed 2024-04-23 23:50:33 +00:00