[rtems-libbsd commit] Remove dangerous weak definition of getentropy()
Sebastian Huber
sebh at rtems.org
Wed May 15 13:45:12 UTC 2019
Module: rtems-libbsd
Branch: 5-freebsd-12
Commit: 0a8c0ce47f1c68d1b907cecef79499d9285dbb29
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0a8c0ce47f1c68d1b907cecef79499d9285dbb29
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 13 10:33:19 2019 +0200
Remove dangerous weak definition of getentropy()
All BSP supporting libbsd should provide this function.
---
rtemsbsd/rtems/rtems-kernel-init.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c
index 4d9851e..ee34d03 100644
--- a/rtemsbsd/rtems/rtems-kernel-init.c
+++ b/rtemsbsd/rtems/rtems-kernel-init.c
@@ -115,18 +115,6 @@ volatile uint32_t _Watchdog_Ticks_since_boot;
extern volatile int32_t _bsd_ticks
__attribute__ ((__alias__("_Watchdog_Ticks_since_boot")));
-__attribute__((__weak__)) void _arc4random_getentropy_fail(void)
-{
-
-}
-
-__attribute__((__weak__)) int getentropy(void *buf, size_t n)
-{
-
- memset(buf, 0, n);
- return (0);
-}
-
rtems_status_code
rtems_bsd_initialize(void)
{
More information about the vc
mailing list