Merge pull request #3217

fde4489e wipeable_string: call memwipe directly (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-02-16 14:23:08 +01:00
commit 0c71197892
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
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);
};
}