]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add ifndef to seed-src_jitter too
authorDimitri John Ledkov <dimitri.ledkov@surgut.co.uk>
Sun, 23 Feb 2025 17:50:21 +0000 (17:50 +0000)
committerNeil Horman <nhorman@openssl.org>
Tue, 25 Feb 2025 19:45:57 +0000 (14:45 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/25930)

providers/implementations/rands/seed_src_jitter.c

index cc7aaca63227a9d8f1c50054fd0e35a49ea6075b..c154964cb940d2e44841b9a0606359c6f35b1cf0 100644 (file)
@@ -295,6 +295,7 @@ static size_t jitter_get_seed(void *vseed, unsigned char **pout,
     return ret;
 }
 
+# ifndef OPENSSL_NO_FIPS_JITTER
 size_t ossl_rand_jitter_get_seed(unsigned char **pout, int entropy, size_t min_len, size_t max_len)
 {
     size_t ret = 0;
@@ -310,6 +311,7 @@ size_t ossl_rand_jitter_get_seed(unsigned char **pout, int entropy, size_t min_l
     jitter_free(s);
     return ret;
 }
+# endif
 
 static void jitter_clear_seed(ossl_unused void *vdrbg,
                               unsigned char *out, size_t outlen)