Use X509_set_version() and X509_REQ_set_version() instead doing it by hand
authorjob <job@openbsd.org>
Tue, 25 Apr 2023 09:46:36 +0000 (09:46 +0000)
committerjob <job@openbsd.org>
Tue, 25 Apr 2023 09:46:36 +0000 (09:46 +0000)
commitcaa52935dd761efce7fff45a153f656f4a1e8eb4
treeb074a93679f546f8c77157aa3d2c9e746ba616cc
parent66f967b2e1920053a42e8e7f3b77c8f71b50483e
Use X509_set_version() and X509_REQ_set_version() instead doing it by hand

A small side-effect in X509_to_X509_REQ() is that 'x->req_info->enc.modified'
now earlier on is set to 1.

OK tb@ jsing@
lib/libcrypto/x509/x509_r2x.c
lib/libcrypto/x509/x509_req.c