fixed bug in previous commit

This commit is contained in:
csoler 2018-10-05 17:01:54 +02:00
parent 4de0498208
commit dbd52c0c9c
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -300,7 +300,8 @@ bool p3Config::loadAttempt(const std::string& cfgFname,const std::string& signFn
setHash(bio->gethash());
// In order to check the signature that is stored on disk, we compute the hash of the current data (which should match the hash of the data on disc because we just read it),
// and validate the signature from the disk on this data.
// and validate the signature from the disk on this data. The config file data is therefore hashed twice. Not a security issue, but
// this is a bit inelegant.
std::string signatureRead;
RsFileHash strHash(Hash());