From fe1aea787757862cae00d46dbd84f04bdb9e7223 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Sat, 3 Oct 2009 20:09:14 +0000
Subject: [PATCH] - Fixed typo in MD4 define
---
ChangeLog | 4 ++++
library/x509parse.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 4128c93f7..60c29996d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@ Changes
* Tests requiring specific hashing algorithms now honor
the defines.
+Bug fixes
+ * Changed type in #ifdef in x509parse.c (found
+ by Eduardo)
+
= Version 0.12.0 released on 2009-07-28
Features
* Added CMake makefiles as alternative to regular Makefiles.
diff --git a/library/x509parse.c b/library/x509parse.c
index 727227b1f..97a1755e3 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -2157,7 +2157,7 @@ static void x509_hash( unsigned char *in, int len, int alg,
case SIG_RSA_SHA224 : sha2( in, len, out, 1 ); break;
case SIG_RSA_SHA256 : sha2( in, len, out, 0 ); break;
#endif
-#if defined(POLARSSL_SHA2_C)
+#if defined(POLARSSL_SHA4_C)
case SIG_RSA_SHA384 : sha4( in, len, out, 1 ); break;
case SIG_RSA_SHA512 : sha4( in, len, out, 0 ); break;
#endif