+ if (ACS) {
+ // Determine index to use.
+ pair<bool,const char*> ix = pair<bool,const char*>(false,NULL);
+ if (!strncmp(ACSloc.c_str(), "https", 5)) {
+ ix = ACS->getString("sslIndex", shibspconstants::ASCII_SHIB2SPCONFIG_NS);
+ if (!ix.first)
+ ix = ACS->getString("index");
+ }
+ else {
+ ix = ACS->getString("index");
+ }
+ in.addmember("acsIndex").string(ix.second);
+ }