diff options
author | tb <> | 2024-03-02 09:49:45 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:49:45 +0000 |
commit | f21b8514088544717f82e2ae9019b87645d1155f (patch) | |
tree | 5581b51a30b51e94b52b1cac148ba3b001629696 /src/lib/libcrypto/objects | |
parent | 721a0919125aaef71da76adcbdb7905843d039ab (diff) | |
download | openbsd-f21b8514088544717f82e2ae9019b87645d1155f.tar.gz openbsd-f21b8514088544717f82e2ae9019b87645d1155f.tar.bz2 openbsd-f21b8514088544717f82e2ae9019b87645d1155f.zip |
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
Diffstat (limited to 'src/lib/libcrypto/objects')
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/objects.h | 3 |
2 files changed, 3 insertions, 5 deletions
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 @@ | |||
1 | /* $OpenBSD: obj_dat.c,v 1.87 2024/03/02 09:47:16 tb Exp $ */ | 1 | /* $OpenBSD: obj_dat.c,v 1.88 2024/03/02 09:49:45 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 | * |
@@ -208,7 +208,7 @@ OBJ_new_nid(int num) | |||
208 | } | 208 | } |
209 | LCRYPTO_ALIAS(OBJ_new_nid); | 209 | LCRYPTO_ALIAS(OBJ_new_nid); |
210 | 210 | ||
211 | int | 211 | static int |
212 | OBJ_add_object(const ASN1_OBJECT *obj) | 212 | OBJ_add_object(const ASN1_OBJECT *obj) |
213 | { | 213 | { |
214 | ASN1_OBJECT *o = NULL; | 214 | ASN1_OBJECT *o = NULL; |
@@ -258,7 +258,6 @@ OBJ_add_object(const ASN1_OBJECT *obj) | |||
258 | ASN1_OBJECT_free(o); | 258 | ASN1_OBJECT_free(o); |
259 | return (NID_undef); | 259 | return (NID_undef); |
260 | } | 260 | } |
261 | LCRYPTO_ALIAS(OBJ_add_object); | ||
262 | 261 | ||
263 | ASN1_OBJECT * | 262 | ASN1_OBJECT * |
264 | OBJ_nid2obj(int nid) | 263 | 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 @@ | |||
1 | /* $OpenBSD: objects.h,v 1.26 2024/03/02 09:47:16 tb Exp $ */ | 1 | /* $OpenBSD: objects.h,v 1.27 2024/03/02 09:49:45 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 | * |
@@ -108,7 +108,6 @@ int OBJ_sn2nid(const char *s); | |||
108 | int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b); | 108 | int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b); |
109 | 109 | ||
110 | int OBJ_new_nid(int num); | 110 | int OBJ_new_nid(int num); |
111 | int OBJ_add_object(const ASN1_OBJECT *obj); | ||
112 | int OBJ_create(const char *oid, const char *sn, const char *ln); | 111 | int OBJ_create(const char *oid, const char *sn, const char *ln); |
113 | void OBJ_cleanup(void); | 112 | void OBJ_cleanup(void); |
114 | int OBJ_create_objects(BIO *in); | 113 | int OBJ_create_objects(BIO *in); |