Hi,
Building 0.9.8s and 1.0.0f (for NetWare) my (picky?) compiler reported:

mwccnlm -o tmp_nw_libc\ecdsatest.o -Ioutinc_nw_libc -Itmp_nw_libc -nostdinc -ir 
crypto -ir engi
crypto\ecdsa\ecdsatest.c:435: illegal implicit conversion from 'unsigned char 
**' to
crypto\ecdsa\ecdsatest.c:435: 'const unsigned char **'

The following patch fixes the problem:

--- ecdsatest.c.orig    2011-12-02 23:41:00.000000000 +1100
+++ ecdsatest.c 2012-01-06 07:36:55.093750000 +1100
@@ -432,7 +432,7 @@
                 * garble the ASN1 structure, we read the raw signature and
                 * modify a byte in one of the bignums directly. */
                sig_ptr = signature;
-               if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len)) == 
NULL)
+               if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, (const unsigned char 
**)&sig_ptr, sig_len)) == NULL)
                        {
                        BIO_printf(out, " failed\n");
                        goto builtin_err;

Otherwise both build without issue.

HTH,
Norm
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to