summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand_lib.c
diff options
context:
space:
mode:
authorbeck <>2023-07-07 12:01:32 +0000
committerbeck <>2023-07-07 12:01:32 +0000
commit5c0527aa790cba96ac1060e17d6a3909694d8e4e (patch)
tree088d60cfe20bcd912db9923f7699deabc41696db /src/lib/libcrypto/rand/rand_lib.c
parent7e8c1dd29d6e69da1876294635c98160b2707e56 (diff)
downloadopenbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.gz
openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.bz2
openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.zip
hide symbols in sm, rand, and poly1305
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/rand/rand_lib.c')
-rw-r--r--src/lib/libcrypto/rand/rand_lib.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rand/rand_lib.c b/src/lib/libcrypto/rand/rand_lib.c
index 8342a55f05..b51db8acf6 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.20 2014/10/22 13:02:04 jsing Exp $ */ 1/* $OpenBSD: rand_lib.c,v 1.21 2023/07/07 12:01:32 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4 * 4 *
@@ -29,18 +29,21 @@ RAND_set_rand_method(const RAND_METHOD *meth)
29{ 29{
30 return 1; 30 return 1;
31} 31}
32LCRYPTO_ALIAS(RAND_set_rand_method);
32 33
33const RAND_METHOD * 34const RAND_METHOD *
34RAND_get_rand_method(void) 35RAND_get_rand_method(void)
35{ 36{
36 return NULL; 37 return NULL;
37} 38}
39LCRYPTO_ALIAS(RAND_get_rand_method);
38 40
39RAND_METHOD * 41RAND_METHOD *
40RAND_SSLeay(void) 42RAND_SSLeay(void)
41{ 43{
42 return NULL; 44 return NULL;
43} 45}
46LCRYPTO_ALIAS(RAND_SSLeay);
44 47
45#ifndef OPENSSL_NO_ENGINE 48#ifndef OPENSSL_NO_ENGINE
46int 49int
@@ -48,6 +51,7 @@ RAND_set_rand_engine(ENGINE *engine)
48{ 51{
49 return 1; 52 return 1;
50} 53}
54LCRYPTO_ALIAS(RAND_set_rand_engine);
51#endif 55#endif
52 56
53void 57void
@@ -55,30 +59,35 @@ RAND_cleanup(void)
55{ 59{
56 60
57} 61}
62LCRYPTO_ALIAS(RAND_cleanup);
58 63
59void 64void
60RAND_seed(const void *buf, int num) 65RAND_seed(const void *buf, int num)
61{ 66{
62 67
63} 68}
69LCRYPTO_ALIAS(RAND_seed);
64 70
65void 71void
66RAND_add(const void *buf, int num, double entropy) 72RAND_add(const void *buf, int num, double entropy)
67{ 73{
68 74
69} 75}
76LCRYPTO_ALIAS(RAND_add);
70 77
71int 78int
72RAND_status(void) 79RAND_status(void)
73{ 80{
74 return 1; 81 return 1;
75} 82}
83LCRYPTO_ALIAS(RAND_status);
76 84
77int 85int
78RAND_poll(void) 86RAND_poll(void)
79{ 87{
80 return 1; 88 return 1;
81} 89}
90LCRYPTO_ALIAS(RAND_poll);
82 91
83/* 92/*
84 * Hurray. You've made it to the good parts. 93 * Hurray. You've made it to the good parts.
@@ -90,6 +99,7 @@ RAND_bytes(unsigned char *buf, int num)
90 arc4random_buf(buf, num); 99 arc4random_buf(buf, num);
91 return 1; 100 return 1;
92} 101}
102LCRYPTO_ALIAS(RAND_bytes);
93 103
94int 104int
95RAND_pseudo_bytes(unsigned char *buf, int num) 105RAND_pseudo_bytes(unsigned char *buf, int num)
@@ -98,3 +108,4 @@ RAND_pseudo_bytes(unsigned char *buf, int num)
98 arc4random_buf(buf, num); 108 arc4random_buf(buf, num);
99 return 1; 109 return 1;
100} 110}
111LCRYPTO_ALIAS(RAND_pseudo_bytes);