From: tb Date: Sat, 2 Mar 2024 09:50:47 +0000 (+0000) Subject: Remove no longer supported OBJ_NAME_TYPEs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d9ccd25c4d7d4ce2a1bb5fa059d4aa46f4e58a6f;p=openbsd Remove no longer supported OBJ_NAME_TYPEs OBJ_NAME_TYPE_PKEY_METH and OBJ_NAME_TYPE_COMP_METH were never used as far as I can tell. Unfortunately, PHP and Python still use the weirdly named OBJ_NAME_do_all*() API to list available ciphers and digests, so the MD and CIPHER variants need to remain public. ok jsing --- diff --git a/lib/libcrypto/objects/objects.h b/lib/libcrypto/objects/objects.h index ab0c4023836..2804e6fe1cd 100644 --- a/lib/libcrypto/objects/objects.h +++ b/lib/libcrypto/objects/objects.h @@ -1,4 +1,4 @@ -/* $OpenBSD: objects.h,v 1.27 2024/03/02 09:49:45 tb Exp $ */ +/* $OpenBSD: objects.h,v 1.28 2024/03/02 09:50:47 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -71,9 +71,7 @@ #define OBJ_NAME_TYPE_UNDEF 0x00 #define OBJ_NAME_TYPE_MD_METH 0x01 #define OBJ_NAME_TYPE_CIPHER_METH 0x02 -#define OBJ_NAME_TYPE_PKEY_METH 0x03 -#define OBJ_NAME_TYPE_COMP_METH 0x04 -#define OBJ_NAME_TYPE_NUM 0x05 +#define OBJ_NAME_TYPE_NUM 0x03 #define OBJ_NAME_ALIAS 0x8000