I feel *very* silly. Attached.
-landon
On Fri, Mar 23, 2001 at 11:28:58AM +0100, Richard Levitte - VMS Whacker wrote:
> From: Landon Fuller <[EMAIL PROTECTED]>
>
> You forgot to attach the patch...
>
> --
> Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
> Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
> Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
> Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
> Member of the OpenSSL development team: http://www.openssl.org/
> Software Engineer, Celo Communications: http://www.celocom.com/
>
> Unsolicited commercial email is subject to an archival fee of $400.
> See <http://www.stacken.kth.se/~levitte/mail/> for more info.
diff -ur openssl-0.9.6/Configure openssl-beos/Configure
--- openssl-0.9.6/Configure Sun Sep 24 08:27:37 2000
+++ openssl-beos/Configure Thu Mar 22 22:03:03 2001
@@ -121,6 +121,9 @@
"gcc", "gcc:-O3::(unknown)::BN_LLONG:::",
"cc", "cc:-O::(unknown):::::",
+# BeOS x86 Setup
+"beos", "gcc:-DL_ENDIAN -O3 -fomit-frame-pointer -Wall
+-DBEOS::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:::",
+
#### Solaris x86 setups
# -DNO_INLINE_ASM switches off inline assembler. We have to do it
# here because whenever GNU C instantiates an assembler template it
diff -ur openssl-0.9.6/apps/s_socket.c openssl-beos/apps/s_socket.c
--- openssl-0.9.6/apps/s_socket.c Thu Sep 21 02:23:18 2000
+++ openssl-beos/apps/s_socket.c Thu Mar 22 22:02:19 2001
@@ -192,7 +192,11 @@
{
unsigned long addr;
struct sockaddr_in them;
+#if !defined(MPE) && !defined(BEOS)
int s,i;
+#else
+ int s;
+#endif
if (!sock_init()) return(0);
@@ -209,7 +213,7 @@
s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL);
if (s == INVALID_SOCKET) { perror("socket"); return(0); }
-#ifndef MPE
+#if !defined(MPE) && !defined(BEOS)
i=0;
i=setsockopt(s,SOL_SOCKET,SO_KEEPALIVE,(char *)&i,sizeof(i));
if (i < 0) { perror("keepalive"); return(0); }
diff -ur openssl-0.9.6/config openssl-beos/config
--- openssl-0.9.6/config Thu Sep 21 02:23:14 2000
+++ openssl-beos/config Thu Mar 22 21:31:03 2001
@@ -134,6 +134,10 @@
echo "i486-whatever-bsdi4"; exit 0
;;
+ BeOS:*:*:BePC) # BeOS running on Intel PC compatible
+ echo "i586-pc-beos"; exit 0
+ ;;
+
BSD/386:*:*:*486*|BSD/OS:*:*:*:*486*)
case `/sbin/sysctl -n hw.model` in
Pentium*)
diff -ur openssl-0.9.6/crypto/bio/b_sock.c openssl-beos/crypto/bio/b_sock.c
--- openssl-0.9.6/crypto/bio/b_sock.c Mon Sep 11 05:42:14 2000
+++ openssl-beos/crypto/bio/b_sock.c Thu Mar 22 19:05:13 2001
@@ -220,12 +220,18 @@
* whereas under other systems it is (void *) if you don't have
* a cast it will choke the compiler: if you do have a cast then
* you can either go for (char *) or (void *).
- */
+ * Also:
+ * BeOS Network Kit does not support SO_ERROR, or any socket option
+ * other than SO_NONBLOCK */
+#ifndef BEOS
i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(void *)&j,(void *)&size);
if (i < 0)
return(1);
else
return(j);
+#else
+ return(1);
+#endif
}
long BIO_ghbn_ctrl(int cmd, int iarg, char *parg)
diff -ur openssl-0.9.6/crypto/rand/rand_egd.c openssl-beos/crypto/rand/rand_egd.c
--- openssl-0.9.6/crypto/rand/rand_egd.c Mon Sep 11 05:42:39 2000
+++ openssl-beos/crypto/rand/rand_egd.c Thu Mar 22 21:51:08 2001
@@ -59,7 +59,7 @@
/* Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
*/
-#if defined(WIN32) || defined(VMS) || defined(__VMS)
+#if defined(WIN32) || defined(VMS) || defined(__VMS) || defined(BEOS)
int RAND_egd(const char *path)
{
return(-1);