rng-tools/SOURCES/3-rt-change-option.patch
2022-06-28 08:28:35 +00:00

41 lines
1.3 KiB
Diff

From 6e1a11ae6df8cd6c98657a8b78761763f3ff2abd Mon Sep 17 00:00:00 2001
From: Neil Horman <nhorman@tuxdriver.com>
Date: Mon, 28 Feb 2022 07:59:57 -0500
Subject: [PATCH 2/3] Change DARN_OPT_AES to DRNG_OPT_AES for rngd_rndr.c
Content-type: text/plain
@dermotbradley noted that we were using the wrong define for the arm
rndr instruction. Fix that up
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
---
rngd_rndr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git rngd_rndr.c rngd_rndr.c
index 79bf2ce..fa1eaa9 100644
--- rngd_rndr.c
+++ rngd_rndr.c
@@ -171,7 +171,7 @@ static int fill_from_rndr(void *buf, size_t size)
int xread_rndr(void *buf, size_t size, struct rng *ent_src)
{
- if (ent_src->rng_options[DARN_OPT_AES].int_val)
+ if (ent_src->rng_options[DRNG_OPT_AES].int_val)
return fill_from_aes(ent_src, buf, size);
else
return fill_from_rndr(buf, size);
@@ -187,7 +187,7 @@ int init_rndr_entropy_source(struct rng *ent_src)
return 1;
}
message_entsrc(ent_src,LOG_DAEMON|LOG_INFO, "Enabling aarch64 RNDR rng support\n");
- if (ent_src->rng_options[DARN_OPT_AES].int_val && init_openssl(ent_src))
+ if (ent_src->rng_options[DRNG_OPT_AES].int_val && init_openssl(ent_src))
return 1;
return 0;
}
--
2.35.1