From 2ca8ad10a121e7d579ae935ccd9e9508604680ec Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Tue, 19 Feb 2013 13:17:38 +0100 Subject: [PATCH] Made x509parse.c also work with missing hash header files --- library/x509parse.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/x509parse.c b/library/x509parse.c index 493cf3a99..bac0e93e5 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -42,12 +42,24 @@ #include "polarssl/asn1.h" #include "polarssl/pem.h" #include "polarssl/des.h" +#if defined(POLARSSL_MD2_C) #include "polarssl/md2.h" +#endif +#if defined(POLARSSL_MD4_C) #include "polarssl/md4.h" +#endif +#if defined(POLARSSL_MD5_C) #include "polarssl/md5.h" +#endif +#if defined(POLARSSL_SHA1_C) #include "polarssl/sha1.h" +#endif +#if defined(POLARSSL_SHA2_C) #include "polarssl/sha2.h" +#endif +#if defined(POLARSSL_SHA4_C) #include "polarssl/sha4.h" +#endif #include "polarssl/dhm.h" #include