From owner-cvs-all Mon Jun 25 11:50: 8 2001 Delivered-To: cvs-all@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 5EF2537B406; Mon, 25 Jun 2001 11:50:00 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id E50FB3E31; Mon, 25 Jun 2001 11:49:59 -0700 (PDT) To: Dag-Erling Smorgrav Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/md5 md5.c In-Reply-To: ; from des@ofug.org on "25 Jun 2001 20:37:41 +0200" Date: Mon, 25 Jun 2001 11:49:59 -0700 From: Dima Dorfman Message-Id: <20010625184959.E50FB3E31@bazooka.unixfreak.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dag-Erling Smorgrav writes: > Dima Dorfman writes: > > AFAIK, OpenBSD rewrote this because of the license. If we're going to > > make major modifications to this, we might as well rewrite it in terms > > of openssl(1). It gives slightly different output, e.g.: > > > > dima@hornet% openssl md5 /HORNET > > MD5(/HORNET)= 96fec985ef627b70295e31640483dd5f > > The only difference is one less space (before the =), and if we can > live with that (or change openssl to add the missing space) there'd be > no need to write anything - just 'ln /usr/bin/openssl /usr/bin/md5' > and likewise for sha1, ripemd160 etc. Two less spaces: one before and after the parenthesis: MD5 (/HORNET) = 96fec985ef627b70295e31640483dd5 <-- /sbin/md5 MD5(/HORNET)= 96fec985ef627b70295e31640483dd5f <-- openssl md5 openssl(1) also doesn't support -p and -s, which some people use, but that can be fixed (either in the OpenSSL repo or in ours). Having openssl output spaces like ours may not be such a great idea, however, since some people or programs may depend on openssl's output the way they already have it. Much better to change what we have (primarily bsd.port.mk, I guess) to deal with the lack of spaces, and have it be another [minor] incompatibility between 4.x and 5.x. Dima Dorfman dima@unixfreak.org P.S. As an aside, I'd rather that we make links like you suggest instead of telling people to use openssl(1) now since openssl(1) may go away (we may replace OpenSSL with SomethingElseSSL in the future), but this functionality shouldn't. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message