diff --git a/usr.sbin/acme-client/keyproc.c b/usr.sbin/acme-client/keyproc.c index a3b6666c279..acf95defd49 100644 --- a/usr.sbin/acme-client/keyproc.c +++ b/usr.sbin/acme-client/keyproc.c @@ -1,4 +1,4 @@ -/* $Id: keyproc.c,v 1.18 2022/08/28 18:30:29 tb Exp $ */ +/* $Id: keyproc.c,v 1.19 2026/02/21 19:20:41 sthen Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -84,7 +84,6 @@ keyproc(int netsock, const char *keyfile, const char **alts, size_t altsz, void *pp; EVP_PKEY *pkey = NULL; X509_REQ *x = NULL; - X509_NAME *name = NULL; int len, rc = 0, cc, nid, newkey = 0; mode_t prev; STACK_OF(X509_EXTENSION) *exts = NULL; @@ -155,20 +154,6 @@ keyproc(int netsock, const char *keyfile, const char **alts, size_t altsz, goto out; } - /* Now specify the common name that we'll request. */ - - if ((name = X509_NAME_new()) == NULL) { - warnx("X509_NAME_new"); - goto out; - } else if (!X509_NAME_add_entry_by_txt(name, "CN", - MBSTRING_ASC, (u_char *)alts[0], -1, -1, 0)) { - warnx("X509_NAME_add_entry_by_txt: CN=%s", alts[0]); - goto out; - } else if (!X509_REQ_set_subject_name(x, name)) { - warnx("X509_req_set_issuer_name"); - goto out; - } - /* * Now add the SAN extensions. * This was lifted more or less directly from demos/x509/mkreq.c @@ -267,7 +252,6 @@ out: free(sans); free(san); X509_REQ_free(x); - X509_NAME_free(name); EVP_PKEY_free(pkey); ERR_print_errors_fp(stderr); ERR_free_strings();