mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
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 <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
a31a40b41a
commit
31a943fa08
@ -18,9 +18,20 @@
|
||||
#ifndef _GNUTLS_HELPERS_H
|
||||
#define _GNUTLS_HELPERS_H
|
||||
|
||||
#include <gnutls/gnutls.h>
|
||||
|
||||
#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,
|
||||
|
@ -22,15 +22,7 @@
|
||||
|
||||
#include <gnutls/gnutls.h>
|
||||
#include <gnutls/crypto.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
|
||||
#include "lib/crypto/gnutls_helpers.h"
|
||||
|
||||
SMB_INO_T hash_inode(const SMB_STRUCT_STAT *sbuf, const char *sname)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user