#5 remops OpenBSD and Hex Version Patch

closed-accepted
Len Sassaman
None
5
2001-11-03
2001-11-03
Anonymous
No

Delivered-To: remailer-operators@anon.lcs.mit.edu
Date: Thu, 1 Nov 2001 15:10:37 -0700
From: Anonymous <nobody@noisebox.remailer.org>
Comments: This message did not originate from the Sender
address above.
It was remailed automatically by anonymizing
remailer software.
Please report problems or inappropriate use to the
remailer administrator at <
abuse@noisebox.remailer.org>.
To: remailer-operators@anon.lcs.mit.edu
Subject: Mixmaster 2.9beta31: OpenBSD patch, and version
compare bug fix

# Make Mix 2.9beta31 work on OpenBSD:
#
# OpenBSD has no /usr/include/ssl/openssl, just /usr/
include/ssl.
# OpenBSD SSL has no patented algorithm IDEA. Use other
libidea.a.
#
# General bug fix:
#
# OpenSSL version numbers in hex, not decimal. Must
compare as hex (16#)
#

--- Install.orig Tue Sep 18 19:33:03 2001
+++ Install Wed Oct 31 17:14:41 2001
@@ -342,6 +342,27 @@
LDFLAGS="-lsocket -lnsl"
fi

+ if [ "$system" = OpenBSD ]
+ then
+ LIBDIR=
+ INCDIR=
+ SRCDIR=idea*
+ findlib libidea.a
+ if [ "$found" = "" ]
+ then
+ echo "Please build libidea.a or install OpenSSL with
IDEA now."
+ exit 1
+ else
+ IDEALIB="$MAKELIB"
+ LIBS="$LIBS $LIB"
+ LDFLAGS="$LDFLAGS $LDFLAG"
+ if [ "$INCDIR" != "" ]
+ then
+ INC="$INC -I$INCDIR"
+ fi
+ fi
+ fi
+
LIBDIR=
INCDIR=
SRCDIR=zlib*
@@ -381,7 +402,7 @@
fi
fi

- opensslinfo="Please get OpenSSL 0.9.4 from http://
www.openssl.org/"
+ opensslinfo="Please get OpenSSL 0.9.6b from http://
www.openssl.org/"
LIBDIR=/usr/local/ssl/lib
INCDIR="/usr/include /usr/include/ssl /usr/lib/ssl/
include /usr/local/ssl/include"
SRCDIR="openssl*"
@@ -421,9 +442,9 @@
fi

# Find the OpenSSL version header
- if [ -f $INCDIR/openssl/opensslv.h ]
+ if [ -f $INCDIR/opensslv.h ]
then
- version=`grep 'SSL.*_VERSION_NUMBER.*0x' $INCDIR/
openssl/opensslv.h | sed 's/.*0x0*//;s/[ ].*//;s/L$//'`
+ version=`grep 'SSL.*_VERSION_NUMBER.*0x' $INCDIR/
opensslv.h | sed 's/.*0x0*//;s/[ ].*//;s/L$//'`
fi
if [ "$version" = "" ]
then
@@ -434,19 +455,19 @@
echo $opensslinfo
exit 1
fi
- elif [ "$version" -lt "920" ]
+ elif [ "16#$version" -lt "16#0920" ]
then
- echo "This version of SSLeay is not supported."
+ echo "This version: ${version} of SSLeay is not
supported."
echo $opensslinfo
exit 1
- elif [ "$version" -lt "903100" ]
+ elif [ "16#$version" -lt "16#00903100" ]
then
- echo "This version of OpenSSL is not supported."
+ echo "This version: ${version} of OpenSSL is not
supported."
echo $opensslinfo
exit 1
- elif [ "$version" -gt "906000" ]
+ elif [ "16#$version" -gt "16#00906000" ]
then
- echo "Warning: This version of OpenSSL is untested."
+ echo "Warning: This version: ${version} of OpenSSL is
untested."
readln "Continue anyway?" y
if [ "$ans" = "n" ]
then
@@ -526,6 +547,7 @@
-e "s#%DEF#$DEF#" < Makefile.in >> Makefile
echo "$ZLIB" >>Makefile
echo "$PCRE" >>Makefile
+ echo "$IDEALIB" >>Makefile
echo "$NCURSES" >>Makefile
echo "$OPENSSL" >>Makefile
fi

Discussion

  • Len Sassaman
    Len Sassaman
    2001-11-03

    • assigned_to: nobody --> rabbi
    • status: open --> closed-accepted
     
  • Len Sassaman
    Len Sassaman
    2001-11-03

    Logged In: YES
    user_id=29569

    This has been applied in CVS. Feedback appreciated.