I built and tested openssl-0.9.6a-beta1 on Cygwin. It needs the DOS
patch that I previously submitted, and running the djcopy.sh script
that is generated, in order to build cleanly because of problems with
symbolic links. Otherwise there are a number of 0 byte files, rather
than symbolic links after untar'ing under Cygwin, which cause problems
with the build.

I had three warnings when building. Two seem to be related to not
including rand.h. The other has to do with struct hostent declaring
h_name as const char *. 

When doing make test, parse errors were found when running bctest. EOF
was apparently not taken as end of file, but rather as a hex number
with an invalid digit. The patch to bctest seems to work with the
Cygwin bc, but I don't know how it would affect other platforms. Once
bctest was fixed, the tests showed no errors.

The DOS patch is in the archives at
"http://www.mail-archive.com/[email protected]/msg08157/ssldos.pch.gz"

Because of the previous problems I had with long lines getting munged
by the archives, I am attaching the problem messages and a proposed
patch. Please remember that I am not a programmer.

I haven't had a chance to compile under DOS (DJGPP) yet.
                                 Doug

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

gcc -I.. -I../../include -DDSO_WIN32 -DNO_IDEA -DNO_RC5 -DTERMIOS -DL_ENDIAN 
-fomit-frame-pointer -O3 -m486 -Wall   -c -o b_sock.o b_sock.c
b_sock.c: In function `ghbn_free':
b_sock.c:342: warning: passing arg 1 of `CRYPTO_free' discards qualifiers from pointer 
target type

gcc -DMONOLITH -I../include -DDSO_WIN32 -DNO_IDEA -DNO_RC5 -DTERMIOS -DL_ENDIAN 
-fomit-frame-pointer -O3 -m486 -Wall   -c -o s_server.o s_server.c
s_server.c: In function `s_server_main':
s_server.c:592: warning: implicit declaration of function `RAND_status'

gcc -DMONOLITH -I../include -DDSO_WIN32 -DNO_IDEA -DNO_RC5 -DTERMIOS -DL_ENDIAN 
-fomit-frame-pointer -O3 -m486 -Wall   -c -o s_client.o s_client.c
s_client.c: In function `s_client_main':
s_client.c:343: warning: implicit declaration of function `RAND_status'

running bc
(standard_in) 6: illegal character: O
(standard_in) 6: parse error
(standard_in) 5: illegal character: O
(standard_in) 5: parse error
--- openssl-0.9.6a-beta1/test/bctest    Wed Jan 17 02:26:26 2001
+++ openssl-0.9.6a-beta1/test/bctest.new        Fri Mar 16 19:23:38 2001
@@ -26,7 +26,7 @@
 8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D\
 3ED0E2017D60A68775B75481449
 (a/b)*b + (a%b) - a
-EOF`" ]
+`" ]
 then
   echo "bc does not work.  Consider installing GNU bc." >&2
   echo "cat >/dev/null"
@@ -62,7 +62,7 @@
 9E8DB6A8C3B1B9986D57ED5419C2E855F7D5469E35E76334BB42F4C43E3F3A31B9697C171DAC4\
 D97935A7E1A14AD209D6CF811F55C6DB83AA9E6DFECFCD6669DED7171EE22A40C6181615CAF3F\
 5296964
-EOF`" ]
+`" ]
 then
   echo "bc does not work.  Consider installing GNU bc." >&2
   echo "cat >/dev/null"
--- openssl-0.9.6a-beta1/apps/s_client.c        Tue Mar 13 08:17:00 2001
+++ openssl-0.9.6a-beta1/apps/s_client.c.new    Fri Mar 16 20:19:34 2001
@@ -79,6 +79,7 @@
 #include <openssl/ssl.h>
 #include <openssl/err.h>
 #include <openssl/pem.h>
+#include <openssl/rand.h>
 #include "s_apps.h"
 
 #ifdef WINDOWS
--- openssl-0.9.6a-beta1/apps/s_server.c        Tue Mar 13 08:17:00 2001
+++ openssl-0.9.6a-beta1/apps/s_server.c.new    Fri Mar 16 20:23:32 2001
@@ -83,6 +83,7 @@
 #include <openssl/pem.h>
 #include <openssl/x509.h>
 #include <openssl/ssl.h>
+#include <openssl/rand.h>
 #include "s_apps.h"
 
 #ifdef WINDOWS
--- openssl-0.9.6a-beta1/crypto/bio/b_sock.c    Fri Mar 16 18:01:10 2001
+++ openssl-0.9.6a-beta1/crypto/bio/b_sock.c.new        Fri Mar 16 20:48:42 2001
@@ -339,7 +339,7 @@
                        OPENSSL_free(a->h_addr_list[i]);
                OPENSSL_free(a->h_addr_list);
                }
-       if (a->h_name != NULL) OPENSSL_free(a->h_name);
+       if (a->h_name != NULL) OPENSSL_free((void *)a->h_name);
        OPENSSL_free(a);
        }

Reply via email to