diff options
author | djm <djm> | 2014-02-04 00:18:20 +0000 |
---|---|---|
committer | djm <djm> | 2014-02-04 00:18:20 +0000 |
commit | 74fac2bf2b673811798f772517ad7da9cac5f53d (patch) | |
tree | ad909c76b1dc98051bee33676e5ccea582c88ee0 /kexc25519.c | |
parent | 84da779c665faeaf203a22e793ad3c75b74d03c9 (diff) | |
download | openssh-74fac2bf2b673811798f772517ad7da9cac5f53d.tar.gz |
- tedu@cvs.openbsd.org 2014/01/31 16:39:19
[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
Diffstat (limited to 'kexc25519.c')
-rw-r--r-- | kexc25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexc25519.c b/kexc25519.c index 48ca4aaa..ee79b432 100644 --- a/kexc25519.c +++ b/kexc25519.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kexc25519.c,v 1.4 2014/01/12 08:13:13 djm Exp $ */ +/* $OpenBSD: kexc25519.c,v 1.5 2014/01/31 16:39:19 tedu Exp $ */ /* * Copyright (c) 2001, 2013 Markus Friedl. All rights reserved. * Copyright (c) 2010 Damien Miller. All rights reserved. @@ -70,7 +70,7 @@ kexc25519_shared_key(const u_char key[CURVE25519_SIZE], #endif buffer_clear(out); buffer_put_bignum2_from_string(out, shared_key, CURVE25519_SIZE); - memset(shared_key, 0, CURVE25519_SIZE); /* XXX explicit_bzero() */ + explicit_bzero(shared_key, CURVE25519_SIZE); } void |