Skip to content

Commit

Permalink
revert to using secondary vector to store secure opts
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Dec 3, 2018
1 parent d687299 commit 6514525
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions src/app/include/ivan_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,38 +146,42 @@ class CrazyIvan: public Poco::Util::ServerApplication {
}

// Add secure opts
config.add_secure_opt(config.get_cluster_name() + \
std::vector<std::string> secure_ops;
secure_ops.push_back(config.get_cluster_name() + \
std::string(".transaction.security.auth.user"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".transaction.security.auth.password"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".transaction.security.hash.password"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.out.aes.key"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.out.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.out.aes.password"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.out.aes.salt"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.registration.aes.key"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.registration.aes.salt"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.registration.aes.password"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.registration.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.in.aes.key"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.in.aes.salt"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.in.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
secure_ops.push_back(config.get_cluster_name() + \
std::string(".event.security.in.aes.password"));
config.add_secure_opt(std::string("neo4j.auth.un"));
config.add_secure_opt(std::string("neo4j.auth.pw"));
secure_ops.push_back(std::string("neo4j.auth.un"));
secure_ops.push_back(std::string("neo4j.auth.pw"));
for (std::string op: secure_ops) {
config.add_secure_opt(op);
}

// Set default values for configuration
config.add_opt(std::string("adrestia"), \
Expand Down

0 comments on commit 6514525

Please sign in to comment.