From 87120cf7fedcfc063ba5cd28ae4571909209a547 Mon Sep 17 00:00:00 2001 From: Ken Goldman Date: Mon, 23 Aug 2021 17:30:56 -0400 Subject: [PATCH 2/7] utils: Remove unused variables from certifyx509 notBefore and notAfter are set driectly in the partialCertificate structure, and that is used to directly set the x509 structure. Signed-off-by: Ken Goldman --- utils/certifyx509.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/utils/certifyx509.c b/utils/certifyx509.c index ed42ac0..44640aa 100644 --- a/utils/certifyx509.c +++ b/utils/certifyx509.c @@ -204,6 +204,7 @@ int main(int argc, char *argv[]) setvbuf(stdout, 0, _IONBF, 0); /* output may be going through pipe to log file */ TSS_SetProperty(NULL, TPM_TRACE_LEVEL, "1"); + curveID = curveID; /* no longer used, get from parent */ /* command line argument defaults */ for (i=1 ; (ivalidity->notBefore); if (irc == 0) { printf("createPartialCertificate: Error setting notBefore time\n"); @@ -737,7 +734,6 @@ TPM_RC createPartialCertificate(TPM_PARTIAL_CERT *partialCertificate, /* input / } } if (rc == 0) { - notAfter = X509_get_notAfter(x509Certificate); irc = X509_set1_notAfter(x509Certificate,partialCertificate->validity->notAfter); if (irc == 0) { printf("createPartialCertificate: Error setting notAfter time\n"); -- 2.34.1