- Added support for PKCS#1 v2.1 encoding and thus support for the RSAES-OAEP and RSASSA-PSS operations (enabled by POLARSSL_PKCS1_V21)


diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 555ed73..3d15ad6 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -667,7 +667,8 @@
 
     if( ssl->rsa_key )
     {
-        ret = rsa_pkcs1_sign( ssl->rsa_key, RSA_PRIVATE, SIG_RSA_RAW,
+        ret = rsa_pkcs1_sign( ssl->rsa_key, ssl->f_rng, ssl->p_rng,
+                                    RSA_PRIVATE, SIG_RSA_RAW,
                                     36, hash, ssl->out_msg + 6 );
     } else {
 #if defined(POLARSSL_PKCS11_C)