diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-08 12:46:00 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-08 12:46:00 -0400 |
| commit | 673aab5ba24acf91961972b71ae2b92f5ffe4b83 (patch) | |
| tree | 0b179efbaf6061156761b83036eb922be9956705 /root-topology/mktopology.cpp | |
| parent | 77457cbff14546a6b6173a46c0486767dab60847 (diff) | |
| download | infinitytier-673aab5ba24acf91961972b71ae2b92f5ffe4b83.tar.gz infinitytier-673aab5ba24acf91961972b71ae2b92f5ffe4b83.zip | |
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/
Diffstat (limited to 'root-topology/mktopology.cpp')
| -rw-r--r-- | root-topology/mktopology.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/root-topology/mktopology.cpp b/root-topology/mktopology.cpp index 516fd71b..d6a2be3c 100644 --- a/root-topology/mktopology.cpp +++ b/root-topology/mktopology.cpp @@ -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; } |
