From 28f7e60d474242aebea6d964f32521e2e27eadeb Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 3 Dec 2007 09:02:29 +0000 Subject: [PATCH 1/1] Change submitted by Doug Kaufman. He writes: I just compiled the 9.9-dev version from the 12022007 tarball under DJGPP. There were only 2 changes needed, one for b_sock.c, since DJGPP with WATT32 doesn't define socklen_t and one for testtsa to handle DOS style path separators. I also noted what seems to be a typographical error in ts.pod. The test suite passes. The patch is attached. Since I am in the US, I have sent notifications to the Bureau of Industry and Security and to the NSA. --- crypto/bio/b_sock.c | 2 +- doc/apps/ts.pod | 2 +- test/testtsa | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index e4c7ee1277..4ed8aa3679 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -800,7 +800,7 @@ int BIO_accept(int sock, char **addr) if (addr == NULL) goto end; #ifdef EAI_FAMILY -# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) +# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) || defined(OPENSSL_SYS_MSDOS) # define SOCKLEN_T size_t # else # define SOCKLEN_T socklen_t diff --git a/doc/apps/ts.pod b/doc/apps/ts.pod index 3495f46c9f..aba3b92fd3 100644 --- a/doc/apps/ts.pod +++ b/doc/apps/ts.pod @@ -370,7 +370,7 @@ See L for description. (Optional) The name of the file containing the hexadecimal serial number of the last time stamp response created. This number is incremented by 1 for -each response. If the file does not exit at the time of response +each response. If the file does not exist at the time of response generation a new file is created with serial number 1. (Mandatory) =item B diff --git a/test/testtsa b/test/testtsa index e403d9ee31..bb653b5f73 100644 --- a/test/testtsa +++ b/test/testtsa @@ -5,7 +5,11 @@ # SH="/bin/sh" -PATH=../../apps:$PATH +if test "$OSTYPE" = msdosdjgpp; then + PATH="../apps\;$PATH" +else + PATH="../apps:$PATH" +fi export SH PATH OPENSSL_CONF="../CAtsa.cnf" -- 2.34.1