From 859a21656c4d923eee262a1b4f5a2082e89f8426 Mon Sep 17 00:00:00 2001 From: pottzman Date: Thu, 10 Aug 2023 16:56:05 +1000 Subject: [PATCH] Update cli.cpp --- src/cli.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cli.cpp b/src/cli.cpp index 14ccc40..53c364b 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -385,6 +385,8 @@ int CLI::BINK1998Generate() { // Specify whether an upgrade version or not bool bUpgrade = false; + if (options->upgrade == true) + bUpgrade = true; for (int i = 0; i < this->total; i++) { PIDGEN3::BINK1998::Generate(this->eCurve, this->genPoint, this->genOrder, this->privateKey, nRaw, bUpgrade, this->pKey); @@ -436,6 +438,11 @@ int CLI::BINK2002Generate() { fmt::print("> AuthInfo: {}\n", pAuthInfo); } + // Specify whether an upgrade version or not + bool bUpgrade = false; + if (options->upgrade == true) + bUpgrade = true; + PIDGEN3::BINK2002::Generate(this->eCurve, this->genPoint, this->genOrder, this->privateKey, pChannelID, pAuthInfo, false, this->pKey); bool isValid = PIDGEN3::BINK2002::Verify(this->eCurve, this->genPoint, this->pubPoint, this->pKey);