summaryrefslogtreecommitdiff
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:40:00 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:40:00 +0000
commit9feb664c0793b4fb30d88abebbbfbea545675509 (patch)
treeb7d39b7ce4141dbe2c4c23b0cf232c5da87c8fc6 /usr.sbin/acme-client
parente4ac9eafdfdeb8783484f7faa6823c88bf32d385 (diff)
acme-client: rename cc to sign_len in op_sign()
requested by jsing
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r--usr.sbin/acme-client/acctproc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/acme-client/acctproc.c b/usr.sbin/acme-client/acctproc.c
index 124644b2254..d9cddc9b210 100644
--- a/usr.sbin/acme-client/acctproc.c
+++ b/usr.sbin/acme-client/acctproc.c
@@ -1,4 +1,4 @@
-/* $Id: acctproc.c,v 1.29 2022/12/18 12:35:26 tb Exp $ */
+/* $Id: acctproc.c,v 1.30 2022/12/18 12:39:59 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -258,7 +258,7 @@ op_sign(int fd, EVP_PKEY *pkey, enum acctop op)
const EVP_MD *evp_md = NULL;
ECDSA_SIG *ec_sig = NULL;
const BIGNUM *ec_sig_r = NULL, *ec_sig_s = NULL;
- int bn_len, cc, rc = 0;
+ int bn_len, sign_len, rc = 0;
char *nonce = NULL, *pay = NULL, *pay64 = NULL;
char *prot = NULL, *prot64 = NULL;
char *sign = NULL, *dig64 = NULL, *fin = NULL;
@@ -332,8 +332,8 @@ op_sign(int fd, EVP_PKEY *pkey, enum acctop op)
/* Now the signature material. */
- cc = asprintf(&sign, "%s.%s", prot64, pay64);
- if (cc == -1) {
+ sign_len = asprintf(&sign, "%s.%s", prot64, pay64);
+ if (sign_len == -1) {
warn("asprintf");
sign = NULL;
goto out;
@@ -349,7 +349,7 @@ op_sign(int fd, EVP_PKEY *pkey, enum acctop op)
warnx("EVP_DigestSignInit");
goto out;
}
- if (!EVP_DigestSign(ctx, NULL, &digsz, sign, cc)) {
+ if (!EVP_DigestSign(ctx, NULL, &digsz, sign, sign_len)) {
warnx("EVP_DigestSign");
goto out;
}
@@ -357,7 +357,7 @@ op_sign(int fd, EVP_PKEY *pkey, enum acctop op)
warn("malloc");
goto out;
}
- if (!EVP_DigestSign(ctx, dig, &digsz, sign, cc)) {
+ if (!EVP_DigestSign(ctx, dig, &digsz, sign, sign_len)) {
warnx("EVP_DigestSign");
goto out;
}