Fix an oversight in signed dictionaries: the timestamp and signing identity should themselves be part of the signature. Also include the raw dictionary in addition to the bin2c version in root-topology/

This commit is contained in:
Adam Ierymenko 2014-08-08 12:46:00 -04:00
commit 673aab5ba2
6 changed files with 54 additions and 33 deletions

View file

@ -43,6 +43,12 @@ int main(int argc,char **argv)
return 1;
}
Dictionary test(topology.toString());
if (!test.verify(topologyAuthority)) {
std::cerr << "Test verification of signed dictionary failed!" << std::endl;
return 1;
}
std::cout << topology.toString();
return 0;
}