- Removed dependency on rand() in rsa_pkcs1_encrypt(). Now using random fuction provided to context
 - Expanded ssl_client2 arguments for more flexibility
 - rsa_check_private() now supports PKCS1v2 keys as well
 - Fixed deadlock in rsa_pkcs1_encrypt() on failing random generator


diff --git a/include/polarssl/rsa.h b/include/polarssl/rsa.h
index 4219cbe..389d5ae 100644
--- a/include/polarssl/rsa.h
+++ b/include/polarssl/rsa.h
@@ -34,6 +34,7 @@
 #define POLARSSL_ERR_RSA_PRIVATE_FAILED                    -0x0450
 #define POLARSSL_ERR_RSA_VERIFY_FAILED                     -0x0460
 #define POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE                  -0x0470
+#define POLARSSL_ERR_RSA_RNG_FAILED                        -0x0480
 
 /*
  * PKCS#1 constants