Commit c1cd811f authored by Leigh B Stoller's avatar Leigh B Stoller

Change geni_trustroots options to just trustroots, since that

appears to be the convention for our locally grown options.
parent f9759233
...@@ -232,7 +232,7 @@ sub GetVersion() ...@@ -232,7 +232,7 @@ sub GetVersion()
"geni_version" => $coder->string("3")} "geni_version" => $coder->string("3")}
]; ];
} }
if (defined($options) && exists($options->{'geni_trustroots'})) { if (defined($options) && exists($options->{'trustroots'})) {
my @roots = (); my @roots = ();
my @certs = GeniCertificate::SplitCertBundle("$TB/etc/genica.bundle"); my @certs = GeniCertificate::SplitCertBundle("$TB/etc/genica.bundle");
foreach my $root (@certs) { foreach my $root (@certs) {
...@@ -248,7 +248,7 @@ sub GetVersion() ...@@ -248,7 +248,7 @@ sub GetVersion()
"SubjAltNameURIs" => [$cert->urn()], "SubjAltNameURIs" => [$cert->urn()],
}); });
} }
$blob->{"geni_trustroots"} = \@roots; $blob->{"trustroots"} = \@roots;
} }
my $response = GeniResponse->Create(GENIRESPONSE_SUCCESS, $blob); my $response = GeniResponse->Create(GENIRESPONSE_SUCCESS, $blob);
if ($API_VERSION > 1) { if ($API_VERSION > 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment