+#include "d0.h"
+
/*
* include the license notice into the dynamic library to "reproduce the
* copyright notice" automatically, so the application developer does not have
* to care about this term
*/
-const char *d0_sha2_c_bsd_license_notice = "\n"
+const char *d0_sha2_c_bsd_license_notice D0_USED = "\n"
"/*\n"
" * FILE: sha2.c\n"
" * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/\n"
" * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n"
" * SUCH DAMAGE.\n"
" *\n"
-" * $Id: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $\n"
+" * $Original-Id: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $\n"
" */\n";
#include <string.h> /* memcpy()/memset() or bcopy()/bzero() */
#define MEMCPY_BCOPY(d,s,l) bcopy((s), (d), (l))
#endif
+#if HAVE_MEMSET_S
+#undef MEMSET_BZERO
+#define MEMSET_BZERO(p, l) memset_s((p), (l), 0, (l))
+#elif HAVE_EXPLICIT_BZERO
+#undef MEMSET_BZERO
+#define MEMSET_BZERO(p, l) explicit_bzero((p), (l))
+#endif
+
/*** THE SIX LOGICAL FUNCTIONS ****************************************/
/*