now change it to BN_RECURSION_MONT so it isn't compiled in.
Changes between 0.9.1c and 0.9.2
+ *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
+ compiled in by default: it has problems with large keys.
+ [Steve Henson]
+
*) Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
DH private keys and/or callback functions which directly correspond to
their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
BN_MONT_CTX *mont;
BN_CTX *ctx;
{
-#ifdef BN_RECURSION
+#ifdef BN_RECURSION_MONT
if (mont->use_word)
#endif
{
err1:
return(retn);
}
-#ifdef BN_RECURSION
+#ifdef BN_RECURSION_MONT
else /* bignum version */
{
BIGNUM *t1,*t2,*t3;
R= &(mont->RR); /* grab RR as a temp */
BN_copy(&(mont->N),mod); /* Set N */
-#ifdef BN_RECURSION
+#ifdef BN_RECURSION_MONT
if (mont->N.top < BN_MONT_CTX_SET_SIZE_WORD)
#endif
{
BN_free(&Ri);
/* mod->top=z; */
}
-#ifdef BN_RECURSION
+#ifdef BN_RECURSION_MONT
else
{
mont->use_word=0;