Kill ugly old getSecureRandom() and replace with simple wrapper for Windows CAPI and *nix /dev/urandom, and some build fixes.
This commit is contained in:
parent
673aab5ba2
commit
502ea66f15
4 changed files with 58 additions and 63 deletions
|
@ -110,7 +110,7 @@ bool Dictionary::verify(const Identity &id) const
|
|||
if (sig == end())
|
||||
return false;
|
||||
std::string sigbin(Utils::unhex(sig->second));
|
||||
return id.verify(buf.data(),buf.length(),sigbin.data(),sigbin.length());
|
||||
return id.verify(buf.data(),(unsigned int)buf.length(),sigbin.data(),sigbin.length());
|
||||
} catch ( ... ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue