summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2014-06-26 13:48:11 +0000
committerderaadt <>2014-06-26 13:48:11 +0000
commit272318b99b9ff154eca3a465c90d6d27361c58c9 (patch)
tree5ac427dcf444ec6432b6eb0200987f9a69a09438 /src
parentb7117f864837a8b70cb7c3b889b47eeeeff1c464 (diff)
downloadopenbsd-272318b99b9ff154eca3a465c90d6d27361c58c9.tar.gz
openbsd-272318b99b9ff154eca3a465c90d6d27361c58c9.tar.bz2
openbsd-272318b99b9ff154eca3a465c90d6d27361c58c9.zip
fix HD() misuse; from brent cook
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_linux.c4
-rw-r--r--src/lib/libcrypto/crypto/getentropy_linux.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c
index 17d1094811..78d0d786a6 100644
--- a/src/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/src/lib/libcrypto/arc4random/getentropy_linux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_linux.c,v 1.13 2014/06/25 17:04:18 beck Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -465,7 +465,7 @@ getentropy_fallback(void *buf, size_t len)
465#ifdef AT_BASE 465#ifdef AT_BASE
466 p = (char *) getauxval(AT_BASE); 466 p = (char *) getauxval(AT_BASE);
467 if (p) 467 if (p)
468 HD(p, sizeof(p)); 468 HD(p);
469#endif 469#endif
470 470
471 SHA512_Final(results, &ctx); 471 SHA512_Final(results, &ctx);
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c
index 17d1094811..78d0d786a6 100644
--- a/src/lib/libcrypto/crypto/getentropy_linux.c
+++ b/src/lib/libcrypto/crypto/getentropy_linux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_linux.c,v 1.13 2014/06/25 17:04:18 beck Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -465,7 +465,7 @@ getentropy_fallback(void *buf, size_t len)
465#ifdef AT_BASE 465#ifdef AT_BASE
466 p = (char *) getauxval(AT_BASE); 466 p = (char *) getauxval(AT_BASE);
467 if (p) 467 if (p)
468 HD(p, sizeof(p)); 468 HD(p);
469#endif 469#endif
470 470
471 SHA512_Final(results, &ctx); 471 SHA512_Final(results, &ctx);