b6b438
From fdbe1754e49e1820976ce24707d60e10c9745552 Mon Sep 17 00:00:00 2001
b6b438
From: Andreas Schneider <asn@samba.org>
b6b438
Date: Mon, 11 Nov 2019 16:39:24 +0100
b6b438
Subject: [PATCH 196/208] auth:ntlmssp: Mark as weak_crypto
b6b438
b6b438
Signed-off-by: Andreas Schneider <asn@samba.org>
b6b438
---
b6b438
 auth/gensec/gensec_start.c | 1 +
b6b438
 auth/ntlmssp/ntlmssp.c     | 2 ++
b6b438
 2 files changed, 3 insertions(+)
b6b438
b6b438
diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c
b6b438
index 860c974f056..d2d62d6652e 100644
b6b438
--- a/auth/gensec/gensec_start.c
b6b438
+++ b/auth/gensec/gensec_start.c
b6b438
@@ -32,6 +32,7 @@
b6b438
 #include "lib/util/tsort.h"
b6b438
 #include "lib/util/samba_modules.h"
b6b438
 #include "lib/util/base64.h"
b6b438
+#include "lib/crypto/gnutls_helpers.h"
b6b438
 
b6b438
 #undef DBGC_CLASS
b6b438
 #define DBGC_CLASS DBGC_AUTH
b6b438
diff --git a/auth/ntlmssp/ntlmssp.c b/auth/ntlmssp/ntlmssp.c
b6b438
index 37434fbb0c2..745f2628d21 100644
b6b438
--- a/auth/ntlmssp/ntlmssp.c
b6b438
+++ b/auth/ntlmssp/ntlmssp.c
b6b438
@@ -305,6 +305,7 @@ static const struct gensec_security_ops gensec_ntlmssp_security_ops = {
b6b438
 	.name		= "ntlmssp",
b6b438
 	.sasl_name	= GENSEC_SASL_NAME_NTLMSSP, /* "NTLM" */
b6b438
 	.auth_type	= DCERPC_AUTH_TYPE_NTLMSSP,
b6b438
+	.weak_crypto    = true,
b6b438
 	.oid            = gensec_ntlmssp_oids,
b6b438
 	.client_start   = gensec_ntlmssp_client_start,
b6b438
 	.server_start   = gensec_ntlmssp_server_start,
b6b438
@@ -329,6 +330,7 @@ static const struct gensec_security_ops gensec_ntlmssp_security_ops = {
b6b438
 
b6b438
 static const struct gensec_security_ops gensec_ntlmssp_resume_ccache_ops = {
b6b438
 	.name		= "ntlmssp_resume_ccache",
b6b438
+	.weak_crypto    = true,
b6b438
 	.client_start   = gensec_ntlmssp_resume_ccache_start,
b6b438
 	.update_send	= gensec_ntlmssp_update_send,
b6b438
 	.update_recv	= gensec_ntlmssp_update_recv,
b6b438
-- 
b6b438
2.23.0
b6b438