From c2a8b27418d4c367c3ff2673c6d47caada8c4b1a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 09:49:45 +0000 Subject: Make OBJ_add_object() static This is another implementation detail that should never have leaked out of the library. Only OBJ_create() ever used this. ok jsing --- src/lib/libcrypto/objects/obj_dat.c | 5 ++--- src/lib/libcrypto/objects/objects.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib/libcrypto/objects') diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index bfa9ba3cc8..626036264f 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.87 2024/03/02 09:47:16 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.88 2024/03/02 09:49:45 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -208,7 +208,7 @@ OBJ_new_nid(int num) } LCRYPTO_ALIAS(OBJ_new_nid); -int +static int OBJ_add_object(const ASN1_OBJECT *obj) { ASN1_OBJECT *o = NULL; @@ -258,7 +258,6 @@ OBJ_add_object(const ASN1_OBJECT *obj) ASN1_OBJECT_free(o); return (NID_undef); } -LCRYPTO_ALIAS(OBJ_add_object); ASN1_OBJECT * OBJ_nid2obj(int nid) diff --git a/src/lib/libcrypto/objects/objects.h b/src/lib/libcrypto/objects/objects.h index ef6fc233bf..ab0c402383 100644 --- a/src/lib/libcrypto/objects/objects.h +++ b/src/lib/libcrypto/objects/objects.h @@ -1,4 +1,4 @@ -/* $OpenBSD: objects.h,v 1.26 2024/03/02 09:47:16 tb Exp $ */ +/* $OpenBSD: objects.h,v 1.27 2024/03/02 09:49:45 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -108,7 +108,6 @@ int OBJ_sn2nid(const char *s); int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b); int OBJ_new_nid(int num); -int OBJ_add_object(const ASN1_OBJECT *obj); int OBJ_create(const char *oid, const char *sn, const char *ln); void OBJ_cleanup(void); int OBJ_create_objects(BIO *in); -- cgit v1.2.3-55-g6feb