From owner-freebsd-security Sat Dec 16 15:15:55 2000 From owner-freebsd-security@FreeBSD.ORG Sat Dec 16 15:15:52 2000 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mail.pinboard.com (mail.pinboard.com [194.209.195.7]) by hub.freebsd.org (Postfix) with ESMTP id BAF5B37B400 for ; Sat, 16 Dec 2000 15:15:51 -0800 (PST) Received: (from uucp@localhost) by mail.pinboard.com (8.9.3/8.9.3/20000102-00-KK) with UUCP id AAA09175 for freebsd-security@FreeBSD.org; Sun, 17 Dec 2000 00:15:50 +0100 (CET) (envelope-from kurt@pinboard.com (kurt@pinboard.com)) (client-IP ) Received: (from uucp@localhost) by squirrel.pbdhome.pinboard.com (8.9.1/8.9.1-19980817-01/KK) with UUCP id XAA11682 for freebsd-security@FreeBSD.org; Sat, 16 Dec 2000 23:51:49 +0100 (CET) (envelope-from: kurt@pinboard.com) Received: (from kurt@localhost) by badger.pbdhome.pinboard.com (8.9.3/8.9.3/20000829-01-KK) id XAA53898; Sat, 16 Dec 2000 23:49:11 +0100 (CET) (envelope-from kurt (kurt)) (client-IP ) Date: Sat, 16 Dec 2000 23:49:10 +0100 From: Kurt@pinboard.com To: freebsd-security@FreeBSD.org Subject: mcrypt Message-ID: <20001216234910.A14562@pinboard.com> Mail-Followup-To: Kurt@pinboard.com, freebsd-security@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is probably more a C question than security, but the people here are most likely to having experience using and compiling this tool, so... I'm administering some FreeBSD machines around the world. They do not all have the same release. The need arised to being able to move and store files between the machines in a safe manner: encrypted. bdes is not available on all machines and crypt is supposedly weak and also sometimes linked against MD5 and sometimes against DES. So in order to get one tool I can use across all machines, I was looking at mcrypt (http://mcrypt.hellug.gr/). While compilation and installation of libmcrypt-2.4.7 and mhash-0.8.3 went without a problem, configure of mcrypt-2.5.5 is always complaining about not finding mhash. On solaris it was enough to set the environment variable LD_LIBRARY_PAHT to /usr/local/lib:/usr/local/lib/libmcrypt, on FreeBSD, this does not do the trick. About libtool in the mhash* and libmcrypt* directories I can't find out how to use it. I'd be grateful for hints on what I'm doing wrong. Kurt ------- some addnl info ------- # ldconfig -r | grep mhash 97:-lmhash.2 => /usr/local/lib/libmhash.so.2 # # tail -13 config.log configure:3471: gcc -o conftest -g -O2 conftest.c -lmhash 1>&5 /usr/libexec/elf/ld: cannot open -lmhash: No such file or directory configure: failed program was: #line 3460 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mhash_keygen(); int main() { mhash_keygen() ; return 0; } # # ls -l /usr/local/lib/*mha* -rw-r--r-- 1 root wheel 261142 Dec 16 21:28 /usr/local/lib/libmhash.a -rwxr-xr-x 1 root wheel 642 Dec 16 21:28 /usr/local/lib/libmhash.la lrwxr-xr-x 1 root wheel 13 Dec 16 21:28 /usr/local/lib/libmhash.so -> libmhash.so.2 -rwxr-xr-x 1 root wheel 183296 Dec 16 21:28 /usr/local/lib/libmhash.so.2 ------- end addnl info ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message