Hi! I tried to compile the openssl-SNAP-20020418 snapshot under Win32. Machine is a WinNT4.0SP6 and a VC++6.0SP3.
I got some errors listed below: cl /Fotmp32\rsa_eay.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\crypto\rsa\rsa_eay.c rsa_eay.c inc32\openssl/engine.h(74) : fatal error C1083: Cannot open include file: 'openssl/ecdsa.h': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. cl /Fotmp32\x_pubkey.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\crypto\asn1\x_pubkey.c x_pubkey.c .\crypto\asn1\x_pubkey.c(145) : warning C4700: local variable 'p' used without having been initialized .\crypto\asn1\x_pubkey.c(145) : error C2220: warning treated as error - no object file generated NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. cl /Fotmp32\tb_ecdsa.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\crypto\engine\tb_ecdsa.c tb_ecdsa.c .\crypto\engine\tb_ecdsa.c(81) : error C2220: warning treated as error - no object file generated .\crypto\engine\tb_ecdsa.c(81) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void )' .\crypto\engine\tb_ecdsa.c(97) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void )' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. cl /Fotmp32\s3_pkt.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\ssl\s3_pkt.c s3_pkt.c .\ssl\s3_pkt.c(248) : error C2220: warning treated as error - no object file generated .\ssl\s3_pkt.c(248) : warning C4018: '!=' : signed/unsigned mismatch .\ssl\s3_pkt.c(608) : warning C4018: '<' : signed/unsigned mismatch NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. cl /Fotmp32\dsatest.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\crypto\dsa\dsatest.c dsatest.c link /nologo /subsystem:console /machine:I386 /opt:ref /out:out32\dsatest.exe @.\nmt00694. libeay32.lib(t_pkey.obj) : error LNK2001: unresolved external symbol _ECDSA_get_conversion_form out32\dsatest.exe : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. cl /Fotmp32\ecs_vrf.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\crypto\ecdsa\ecs_vrf.c ecs_vrf.c .\crypto\ecdsa\ecs_vrf.c(130) : error C2220: warning treated as error - no object file generated .\crypto\ecdsa\ecs_vrf.c(130) : warning C4028: formal parameter 5 different from declaration NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. cl /Fotmp32\ssltest.obj -Iinc32 -Itmp32 /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DOPENSSL_SYSNAME_WINNT /Fdout32 -DOPENSSL_NO_KRB5 -c .\ssl\ssltest.c ssltest.c .\ssl\ssltest.c(1058) : error C2220: warning treated as error - no object file generated .\ssl\ssltest.c(1058) : warning C4018: '<' : signed/unsigned mismatch NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. So I had make some changes, please take a look in the attached diff file. with kind regards. -- Bernd Matthes Gemplus mids GmbH -- Senior Software Engineer formerly Celo Communications GmbH Dipl.-Ing.(FH) R&D Center Germany -------------------------------------------------------------------- "Complexity breeds bugs. Bugs prevent adoption, lack of" \ "adoption results in death. Death not good." "Life sucks."
diff -urw openssl-SNAP-20020418/crypto/asn1/x_pubkey.c openssl-SNAP-20020418.1/crypto/asn1/x_pubkey.c --- openssl-SNAP-20020418/crypto/asn1/x_pubkey.c Fri Apr 12 09:00:22 2002 +++ openssl-SNAP-20020418.1/crypto/asn1/x_pubkey.c Fri Apr 19 16:06:12 2002 @@ -142,7 +142,7 @@ if ((a->parameter = ASN1_TYPE_new()) == NULL) { X509err(X509_F_X509_PUBKEY_SET, ERR_R_ASN1_LIB); - OPENSSL_free(p); +/* OPENSSL_free(p);*/ goto err; } diff -urw openssl-SNAP-20020418/crypto/ecdsa/ecs_vrf.c openssl-SNAP-20020418.1/crypto/ecdsa/ecs_vrf.c --- openssl-SNAP-20020418/crypto/ecdsa/ecs_vrf.c Wed Feb 13 18:20:34 2002 +++ openssl-SNAP-20020418.1/crypto/ecdsa/ecs_vrf.c Fri Apr 19 14:22:10 2002 @@ -126,7 +126,7 @@ * 0: incorrect signature * -1: error */ -int ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, ECDSA *ecdsa) +int ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned +char *sigbuf, const int sig_len, ECDSA *ecdsa) { ECDSA_SIG *s; int ret=-1; diff -urw openssl-SNAP-20020418/crypto/engine/eng_int.h openssl-SNAP-20020418.1/crypto/engine/eng_int.h --- openssl-SNAP-20020418/crypto/engine/eng_int.h Wed Feb 13 19:00:42 2002 +++ openssl-SNAP-20020418.1/crypto/engine/eng_int.h Fri Apr 19 14:10:48 2002 @@ -91,7 +91,11 @@ * register callbacks. ENGINE_cleanup() will call all registered callbacks in * order. NB: both the "add" functions assume CRYPTO_LOCK_ENGINE to already be * held (in "write" mode). */ +#ifndef _WIN32 typedef void (ENGINE_CLEANUP_CB)(void); +#else +typedef void (ENGINE_CLEANUP_CB)(); +#endif typedef struct st_engine_cleanup_item { ENGINE_CLEANUP_CB *cb; diff -urw openssl-SNAP-20020418/ssl/s3_pkt.c openssl-SNAP-20020418.1/ssl/s3_pkt.c --- openssl-SNAP-20020418/ssl/s3_pkt.c Sat Apr 13 23:02:36 2002 +++ openssl-SNAP-20020418.1/ssl/s3_pkt.c Fri Apr 19 14:13:52 2002 @@ -245,7 +245,7 @@ extra=SSL3_RT_MAX_EXTRA; else extra=0; - if (extra != (s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE)) + if (extra != (int)(s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE)) { /* actually likely an application error: SLS_OP_MICROSOFT_BIG_SSLV3_BUFFER * set after ssl3_setup_buffers() was done */ @@ -605,7 +605,7 @@ if (prefix_len <= 0) goto err; - if (s->s3->wbuf.len < prefix_len + SSL3_RT_MAX_PACKET_SIZE) + if (s->s3->wbuf.len < (unsigned int)(prefix_len + +SSL3_RT_MAX_PACKET_SIZE)) { /* insufficient space */ SSLerr(SSL_F_DO_SSL3_WRITE, ERR_R_INTERNAL_ERROR); diff -urw openssl-SNAP-20020418/ssl/ssltest.c openssl-SNAP-20020418.1/ssl/ssltest.c --- openssl-SNAP-20020418/ssl/ssltest.c Thu Mar 14 10:01:22 2002 +++ openssl-SNAP-20020418.1/ssl/ssltest.c Fri Apr 19 14:23:46 2002 @@ -1055,7 +1055,7 @@ r = BIO_nwrite0(io1, &dataptr); assert(r > 0); - if (r < num) + if (r < (int)num) num = r; r = BIO_read(io2, dataptr, (int)num); if (r != (int)num) /* can't happen */ diff -urw openssl-SNAP-20020418/util/mkfiles.pl openssl-SNAP-20020418.1/util/mkfiles.pl --- openssl-SNAP-20020418/util/mkfiles.pl Wed Jan 02 17:00:58 2002 +++ openssl-SNAP-20020418.1/util/mkfiles.pl Fri Apr 19 14:20:06 2002 @@ -30,6 +30,7 @@ "crypto/dso", "crypto/dh", "crypto/ec", +"crypto/ecdsa", "crypto/buffer", "crypto/bio", "crypto/stack",
smime.p7s
Description: S/MIME Cryptographic Signature