From 5f3e167d29d3e2189e99e81dd3674742aeeeea9f Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 22 Oct 2021 09:44:30 +0000 Subject: [PATCH] Stop setting enc.modified manually. It's no longer needed. --- usr.bin/openssl/ca.c | 3 +-- usr.bin/openssl/req.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.bin/openssl/ca.c b/usr.bin/openssl/ca.c index 00dbc5ba106..2adc70141b7 100644 --- a/usr.bin/openssl/ca.c +++ b/usr.bin/openssl/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.49 2021/09/05 04:05:14 inoguchi Exp $ */ +/* $OpenBSD: ca.c,v 1.50 2021/10/22 09:44:30 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1764,7 +1764,6 @@ do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst, X509_NAME_free(n); goto err; } - req->req_info->enc.modified = 1; X509_NAME_free(n); } if (default_op) diff --git a/usr.bin/openssl/req.c b/usr.bin/openssl/req.c index dfba8e28c47..aaf3dceb306 100644 --- a/usr.bin/openssl/req.c +++ b/usr.bin/openssl/req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: req.c,v 1.19 2020/08/09 16:38:24 jsing Exp $ */ +/* $OpenBSD: req.c,v 1.20 2021/10/22 09:44:30 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1000,7 +1000,6 @@ req_main(int argc, char **argv) ex = 1; goto end; } - req->req_info->enc.modified = 1; if (req_config.verbose) { print_name(bio_err, "new subject=", X509_REQ_get_subject_name(req), req_config.nmflag); -- 2.20.1