- Fixed a whole bunch of dependencies on defines between files, examples and tests

diff --git a/library/rsa.c b/library/rsa.c
index dfff35b8..90ea54b 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -1095,10 +1095,12 @@
 {
     size_t len;
     rsa_context rsa;
-    unsigned char sha1sum[20];
     unsigned char rsa_plaintext[PT_LEN];
     unsigned char rsa_decrypted[PT_LEN];
     unsigned char rsa_ciphertext[KEY_LEN];
+#if defined(POLARSSL_SHA1_C)
+    unsigned char sha1sum[20];
+#endif
 
     rsa_init( &rsa, RSA_PKCS_V15, 0 );
 
@@ -1159,6 +1161,7 @@
         return( 1 );
     }
 
+#if defined(POLARSSL_SHA1_C)
     if( verbose != 0 )
         printf( "passed\n  PKCS#1 data sign  : " );
 
@@ -1187,6 +1190,7 @@
 
     if( verbose != 0 )
         printf( "passed\n\n" );
+#endif /* POLARSSL_SHA1_C */
 
     rsa_free( &rsa );