Subject: Re: crypt in 1.3.2 returning different/bad results vs. 1.2.1
To: None <current-users@NetBSD.ORG>
From: Gerald C. Simmons <simmons@darykon.cet.com>
List: current-users
Date: 07/21/1998 13:35:15
Christoph Badura wrote:
> From bad@orade.ora.de Tue Jul 21 10:17:59 1998
> Date: Tue, 21 Jul 1998 17:59:58 +0200 (MET DST)
> From: Christoph Badura <bad@ora.de>
> To: simmons@darykon.cet.com
> Subject: Re: crypt in 1.3.2 returning different/bad results vs. 1.2.1
> Newsgroups: hanse-ml.netbsd.current-users
> References: <199807211514.IAA04370@dakkon.darykon.cet.com>
> 
> 
> >I started out with the exportable version of secr.tgz, then updated to the
> >domestic version of secr. I got the same results.
> 
> >I have tried different password and changing the password.
> 
> Perhaps you could post the exact code that is failing.
> 
> -- 
> Christoph Badura
> Verlag O'Reilly
> 

You Bet!

 if (strcmp(crypt(auth_request.password, p), p) != 0) {
    if (debugmode)
        fprintf(stdout, "%s: [authorize] crypt(pwd)=%s doesn't match %s\n",
	PROGNAME, crypt(auth_request.password,p), p);

Gerry Simmons
simmons@darykon.cet.com