mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 12:05:03 -04:00
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:
parent
ed67e5c001
commit
fde4489e1d
3 changed files with 6 additions and 15 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue