diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-06-14 19:55:09 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-06-14 19:55:09 +0000 |
commit | 5023810539107fbb0d2d118d5f460312d2b06c20 (patch) | |
tree | f10b3f16f0fec8c20fe32d685e072b5da65edd1b /usr.sbin/acme-client/main.c | |
parent | 032ca170002af43b635f93169104cbe70ca7c0cf (diff) |
Track key type (RSA or ECDSA) in an enum and clean up a bit while here.
Originaly from Renaud Allard following input from benno, tweaked by me.
OK benno
Diffstat (limited to 'usr.sbin/acme-client/main.c')
-rw-r--r-- | usr.sbin/acme-client/main.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c index ea8f7c5d348..1a2c1749e49 100644 --- a/usr.sbin/acme-client/main.c +++ b/usr.sbin/acme-client/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.48 2019/06/12 11:09:25 gilles Exp $ */ +/* $Id: main.c,v 1.49 2019/06/14 19:55:08 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -49,7 +49,6 @@ main(int argc, char *argv[]) int popts = 0; pid_t pids[COMP__MAX]; extern int verbose; - extern int ecdsa; extern enum comp proccomp; size_t i, altsz, ne; @@ -148,10 +147,6 @@ main(int argc, char *argv[]) errx(EXIT_FAILURE, "authority %s not found", auth); } - if (domain->keytype == 1) { - ecdsa = 1; - } - acctkey = authority->account; if ((chngdir = domain->challengedir) == NULL) @@ -258,7 +253,8 @@ main(int argc, char *argv[]) close(file_fds[0]); close(file_fds[1]); c = keyproc(key_fds[0], domain->key, - (const char **)alts, altsz); + (const char **)alts, altsz, + domain->keytype); exit(c ? EXIT_SUCCESS : EXIT_FAILURE); } |