summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand_lib.c
diff options
context:
space:
mode:
authorbeck <>2024-04-10 14:53:01 +0000
committerbeck <>2024-04-10 14:53:01 +0000
commitc74048d53051ecb8d267b8b92af44b32f0bd928c (patch)
treead58252de816fa1777a2122eef964ba74c98a5c9 /src/lib/libcrypto/rand/rand_lib.c
parent28391ee6892093e7875a30c2bc0924a7bbcb17ea (diff)
downloadopenbsd-c74048d53051ecb8d267b8b92af44b32f0bd928c.tar.gz
openbsd-c74048d53051ecb8d267b8b92af44b32f0bd928c.tar.bz2
openbsd-c74048d53051ecb8d267b8b92af44b32f0bd928c.zip
Finish hiding symbols in rand.h
This removes the LIBRESSL_INTERNAL guards and marks the functions within as LCRYPTO_UNUSED
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/rand/rand_lib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rand/rand_lib.c b/src/lib/libcrypto/rand/rand_lib.c
index b9ef0deebe..0c9810f848 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.23 2023/11/19 15:46:10 tb Exp $ */ 1/* $OpenBSD: rand_lib.c,v 1.24 2024/04/10 14:53:01 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3 * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4 * 4 *
@@ -50,30 +50,35 @@ RAND_cleanup(void)
50{ 50{
51 51
52} 52}
53LCRYPTO_ALIAS(RAND_cleanup);
53 54
54void 55void
55RAND_seed(const void *buf, int num) 56RAND_seed(const void *buf, int num)
56{ 57{
57 58
58} 59}
60LCRYPTO_ALIAS(RAND_seed);
59 61
60void 62void
61RAND_add(const void *buf, int num, double entropy) 63RAND_add(const void *buf, int num, double entropy)
62{ 64{
63 65
64} 66}
67LCRYPTO_ALIAS(RAND_add);
65 68
66int 69int
67RAND_status(void) 70RAND_status(void)
68{ 71{
69 return 1; 72 return 1;
70} 73}
74LCRYPTO_ALIAS(RAND_status);
71 75
72int 76int
73RAND_poll(void) 77RAND_poll(void)
74{ 78{
75 return 1; 79 return 1;
76} 80}
81LCRYPTO_ALIAS(RAND_poll);
77 82
78/* 83/*
79 * Hurray. You've made it to the good parts. 84 * Hurray. You've made it to the good parts.
@@ -85,6 +90,7 @@ RAND_bytes(unsigned char *buf, int num)
85 arc4random_buf(buf, num); 90 arc4random_buf(buf, num);
86 return 1; 91 return 1;
87} 92}
93LCRYPTO_ALIAS(RAND_bytes);
88 94
89int 95int
90RAND_pseudo_bytes(unsigned char *buf, int num) 96RAND_pseudo_bytes(unsigned char *buf, int num)
@@ -93,3 +99,4 @@ RAND_pseudo_bytes(unsigned char *buf, int num)
93 arc4random_buf(buf, num); 99 arc4random_buf(buf, num);
94 return 1; 100 return 1;
95} 101}
102LCRYPTO_ALIAS(RAND_pseudo_bytes);