Bug in bn_mul.c/bn_lcl.h

1999-09-06 Thread Axel Beckert

Hi;

Just had a problem compiling openssl 0.9.1c on my Sun SparcStation 10
(uname -a says: SunOS dagoffice 4.1.4 11 sun4m) under SunOS 4.1.4 and gcc
2.6.3. (I know, that gcc isn't very up-to-date, so maybe it's a compiler
bug.)

When compiling (configured for sunos-gcc) the compiler exits with an
parse-error on line 98 in bn_mul.c "before '/'".  When running gcc -E
bn_mul.c the following line

if (n2  BN_MUL_RECURSIVE_SIZE_NORMAL)

became

if (n2  (16) // 32)

but should become this:

if (n2  (16))

To get rid of the resulting parse error I made the following changes:

4/1 beckert@dagoffice:ttyq0 5:08 [~/1openssl-0.9.1c/crypto/bn]  diff 
bn_lcl_BACKUP.h bn_lcl.h
70,74c70,74
 #define BN_MULL_SIZE_NORMAL   (16) // 32
 #define BN_MUL_RECURSIVE_SIZE_NORMAL  (16) // 32 /* less than */
 #define BN_SQR_RECURSIVE_SIZE_NORMAL  (16) // 32
 #define BN_MUL_LOW_RECURSIVE_SIZE_NORMAL  (32) // 32
 #define BN_MONT_CTX_SET_SIZE_WORD (64) // 32
---
 #define BN_MULL_SIZE_NORMAL   (16)
 #define BN_MUL_RECURSIVE_SIZE_NORMAL  (16)
 #define BN_SQR_RECURSIVE_SIZE_NORMAL  (16)
 #define BN_MUL_LOW_RECURSIVE_SIZE_NORMAL  (32)
 #define BN_MONT_CTX_SET_SIZE_WORD (64)
5/1 beckert@dagoffice:ttyq0 5:08 [~/1openssl-0.9.1c/crypto/bn] 

HTH.

  Kind regards, Axel Beckert
-- 
Axel Beckert
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: Bug in bn_mul.c/bn_lcl.h

1999-09-06 Thread Bodo Moeller

Axel Beckert [EMAIL PROTECTED]:

 Just had a problem compiling openssl 0.9.1c [...]

Try OpenSSL 0.9.4.  0.9.1c has millions of bugs.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]