Change {add,import}-zone-key passive argument to inactive
algorithm = tmp_algo;
} else if(pdns_iequals(cmds[n], "active")) {
active=true;
- } else if(pdns_iequals(cmds[n], "inactive") || pdns_iequals(cmds[n], "passive")) {
+ } else if(pdns_iequals(cmds[n], "inactive") || pdns_iequals(cmds[n], "passive")) { // 'passive' eventually needs to be removed
active=false;
- } else if(atoi(cmds[n].c_str())) {
- bits = atoi(cmds[n].c_str());
+ } else if(pdns_stou(cmds[n])) {
+ bits = pdns_stou(cmds[n]);
} else {
cerr<<"Unknown algorithm, key flag or size '"<<cmds[n]<<"'"<<endl;
exit(EXIT_FAILURE);;