Subject: Re: lib/10528: /usr/include/des.h missing....
To: Petri Koistinen <pkoistin@cs.stadia.fi>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 07/14/2001 15:03:36
[ 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