From f21b8514088544717f82e2ae9019b87645d1155f 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 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/objects/obj_dat.c') 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) -- cgit v1.2.3-55-g6feb