diff options
Diffstat (limited to 'package/openssh/patches/patch-schnorr_c')
-rw-r--r-- | package/openssh/patches/patch-schnorr_c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/package/openssh/patches/patch-schnorr_c b/package/openssh/patches/patch-schnorr_c index aff2497ba..8a9e4a950 100644 --- a/package/openssh/patches/patch-schnorr_c +++ b/package/openssh/patches/patch-schnorr_c @@ -1,11 +1,29 @@ ---- openssh-5.2p1.orig/schnorr.c 2009-02-21 02:45:18.000000000 +0100 -+++ openssh-5.2p1/schnorr.c 2009-09-18 12:28:29.000000000 +0200 -@@ -105,7 +105,7 @@ schnorr_hash(const BIGNUM *p, const BIGN +--- openssh-5.3p1.orig/schnorr.c 2009-03-07 02:01:47.000000000 +0100 ++++ openssh-5.3p1/schnorr.c 2009-12-05 12:10:08.000000000 +0100 +@@ -101,7 +101,7 @@ schnorr_hash(const BIGNUM *p, const BIGN + SCHNORR_DEBUG_BN((h, "%s: h = ", __func__)); out: buffer_free(&b); - EVP_MD_CTX_cleanup(&evp_md_ctx); - bzero(digest, digest_len); + memset(digest, 0, digest_len); xfree(digest); digest_len = 0; if (success == 0) +@@ -451,7 +451,7 @@ hash_buffer(const u_char *buf, u_int len + success = 0; + out: + EVP_MD_CTX_cleanup(&evp_md_ctx); +- bzero(digest, sizeof(digest)); ++ memset(digest, 0, sizeof(digest)); + digest_len = 0; + return success; + } +@@ -544,7 +544,7 @@ modp_group_free(struct modp_group *grp) + BN_clear_free(grp->p); + if (grp->q != NULL) + BN_clear_free(grp->q); +- bzero(grp, sizeof(*grp)); ++ memset(grp, 0, sizeof(*grp)); + xfree(grp); + } + |