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);