support for forced ssl everywhere in client and server

This commit is contained in:
Eliot Horowitz
2011-07-26 17:23:42 -04:00
parent 23af33c9f8
commit f84bf1a41a
6 changed files with 82 additions and 1 deletions

View File

@@ -504,6 +504,9 @@ int _main(int argc, char* argv[]) {
("version", "show version information")
("verbose", "increase verbosity")
("ipv6", "enable IPv6 support (disabled by default)")
#ifdef MONGO_SSL
("ssl", "use all for connections")
#endif
;
hidden_options.add_options()
@@ -572,6 +575,11 @@ int _main(int argc, char* argv[]) {
if (params.count("quiet")) {
mongo::cmdLine.quiet = true;
}
#ifdef MONGO_SSL
if (params.count("ssl")) {
mongo::cmdLine.sslOnNormalPorts = true;
}
#endif
if (params.count("nokillop")) {
mongo::shellUtils::_nokillop = true;
}
@@ -579,6 +587,8 @@ int _main(int argc, char* argv[]) {
autoKillOp = true;
}
/* This is a bit confusing, here are the rules:
*
* if nodb is set then all positional parameters are files