From a6943bfa57b92147bf35e505e1ee3679d7651bcb Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 24 May 2024 19:16:53 +0000 Subject: Stub out DES_enc_{read,write}(3) The most terrible code in OpenSSL has its roots in libdes, which came before SSLeay. Hello, LHASH. Hello speed app. Hello DES (obviously). There are some diary-style changelog comments dating all the way back to 1990. /* This has some uglies in it but it works - even over sockets. */ Well, kind of: * - This code cannot handle non-blocking sockets. Also: /* >output is a multiple of 8 byes, if len < rnum * >we must be careful. The user must be aware that this * >routine will write more bytes than he asked for. * >The length of the buffer must be correct. * FIXED - Should be ok now 18-9-90 - eay */ Or /* This is really a bad error - very bad * It will stuff-up both ends. */ Or #ifdef _LIBC extern unsigned long time(); extern int write(); #endif I can't even... Delete, delete, delete. ok jsing --- src/lib/libcrypto/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/libcrypto/Makefile') diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 39997b0886..564dc01169 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.194 2024/04/25 16:14:00 tb Exp $ +# $OpenBSD: Makefile,v 1.195 2024/05/24 19:16:53 tb Exp $ LIB= crypto LIBREBUILD=y @@ -264,7 +264,6 @@ SRCS+= ecb3_enc.c SRCS+= ecb_enc.c SRCS+= ede_cbcm_enc.c SRCS+= enc_read.c -SRCS+= enc_writ.c SRCS+= fcrypt.c SRCS+= fcrypt_b.c SRCS+= ofb64ede.c -- cgit v1.2.3-55-g6feb