diff options
author | tb <> | 2023-12-14 18:10:32 +0000 |
---|---|---|
committer | tb <> | 2023-12-14 18:10:32 +0000 |
commit | eb9b40dedec3bc660a67bc29b191724282e94391 (patch) | |
tree | 8b0e0e7f29a1598c5019a949d4733cc9129d39d3 /src/lib | |
parent | 37a6f1d216f442f4c9bb8e178fecf65154e12935 (diff) | |
download | openbsd-eb9b40dedec3bc660a67bc29b191724282e94391.tar.gz openbsd-eb9b40dedec3bc660a67bc29b191724282e94391.tar.bz2 openbsd-eb9b40dedec3bc660a67bc29b191724282e94391.zip |
OBJ_create: rename ok to ret and make it last declaration
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index 2b59b2130e..b58e8cfe94 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.74 2023/12/14 18:09:35 tb Exp $ */ | 1 | /* $OpenBSD: obj_dat.c,v 1.75 2023/12/14 18:10:32 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 | * |
@@ -589,10 +589,10 @@ LCRYPTO_ALIAS(OBJ_create_objects); | |||
589 | int | 589 | int |
590 | OBJ_create(const char *oid, const char *sn, const char *ln) | 590 | OBJ_create(const char *oid, const char *sn, const char *ln) |
591 | { | 591 | { |
592 | int ok = 0; | ||
593 | ASN1_OBJECT *op = NULL; | 592 | ASN1_OBJECT *op = NULL; |
594 | unsigned char *buf; | 593 | unsigned char *buf; |
595 | int len; | 594 | int len; |
595 | int ret = 0; | ||
596 | 596 | ||
597 | len = a2d_ASN1_OBJECT(NULL, 0, oid, -1); | 597 | len = a2d_ASN1_OBJECT(NULL, 0, oid, -1); |
598 | if (len <= 0) | 598 | if (len <= 0) |
@@ -608,12 +608,12 @@ OBJ_create(const char *oid, const char *sn, const char *ln) | |||
608 | op = ASN1_OBJECT_create(OBJ_new_nid(1), buf, len, sn, ln); | 608 | op = ASN1_OBJECT_create(OBJ_new_nid(1), buf, len, sn, ln); |
609 | if (op == NULL) | 609 | if (op == NULL) |
610 | goto err; | 610 | goto err; |
611 | ok = OBJ_add_object(op); | 611 | ret = OBJ_add_object(op); |
612 | 612 | ||
613 | err: | 613 | err: |
614 | ASN1_OBJECT_free(op); | 614 | ASN1_OBJECT_free(op); |
615 | free(buf); | 615 | free(buf); |
616 | return ok; | 616 | return ret; |
617 | } | 617 | } |
618 | LCRYPTO_ALIAS(OBJ_create); | 618 | LCRYPTO_ALIAS(OBJ_create); |
619 | 619 | ||