Hello,

I'm building openssl-0.9.7e in Fedora Core 1. I made some patches (look

at the attachments) to fix the root Makefile.org to remove 'fips' from

SHLIBSDIR, remove 'FAR' defines from kssl.h and kssl.c, and to add

'#include <errno.h>' in kssl.c, without that I can't finnish the 'make

all'.

All goes fine with:

./Configure --prefix=3D/usr --openssldir=3D/usr/share/ssl zlib no-idea

no-mdc2 no-rc5 no-ec shared --with-krb5-flavor=3DMIT

-I/usr/kerberos/include -L/usr/kerberos/lib linux-elf

and with

make depend %% make all build-shared

but

make tests

fails with:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
test elliptic curves

OSSL_LIBPATH=3D"`cd ..; pwd`";

LD_LIBRARY_PATH=3D"$OSSL_LIBPATH:$LD_LIBRARY_PATH";

DYLD_LIBRARY_PATH=3D"$OSSL_LIBPATH:$DYLD_LIBRARY_PATH";

SHLIB_PATH=3D"$OSSL_LIBPATH:$SHLIB_PATH";

LIBPATH=3D"$OSSL_LIBPATH:$LIBPATH"; if [ "" =3D "Cygwin" ]; then

PATH=3D"${LIBPATH}:$PATH"; fi; export LD_LIBRARY_PATH DYLD_LIBRARY_PATH

SHLIB_PATH LIBPATH PATH; ./ectest

Elliptic curves are disabled.

cat

base64

aes-128-cbc

aes-128-cbc is an unknown cipher

options are

-in <file>     input file

-out <file>    output file

-pass <arg>    pass phrase source

-e             encrypt

-d             decrypt

-a/-base64     base64 encode/decode, depending on encryption flag

-k             passphrase is the next argument

-kfile         passphrase is the first line of the file argument

-md            the next argument is the md to use to create a key

                 from a passphrase.  One of md2, md5, sha or sha1

-K/-iv         key/iv in hex is the next argument

-[pP]          print the iv/key (then exit if -P)

-bufsize <n>   buffer size

-engine e      use engine e, possibly a hardware device.

Cipher Types

=20

aes-128-cbc is an unknown cipher

options are

-in <file>     input file

-out <file>    output file

-pass <arg>    pass phrase source

-e             encrypt

-d             decrypt

-a/-base64     base64 encode/decode, depending on encryption flag

-k             passphrase is the next argument

-kfile         passphrase is the first line of the file argument

-md            the next argument is the md to use to create a key

                 from a passphrase.  One of md2, md5, sha or sha1

-K/-iv         key/iv in hex is the next argument

-[pP]          print the iv/key (then exit if -P)

-bufsize <n>   buffer size

-engine e      use engine e, possibly a hardware device.

Cipher Types

=20

cmp: EOF on ./p.aes-128-cbc.clear

make: *** [test_enc] Error 1

make: Leaving directory

`/home/adriano/projetos/openssl/openssl-new/BUILD/openssl-0.9.7e/test'

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Any clues?

Thanks in advance.

-- 
Adriano Del Vigna
[EMAIL PROTECTED]
[EMAIL PROTECTED]
diff -ur openssl-0.9.7e/Makefile.org openssl-0.9.7e-mod/Makefile.org
--- openssl-0.9.7e/Makefile.org	2004-09-28 17:52:14.000000000 -0300
+++ openssl-0.9.7e-mod/Makefile.org	2004-11-30 15:57:33.000000000 -0200
@@ -176,7 +176,7 @@
 SHLIB_MARK=
 
 DIRS=   crypto fips ssl $(SHLIB_MARK) sigs apps test tools
-SHLIBDIRS= fips crypto ssl
+SHLIBDIRS= crypto ssl
 
 # dirs in crypto to build
 SDIRS=  objects \

diff -ur --exclude=Makefile openssl-0.9.7e/include/openssl/kssl.h openssl-0.9.7e-mod/include/openssl/kssl.h
--- openssl-0.9.7e/include/openssl/kssl.h	2003-09-27 14:55:18.000000000 -0300
+++ openssl-0.9.7e-mod/include/openssl/kssl.h	2004-11-30 13:41:03.000000000 -0200
@@ -131,7 +131,7 @@
 	char *cred_cache;	/*	C	    NULL (default)          */
 	krb5_enctype enctype;
 	int length;
-	krb5_octet FAR *key;
+	krb5_octet *key;
 	} KSSL_CTX;
 
 #define	KSSL_CLIENT 	1
diff -ur --exclude=Makefile openssl-0.9.7e/ssl/kssl.c openssl-0.9.7e-mod/ssl/kssl.c
--- openssl-0.9.7e/ssl/kssl.c	2004-03-16 10:50:18.000000000 -0300
+++ openssl-0.9.7e-mod/ssl/kssl.c	2004-11-30 13:42:19.000000000 -0200
@@ -73,6 +73,8 @@
 #undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
 #include <string.h>
 
+#include <errno.h>
+
 #include <openssl/ssl.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
@@ -1666,7 +1668,7 @@
         {
 	int 		length;
 	krb5_enctype	enctype;
-	krb5_octet FAR	*contents = NULL;
+	krb5_octet *contents = NULL;
 
 	if (!kssl_ctx)  return KSSL_CTX_ERR;
 
@@ -1699,7 +1701,7 @@
 		}
 
 	if ((kssl_ctx->key =
-                (krb5_octet FAR *) calloc(1, kssl_ctx->length)) == NULL)
+                (krb5_octet *) calloc(1, kssl_ctx->length)) == NULL)
                 {
 		kssl_ctx->length  = 0;
 		return KSSL_CTX_ERR;
diff -ur --exclude=Makefile openssl-0.9.7e/ssl/kssl.h openssl-0.9.7e-mod/ssl/kssl.h
--- openssl-0.9.7e/ssl/kssl.h	2003-09-27 14:55:18.000000000 -0300
+++ openssl-0.9.7e-mod/ssl/kssl.h	2004-11-30 13:41:03.000000000 -0200
@@ -131,7 +131,7 @@
 	char *cred_cache;	/*	C	    NULL (default)          */
 	krb5_enctype enctype;
 	int length;
-	krb5_octet FAR *key;
+	krb5_octet *key;
 	} KSSL_CTX;
 
 #define	KSSL_CLIENT 	1

Reply via email to