diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-01 17:20:51 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-01 17:20:51 +0000 |
commit | e442b01f35098a96b5a5da465bcdb0bee2889f81 (patch) | |
tree | d71ab1a8edb49817d9a5f43a996a25d6483eaf57 /lib | |
parent | 02789f46b451cb3ad87d7e85952b65a16da6bb8b (diff) |
In X509_STORE_CTX_get_obj_from_subject() rename X509_OBJECT from
the generic 'ret' to obj' in X509.
Requested by jsing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/x509/x509_lu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509_lu.c b/lib/libcrypto/x509/x509_lu.c index 143ad152bae..d4ea5276628 100644 --- a/lib/libcrypto/x509/x509_lu.c +++ b/lib/libcrypto/x509/x509_lu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_lu.c,v 1.36 2021/10/31 16:23:45 tb Exp $ */ +/* $OpenBSD: x509_lu.c,v 1.37 2021/11/01 17:20:50 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -325,16 +325,16 @@ X509_OBJECT * X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type, X509_NAME *name) { - X509_OBJECT *ret; + X509_OBJECT *obj; - if ((ret = X509_OBJECT_new()) == NULL) + if ((obj = X509_OBJECT_new()) == NULL) return NULL; - if (!X509_STORE_CTX_get_by_subject(vs, type, name, ret)) { - X509_OBJECT_free(ret); + if (!X509_STORE_CTX_get_by_subject(vs, type, name, obj)) { + X509_OBJECT_free(obj); return NULL; } - return ret; + return obj; } int |