cfengine/0001-Do-not-use-insecure-MD5-but-rather-SHA256.patch
Tomáš Chvátal 1e89aa3bad - Partial fix for bnc#923417:
* 0001-Do-not-use-insecure-MD5-but-rather-SHA256.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=124
2015-03-23 10:20:00 +00:00

28 lines
871 B
Diff

From a814751421422cad22373eb6e568272fd24e1532 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tomas.chvatal@gmail.com>
Date: Mon, 23 Mar 2015 11:12:58 +0100
Subject: [PATCH] Do not use insecure MD5 but rather SHA256
---
libpromises/generic_agent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libpromises/generic_agent.c b/libpromises/generic_agent.c
index eaace00..4863230 100644
--- a/libpromises/generic_agent.c
+++ b/libpromises/generic_agent.c
@@ -101,8 +101,8 @@ static void SanitizeEnvironment()
ENTERPRISE_VOID_FUNC_2ARG_DEFINE_STUB(void, GenericAgentSetDefaultDigest, HashMethod *, digest, int *, digest_len)
{
- *digest = HASH_METHOD_MD5;
- *digest_len = CF_MD5_LEN;
+ *digest = HASH_METHOD_SHA256;
+ *digest_len = CF_SHA256_LEN;
}
void MarkAsPolicyServer(EvalContext *ctx)
--
2.3.0