summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects
diff options
context:
space:
mode:
authortb <>2023-07-28 10:25:05 +0000
committertb <>2023-07-28 10:25:05 +0000
commitff3b404e5cda0d0876bf6dccdcc293d75dd12c57 (patch)
treeaab8650dbc4320c9218b593494101b0631a50eb9 /src/lib/libcrypto/objects
parent2a8a0e16fff5736c54d6005280b83c07587cb5d8 (diff)
downloadopenbsd-ff3b404e5cda0d0876bf6dccdcc293d75dd12c57.tar.gz
openbsd-ff3b404e5cda0d0876bf6dccdcc293d75dd12c57.tar.bz2
openbsd-ff3b404e5cda0d0876bf6dccdcc293d75dd12c57.zip
Remove OBJ_add_sigid() and OBJ_sigid_free()
Another bit of unused extensibility that was responsible for a lot of complexity until recently. This removes the remaining stubs from the public API. ok jsing
Diffstat (limited to 'src/lib/libcrypto/objects')
-rw-r--r--src/lib/libcrypto/objects/obj_xref.c15
-rw-r--r--src/lib/libcrypto/objects/objects.h4
2 files changed, 2 insertions, 17 deletions
diff --git a/src/lib/libcrypto/objects/obj_xref.c b/src/lib/libcrypto/objects/obj_xref.c
index ae18d69af3..0fca228ed8 100644
--- a/src/lib/libcrypto/objects/obj_xref.c
+++ b/src/lib/libcrypto/objects/obj_xref.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: obj_xref.c,v 1.12 2023/07/22 19:08:03 tb Exp $ */ 1/* $OpenBSD: obj_xref.c,v 1.13 2023/07/28 10:25:05 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -310,16 +310,3 @@ OBJ_find_sigid_by_algs(int *sign_nid, int hash_nid, int pkey_nid)
310 return 0; 310 return 0;
311} 311}
312LCRYPTO_ALIAS(OBJ_find_sigid_by_algs); 312LCRYPTO_ALIAS(OBJ_find_sigid_by_algs);
313
314int
315OBJ_add_sigid(int sign_nid, int hash_nid, int pkey_nid)
316{
317 return 0;
318}
319LCRYPTO_ALIAS(OBJ_add_sigid);
320
321void
322OBJ_sigid_free(void)
323{
324}
325LCRYPTO_ALIAS(OBJ_sigid_free);
diff --git a/src/lib/libcrypto/objects/objects.h b/src/lib/libcrypto/objects/objects.h
index 91e4eb0d1d..451545e056 100644
--- a/src/lib/libcrypto/objects/objects.h
+++ b/src/lib/libcrypto/objects/objects.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: objects.h,v 1.22 2023/06/29 06:11:33 tb Exp $ */ 1/* $OpenBSD: objects.h,v 1.23 2023/07/28 10:25:05 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -139,8 +139,6 @@ const unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj);
139 139
140int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid); 140int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid);
141int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid); 141int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid);
142int OBJ_add_sigid(int signid, int dig_id, int pkey_id);
143void OBJ_sigid_free(void);
144 142
145void ERR_load_OBJ_strings(void); 143void ERR_load_OBJ_strings(void);
146 144