Lennart Bang wrote:
> 
> Using DIAB 4.2a cross compiler for powerpc on sunos5.6
> 
> Two compilation errors in openssl-SNAP-19990312-1530.
> Please tell me if I use the wrong diff flags so I can
> give correct patches.
> 
> /Lennart Bang
> TCP/IP knudel
> [EMAIL PROTECTED]
> 
> diff -ru3 openssl-SNAP-19990312-1530-org/crypto/pkcs7/pk7_doit.c 
>openssl-SNAP-19990312-1530-mod/crypto/pkcs7/pk7_doit.c
> --- openssl-SNAP-19990312-1530-org/crypto/pkcs7/pk7_doit.c      Fri Mar  5 04:00:09 
>1999
> +++ openssl-SNAP-19990312-1530-mod/crypto/pkcs7/pk7_doit.c      Fri Mar 12 22:32:29 
>1999
> @@ -721,7 +721,7 @@
>         if ((sk != NULL) && (sk_num(sk) != 0))
>                 {
>                 unsigned char md_dat[EVP_MAX_MD_SIZE];
> -                int md_len;
> +                unsigned int md_len;
>                 ASN1_OCTET_STRING *message_digest;
> 
>                 EVP_DigestFinal(&mdc_tmp,md_dat,&md_len);
> diff -ru3 openssl-SNAP-19990312-1530-org/crypto/x509v3/v3_skey.c 
>openssl-SNAP-19990312-1530-mod/crypto/x509v3/v3_skey.c
> --- openssl-SNAP-19990312-1530-org/crypto/x509v3/v3_skey.c      Sat Mar  6 04:00:12 
>1999
> +++ openssl-SNAP-19990312-1530-mod/crypto/x509v3/v3_skey.c      Fri Mar 12 22:29:22 
>1999
> @@ -124,7 +124,7 @@
>         ASN1_BIT_STRING *pk;
>         unsigned char pkey_dig[EVP_MAX_MD_SIZE];
>         EVP_MD_CTX md;
> -       int diglen;
> +       unsigned int diglen;
> 
>         if(strcmp(str, "hash")) return s2i_ASN1_OCTET_STRING(method, ctx, str);


Does it given an actual compile error or a warning? 

If its a warning then its harmless. If its an error then it will be
fixed: however changing that causes the Win32 compiler to bomb out later
because it doesn't like comparisons between signed and unsigned
quantities: this can be fixed with a evil cast(TM).

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to