Entropy collector and CTR-DRBG now also work on SHA-256 if SHA-512 not available
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index bf6b10c..8383b7f 100644
--- a/include/polarssl/ssl.h
+++ b/include/polarssl/ssl.h
@@ -439,7 +439,9 @@
        md5_context fin_md5;
       sha1_context fin_sha1;
     sha256_context fin_sha256;
+#if defined(POLARSSL_SHA512_C)
     sha512_context fin_sha512;
+#endif
 
     void (*update_checksum)(ssl_context *, const unsigned char *, size_t);
     void (*calc_verify)(ssl_context *, unsigned char *);