NetBSD Problem Report #10528
Received: (qmail 29404 invoked from network); 7 Jul 2000 16:09:59 -0000
Message-Id: <20000707160940.6375BE0@proven.weird.com>
Date: Fri, 7 Jul 2000 12:09:40 -0400 (EDT)
From: woods@weird.com
Sender: woods@proven.weird.com
Reply-To: woods@planix.com
To: gnats-bugs@gnats.netbsd.org
Subject: /usr/include/des.h missing....
X-Send-Pr-Version: 3.95
>Number: 10528
>Category: lib
>Synopsis: /usr/include/des.h missing....
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: perry
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 07 16:10:01 +0000 2000
>Closed-Date: Sun Apr 06 18:28:38 +0000 2003
>Last-Modified: Sun Apr 06 18:28:38 +0000 2003
>Originator: Greg A. Woods
>Release: 2000/07/01
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 1.5A
>Description:
Applications using -ldes fail to find <des.h>
>How-To-Repeat:
Read des_crypt(3).
Try to build anything using -ldes as per des_crypt(3).
Notice /usr/include/des.h is not found and indeed is not present.
>Fix:
Since -ldes is now a link to -lcrypto I would suggest installing
a link from /usr/include/des.h -> openssl/des.h
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: itojun
State-Changed-When: Thu Oct 5 21:41:02 PDT 2000
State-Changed-Why:
it should now okay for main trunc. /usr/share/man/man3/des.3 is openssl-based
des manpage.
From: woods@weird.com (Greg A. Woods)
To: Petri Koistinen <pkoistin@cs.stadia.fi>
Cc: netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List),
gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups)
Subject: Re: lib/10528: /usr/include/des.h missing....
Date: Sat, 14 Jul 2001 15:03:36 -0400 (EDT)
[ On Wednesday, July 11, 2001 at 17:10:27 (+0300), Petri Koistinen wrote: ]
> Subject: Re: bin/10528: /usr/include/des.h missing....
>
> This PR suggests that problem is fixed. Could confirm that so that this PR
> can be closed. Please, send confirmation mail to gnats-bugs@netbsd.org and
> netbsd-bugs@netbsd.org mailing list with exactly same topic as now.
No, I don't think it's fixed satisfactorily. I'm still keeping <des.h>
for now
Even worse the documentation for DES functions is now missing (patch
also appended).
I'm still trying to figure out what is right in this DES API business.
Many 3rd-party programs want <des.h> but now NetBSD tries to say that
they should be changed to use <openssl/des.h>. This seems very wrong to
me, but I'm not yet convinced that the NetBSD API is still fully
compatible with the expectations of programs using <des.h>.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
===================================================================
RCS file: /cvs/NetBSD/src/lib/libcrypto/Makefile,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 Makefile
*** lib/libcrypto/Makefile 2001/06/12 21:13:52 1.1.1.3
--- lib/libcrypto/Makefile 2001/06/13 15:33:06
***************
*** 73,78 ****
--- 73,80 ----
INCSDIR=/usr/include/openssl
+ LINKS+= ${INCSDIR}/des.h /usr/include/des.h
+
# this rebuilds the `srcs.inc' and the .inc files it reads.
# note that the resulting `srcs.inc' file needs to be modified
# to deal with our MKCRYPTO_* configuration variables.
***************
*** 109,113 ****
--- 111,121 ----
.endif
.endif # ${MKPIC} != "no"
+
+ .SUFFIXES: .man .3
+
+ .man.3:
+ @rm -f ${.TARGET}
+ cp ${.IMPSRC} ${.TARGET}
.include <bsd.lib.mk>
Index: lib/libcrypto/man.inc
===================================================================
RCS file: /cvs/NetBSD/src/lib/libcrypto/man.inc,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 man.inc
*** lib/libcrypto/man.inc 2001/06/12 21:13:53 1.1.1.2
--- lib/libcrypto/man.inc 2001/07/01 23:59:48
***************
*** 63,65 ****
--- 63,102 ----
MAN+= openssl.cnf.5
MAN+= des_modes.7
+
+ MLINKS+=openssl_des.3 des.3 \
+ openssl_des.3 des_cbc_cksum.3 \
+ openssl_des.3 des_cfb64_encrypt.3 \
+ openssl_des.3 des_cfb_encrypt.3 \
+ openssl_des.3 des_crypt.3 \
+ openssl_des.3 des_ecb2_encrypt.3 \
+ openssl_des.3 des_ecb3_encrypt.3 \
+ openssl_des.3 des_ecb_encrypt.3 \
+ openssl_des.3 des_ede2_cbc_encrypt.3 \
+ openssl_des.3 des_ede2_cfb64_encrypt.3 \
+ openssl_des.3 des_ede2_ofb64_encrypt.3 \
+ openssl_des.3 des_ede3_cbc_encrypt.3 \
+ openssl_des.3 des_ede3_cbcm_encrypt.3 \
+ openssl_des.3 des_ede3_cfb64_encrypt.3 \
+ openssl_des.3 des_ede3_ofb64_encrypt.3 \
+ openssl_des.3 des_enc_read.3 \
+ openssl_des.3 des_enc_write.3 \
+ openssl_des.3 des_fcrypt.3 \
+ openssl_des.3 des_is_weak_key.3 \
+ openssl_des.3 des_key_sched.3 \
+ openssl_des.3 des_ncbc_encrypt.3 \
+ openssl_des.3 des_ofb64_encrypt.3 \
+ openssl_des.3 des_ofb_encrypt.3 \
+ openssl_des.3 des_pcbc_encrypt.3 \
+ openssl_des.3 des_quad_cksum.3 \
+ openssl_des.3 des_random_key.3 \
+ openssl_des.3 des_read_2passwords.3 \
+ openssl_des.3 des_read_password.3 \
+ openssl_des.3 des_read_pw_string.3 \
+ openssl_des.3 des_set_key.3 \
+ openssl_des.3 des_set_key_checked.3 \
+ openssl_des.3 des_set_key_unchecked.3 \
+ openssl_des.3 des_set_odd_parity.3 \
+ openssl_des.3 des_string_to_2keys.3 \
+ openssl_des.3 des_string_to_key.3 \
+ openssl_des.3 des_xcbc_encrypt.3
State-Changed-From-To: feedback->open
State-Changed-By: fair
State-Changed-When: Sun Jan 6 14:59:07 PST 2002
State-Changed-Why:
Feedback has been provided - time for us to answer it.
Responsible-Changed-From-To: lib-bug-people->perry
Responsible-Changed-By: perry
Responsible-Changed-When: Sun Apr 6 10:24:37 PDT 2003
Responsible-Changed-Why:
I'll apply the documentation patch.
From: "Perry E. Metzger" <perry@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/10528 CVS commit: src/lib/libcrypto
Date: Sun, 6 Apr 2003 20:44:42 +0300 (EEST)
Module Name: src
Committed By: perry
Date: Sun Apr 6 17:44:42 UTC 2003
Modified Files:
src/lib/libcrypto: man.inc
Log Message:
add links for des functions. PR bin/10528 from Greg Woods
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 src/lib/libcrypto/man.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Perry E. Metzger" <perry@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/10528 CVS commit: src/lib/libcrypto
Date: Sun, 6 Apr 2003 21:12:38 +0300 (EEST)
Module Name: src
Committed By: perry
Date: Sun Apr 6 18:12:37 UTC 2003
Modified Files:
src/lib/libcrypto: Makefile
Log Message:
symlink /usr/include/des.h to openssl/des.h
This is done in FreeBSD, and OpenBSD apparently also has a des.h
inspired by Greg Woods in PR lib/10528
To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 src/lib/libcrypto/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: perry
State-Changed-When: Sun Apr 6 11:28:01 PDT 2003
State-Changed-Why:
doc patches applied.
Although most Unixes don't seem to have a des.h, FreeBSD and OpenBSD
do, so I've fixed that too.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.