We have written C++ code which compiles both on Windows and Ubuntu.
I want to use secure function memset_s
for zeroing out buffers in my app.
Both Windows and Ubuntu 16.04 does not include definition of __STDC_LIB_EXT1__
macro so I am not able to use memset_s
provided by C++11.
On windows I have SecureZeroMemory
which prevents compiler optimization.
On Ubuntu 16.04 (GCC version 5.4 ) I am looking for SecureZeroMemory
equivalent library function (which will prevent compiler optimization).
It will be really helpful if you can suggest me library function in linux, end option is manual implemention memset_s for linux platform
Thanks in advance