From: Andreas Schneider Date: Fri, 5 Jul 2019 08:38:44 +0000 (+0200) Subject: lib:crypto: Add GNUTLS_FIPS140_SET_(LAX|STRICT)_MODE to helpers X-Git-Tag: talloc-2.3.0~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31a943fa0890438cffc67a566373f36c94c0a5a8;p=thirdparty%2Fsamba.git lib:crypto: Add GNUTLS_FIPS140_SET_(LAX|STRICT)_MODE to helpers BUG: https://bugzilla.samba.org/show_bug.cgi?id=14031 Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/lib/crypto/gnutls_helpers.h b/lib/crypto/gnutls_helpers.h index 7c950c79525..8a2a49baf73 100644 --- a/lib/crypto/gnutls_helpers.h +++ b/lib/crypto/gnutls_helpers.h @@ -18,9 +18,20 @@ #ifndef _GNUTLS_HELPERS_H #define _GNUTLS_HELPERS_H +#include + #include "libcli/util/ntstatus.h" #include "libcli/util/werror.h" +/* Those macros are only available in GnuTLS >= 3.6.4 */ +#ifndef GNUTLS_FIPS140_SET_LAX_MODE +#define GNUTLS_FIPS140_SET_LAX_MODE() +#endif + +#ifndef GNUTLS_FIPS140_SET_STRICT_MODE +#define GNUTLS_FIPS140_SET_STRICT_MODE() +#endif + NTSTATUS _gnutls_error_to_ntstatus(int gnutls_rc, NTSTATUS blocked_status, const char *function, diff --git a/source3/modules/hash_inode.c b/source3/modules/hash_inode.c index 231538c72cb..a9144621901 100644 --- a/source3/modules/hash_inode.c +++ b/source3/modules/hash_inode.c @@ -22,15 +22,7 @@ #include #include - -/* Those macros are only available in GnuTLS >= 3.6.4 */ -#ifndef GNUTLS_FIPS140_SET_LAX_MODE -#define GNUTLS_FIPS140_SET_LAX_MODE() -#endif - -#ifndef GNUTLS_FIPS140_SET_STRICT_MODE -#define GNUTLS_FIPS140_SET_STRICT_MODE() -#endif +#include "lib/crypto/gnutls_helpers.h" SMB_INO_T hash_inode(const SMB_STRUCT_STAT *sbuf, const char *sname) {