Actions
Bug #4072
closedTpm::exportPrivateKey doc comment is wrong
Start date:
Due date:
% Done:
100%
Estimated time:
Description
The doc comment for Tpm::exportPrivateKey says "@return The encoded private key wrapper or an empty block if the key cannot be exported."
https://github.com/named-data/ndn-cxx/blob/fe4733a1608712e389fe10b329a9fd61575ad075/src/security/tpm/tpm.hpp#L188
But this method just calls BackEnd::exportKey which says "@throw Error the key does not exist".
https://github.com/named-data/ndn-cxx/blob/fe4733a1608712e389fe10b329a9fd61575ad075/src/security/tpm/back-end.hpp#L98
I believe that this is correct and that Tpm::exportPrivateKey should be changed to say "@throw BackEnd::Error the key does not exist".
Actions