Deprecated calls to bzero() and index() found in OpenSSH 6.1p1

Peter Stuge peter at stuge.se
Fri Dec 21 06:27:14 EST 2012


Bill Parker wrote:
> In file 'auth2-jpake.c', I've replaced all the bzero() calls with
> the equivalent memset() calls.  The patch file is below in (diff -u)
> format:
> 
> --- auth2-jpake.c.orig  2012-12-19 17:01:52.817528171 -0800
> +++ auth2-jpake.c       2012-12-19 17:05:59.044554766 -0800
> @@ -178,7 +178,7 @@
>                 fatal("%s: not enough bytes for rawsalt (want %u have %u)",
>                     __func__, len, digest_len);
>         memcpy(rawsalt, digest, len);
> -       bzero(digest, digest_len);
> +        memset(digest, 0, digest_len);

The whitespace style on all touched lines has been changed. Please
don't do that.


//Peter


More information about the openssh-unix-dev mailing list