summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/sha_one.c')
-rw-r--r--src/lib/libcrypto/sha/sha_one.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sha/sha_one.c b/src/lib/libcrypto/sha/sha_one.c
index 1d3fc35f05..ad04021eb1 100644
--- a/src/lib/libcrypto/sha/sha_one.c
+++ b/src/lib/libcrypto/sha/sha_one.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha_one.c,v 1.8 2014/07/10 22:45:58 jsing Exp $ */ 1/* $OpenBSD: sha_one.c,v 1.9 2015/09/10 15:56:26 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -75,7 +75,7 @@ unsigned char *SHA(const unsigned char *d, size_t n, unsigned char *md)
75 return NULL; 75 return NULL;
76 SHA_Update(&c,d,n); 76 SHA_Update(&c,d,n);
77 SHA_Final(md,&c); 77 SHA_Final(md,&c);
78 OPENSSL_cleanse(&c,sizeof(c)); 78 explicit_bzero(&c,sizeof(c));
79 return(md); 79 return(md);
80 } 80 }
81#endif 81#endif