mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-21 01:20:00 +00:00
1d2c456426
[auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c] [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c] [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c] [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c] [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h] replace most bzero with explicit_bzero, except a few that cna be memset ok djm dtucker
21 lines
365 B
C
21 lines
365 B
C
/* OPENBSD ORIGINAL: lib/libc/string/explicit_bzero.c */
|
|
/* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */
|
|
/*
|
|
* Public domain.
|
|
* Written by Ted Unangst
|
|
*/
|
|
|
|
#include "includes.h"
|
|
|
|
#ifndef HAVE_EXPLICIT_BZERO
|
|
|
|
/*
|
|
* explicit_bzero - don't let the compiler optimize away bzero
|
|
*/
|
|
void
|
|
explicit_bzero(void *p, size_t n)
|
|
{
|
|
bzero(p, n);
|
|
}
|
|
#endif
|