From owner-freebsd-questions Thu Feb 12 21:50:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26252 for freebsd-questions-outgoing; Thu, 12 Feb 1998 21:50:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26232 for ; Thu, 12 Feb 1998 21:50:25 -0800 (PST) (envelope-from aron@cs.rice.edu) Received: from klio.cs.rice.edu (klio.cs.rice.edu [128.42.1.78]) by cs.rice.edu (8.8.5/8.8.4) with ESMTP id XAA03813 for ; Thu, 12 Feb 1998 23:50:21 -0600 (CST) From: Mohit Aron Received: (from aron@localhost) by klio.cs.rice.edu (8.8.5/8.7.5) id XAA01919 for questions@freebsd.org; Thu, 12 Feb 1998 23:50:20 -0600 (CST) Message-Id: <199802130550.XAA01919@klio.cs.rice.edu> Subject: conflicting man page of crypt() To: questions@FreeBSD.ORG Date: Thu, 12 Feb 1998 23:50:18 -0600 (CST) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, the man page of crypt(3) says the following: For compatibility with historical versions of crypt(3), the setting may consist of 2 bytes of salt, encoded as above, in which case an iteration count of 25 is used, fewer perturbations of DES are available, at most 8 characters of key are used, and the returned value is a NUL-terminated string 13 bytes in length. However, the crypt() library function in FreeBSD 2.2.5 doesn't appear to be compatible with older versions when given a 2 byte salt. In fact the code in /usr/src/lib/libcrypt/crypt.c doesn't indicate that making this case special. Is this a bug or am I in some way interpreting things wrongly ? Also is there any way in FreeBSD 2.2.5 to make crypt compatible with old versions (short of modifying the code). - Mohit Aron aron@cs.rice.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message