mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
fixed build with recent libi2pd
This commit is contained in:
parent
ab2043eeb6
commit
0222c3faa0
|
@ -197,7 +197,7 @@ int main(int argc, char * argv[])
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
InitCrypto(false);
|
InitCrypto(false, true, true, false);
|
||||||
|
|
||||||
if(!fam.size()) {
|
if(!fam.size()) {
|
||||||
// no family name
|
// no family name
|
||||||
|
|
2
i2pd
2
i2pd
|
@ -1 +1 @@
|
||||||
Subproject commit c4c896a833d006f308f35d31ed006e82a3b769f2
|
Subproject commit 8b3a7486c74b27199a08dc500e2a19dfe16e53a0
|
|
@ -12,7 +12,7 @@ int main (int argc, char * argv[])
|
||||||
std::cout << "Usage: keygen filename <signature type>" << std::endl;
|
std::cout << "Usage: keygen filename <signature type>" << std::endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
i2p::crypto::InitCrypto (false);
|
i2p::crypto::InitCrypto (false, true, true, false);
|
||||||
i2p::data::SigningKeyType type = i2p::data::SIGNING_KEY_TYPE_DSA_SHA1;
|
i2p::data::SigningKeyType type = i2p::data::SIGNING_KEY_TYPE_DSA_SHA1;
|
||||||
if (argc > 2) {
|
if (argc > 2) {
|
||||||
std::string str(argv[2]);
|
std::string str(argv[2]);
|
||||||
|
|
|
@ -14,7 +14,7 @@ int main (int argc, char * argv[])
|
||||||
std::cout << "Usage: offlinekeys <output file> <keys file> <signature type> <days>" << std::endl;
|
std::cout << "Usage: offlinekeys <output file> <keys file> <signature type> <days>" << std::endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
i2p::crypto::InitCrypto (false);
|
i2p::crypto::InitCrypto (false, true, true, false);
|
||||||
|
|
||||||
std::string fname(argv[2]);
|
std::string fname(argv[2]);
|
||||||
i2p::data::PrivateKeys keys;
|
i2p::data::PrivateKeys keys;
|
||||||
|
|
|
@ -12,7 +12,7 @@ int main (int argc, char * argv[])
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
i2p::crypto::InitCrypto (false);
|
i2p::crypto::InitCrypto (false, true, true, false);
|
||||||
|
|
||||||
i2p::data::PrivateKeys keys;
|
i2p::data::PrivateKeys keys;
|
||||||
std::ifstream s(argv[1], std::ifstream::binary);
|
std::ifstream s(argv[1], std::ifstream::binary);
|
||||||
|
|
|
@ -18,7 +18,7 @@ int main (int argc, char * argv[])
|
||||||
if (argc < 3) { help(); return -1;}
|
if (argc < 3) { help(); return -1;}
|
||||||
std::string arg = argv[1];
|
std::string arg = argv[1];
|
||||||
|
|
||||||
i2p::crypto::InitCrypto (false);
|
i2p::crypto::InitCrypto (false, true, true, false);
|
||||||
i2p::data::PrivateKeys keys;
|
i2p::data::PrivateKeys keys;
|
||||||
|
|
||||||
if (arg == "step1") {
|
if (arg == "step1") {
|
||||||
|
|
|
@ -46,7 +46,7 @@ int main(int argc, char * argv[])
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
i2p::crypto::InitCrypto(false);
|
i2p::crypto::InitCrypto(false, true, true, false);
|
||||||
int opt;
|
int opt;
|
||||||
bool ipv6 = false;
|
bool ipv6 = false;
|
||||||
bool firewall = false;
|
bool firewall = false;
|
||||||
|
@ -75,7 +75,7 @@ int main(int argc, char * argv[])
|
||||||
i2p::data::RouterInfo ri(fname);
|
i2p::data::RouterInfo ri(fname);
|
||||||
|
|
||||||
std::vector<std::shared_ptr<const i2p::data::RouterInfo::Address> > addrs;
|
std::vector<std::shared_ptr<const i2p::data::RouterInfo::Address> > addrs;
|
||||||
auto a = ri.GetNTCPAddress(!ipv6);
|
auto a = ri.GetNTCP2Address(!ipv6);
|
||||||
if(a)
|
if(a)
|
||||||
addrs.push_back(a);
|
addrs.push_back(a);
|
||||||
a = ri.GetSSUAddress(!ipv6);
|
a = ri.GetSSUAddress(!ipv6);
|
||||||
|
|
|
@ -299,7 +299,7 @@ int main (int argc, char * argv[])
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
i2p::crypto::InitCrypto (false);
|
i2p::crypto::InitCrypto (false, true, true, false);
|
||||||
options.signature = i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519;
|
options.signature = i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519;
|
||||||
///////////////
|
///////////////
|
||||||
//For while
|
//For while
|
||||||
|
|
Loading…
Reference in a new issue