wipeable_string: call memwipe directly

since the original reason for the indirect call (that memwipe
was not in contrib) is now gone
This commit is contained in:
moneromooo-monero 2018-01-31 12:25:30 +00:00
parent ed67e5c001
commit fde4489e1d
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 6 additions and 15 deletions

View file

@ -58,13 +58,10 @@ namespace epee
wipeable_string &operator=(wipeable_string &&other);
wipeable_string &operator=(const wipeable_string &other);
static void set_wipe(void *(*f)(void*, size_t)) { wipefunc = f; }
private:
void grow(size_t sz, size_t reserved = 0);
private:
std::vector<char> buffer;
static void *(*wipefunc)(void*, size_t);
};
}