summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rand')
-rw-r--r--src/lib/libcrypto/rand/rand_lib.c9
-rw-r--r--src/lib/libcrypto/rand/randfile.c5
2 files changed, 2 insertions, 12 deletions
diff --git a/src/lib/libcrypto/rand/rand_lib.c b/src/lib/libcrypto/rand/rand_lib.c
index b51db8acf6..5c5df98c98 100644
--- a/src/lib/libcrypto/rand/rand_lib.c
+++ b/src/lib/libcrypto/rand/rand_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rand_lib.c,v 1.21 2023/07/07 12:01:32 beck Exp $ */ 1/* $OpenBSD: rand_lib.c,v 1.22 2023/07/07 19:37:54 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4 * 4 *
@@ -59,35 +59,30 @@ RAND_cleanup(void)
59{ 59{
60 60
61} 61}
62LCRYPTO_ALIAS(RAND_cleanup);
63 62
64void 63void
65RAND_seed(const void *buf, int num) 64RAND_seed(const void *buf, int num)
66{ 65{
67 66
68} 67}
69LCRYPTO_ALIAS(RAND_seed);
70 68
71void 69void
72RAND_add(const void *buf, int num, double entropy) 70RAND_add(const void *buf, int num, double entropy)
73{ 71{
74 72
75} 73}
76LCRYPTO_ALIAS(RAND_add);
77 74
78int 75int
79RAND_status(void) 76RAND_status(void)
80{ 77{
81 return 1; 78 return 1;
82} 79}
83LCRYPTO_ALIAS(RAND_status);
84 80
85int 81int
86RAND_poll(void) 82RAND_poll(void)
87{ 83{
88 return 1; 84 return 1;
89} 85}
90LCRYPTO_ALIAS(RAND_poll);
91 86
92/* 87/*
93 * Hurray. You've made it to the good parts. 88 * Hurray. You've made it to the good parts.
@@ -99,7 +94,6 @@ RAND_bytes(unsigned char *buf, int num)
99 arc4random_buf(buf, num); 94 arc4random_buf(buf, num);
100 return 1; 95 return 1;
101} 96}
102LCRYPTO_ALIAS(RAND_bytes);
103 97
104int 98int
105RAND_pseudo_bytes(unsigned char *buf, int num) 99RAND_pseudo_bytes(unsigned char *buf, int num)
@@ -108,4 +102,3 @@ RAND_pseudo_bytes(unsigned char *buf, int num)
108 arc4random_buf(buf, num); 102 arc4random_buf(buf, num);
109 return 1; 103 return 1;
110} 104}
111LCRYPTO_ALIAS(RAND_pseudo_bytes);
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c
index 7384a65791..00008af755 100644
--- a/src/lib/libcrypto/rand/randfile.c
+++ b/src/lib/libcrypto/rand/randfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: randfile.c,v 1.43 2023/07/07 12:01:32 beck Exp $ */ 1/* $OpenBSD: randfile.c,v 1.44 2023/07/07 19:37:54 beck 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 *
@@ -85,7 +85,6 @@ RAND_load_file(const char *file, long bytes)
85 else 85 else
86 return bytes; 86 return bytes;
87} 87}
88LCRYPTO_ALIAS(RAND_load_file);
89 88
90int 89int
91RAND_write_file(const char *file) 90RAND_write_file(const char *file)
@@ -134,7 +133,6 @@ RAND_write_file(const char *file)
134 explicit_bzero(buf, BUFSIZE); 133 explicit_bzero(buf, BUFSIZE);
135 return ret; 134 return ret;
136} 135}
137LCRYPTO_ALIAS(RAND_write_file);
138 136
139const char * 137const char *
140RAND_file_name(char * buf, size_t size) 138RAND_file_name(char * buf, size_t size)
@@ -143,4 +141,3 @@ RAND_file_name(char * buf, size_t size)
143 return (NULL); 141 return (NULL);
144 return buf; 142 return buf;
145} 143}
146LCRYPTO_ALIAS(RAND_file_name);