diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-12-14 18:10:33 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-12-14 18:10:33 +0000 |
commit | aece28af4b2fc4ad5a2b661c3e539d014e2b4fbf (patch) | |
tree | 106fe69b97347417754eedea8066eac41741f884 /lib/libcrypto | |
parent | 20213752081b369dccc339753ec395830b72d2a5 (diff) |
OBJ_create: rename ok to ret and make it last declaration
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/objects/obj_dat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 2b59b2130e8..b58e8cfe949 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.74 2023/12/14 18:09:35 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.75 2023/12/14 18:10:32 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -589,10 +589,10 @@ LCRYPTO_ALIAS(OBJ_create_objects); int OBJ_create(const char *oid, const char *sn, const char *ln) { - int ok = 0; ASN1_OBJECT *op = NULL; unsigned char *buf; int len; + int ret = 0; len = a2d_ASN1_OBJECT(NULL, 0, oid, -1); if (len <= 0) @@ -608,12 +608,12 @@ OBJ_create(const char *oid, const char *sn, const char *ln) op = ASN1_OBJECT_create(OBJ_new_nid(1), buf, len, sn, ln); if (op == NULL) goto err; - ok = OBJ_add_object(op); + ret = OBJ_add_object(op); err: ASN1_OBJECT_free(op); free(buf); - return ok; + return ret; } LCRYPTO_ALIAS(OBJ_create); |