diff options
| author | beck <> | 2024-04-10 14:53:01 +0000 |
|---|---|---|
| committer | beck <> | 2024-04-10 14:53:01 +0000 |
| commit | bedae94d153215f01b56bf1c9aaa7b550aff4384 (patch) | |
| tree | ad58252de816fa1777a2122eef964ba74c98a5c9 /src/lib/libcrypto/rand/rand_lib.c | |
| parent | 8f5c098da9d2f4cfab60d5924c5dda86cf4709a2 (diff) | |
| download | openbsd-bedae94d153215f01b56bf1c9aaa7b550aff4384.tar.gz openbsd-bedae94d153215f01b56bf1c9aaa7b550aff4384.tar.bz2 openbsd-bedae94d153215f01b56bf1c9aaa7b550aff4384.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.c | 9 |
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 | } |
| 53 | LCRYPTO_ALIAS(RAND_cleanup); | ||
| 53 | 54 | ||
| 54 | void | 55 | void |
| 55 | RAND_seed(const void *buf, int num) | 56 | RAND_seed(const void *buf, int num) |
| 56 | { | 57 | { |
| 57 | 58 | ||
| 58 | } | 59 | } |
| 60 | LCRYPTO_ALIAS(RAND_seed); | ||
| 59 | 61 | ||
| 60 | void | 62 | void |
| 61 | RAND_add(const void *buf, int num, double entropy) | 63 | RAND_add(const void *buf, int num, double entropy) |
| 62 | { | 64 | { |
| 63 | 65 | ||
| 64 | } | 66 | } |
| 67 | LCRYPTO_ALIAS(RAND_add); | ||
| 65 | 68 | ||
| 66 | int | 69 | int |
| 67 | RAND_status(void) | 70 | RAND_status(void) |
| 68 | { | 71 | { |
| 69 | return 1; | 72 | return 1; |
| 70 | } | 73 | } |
| 74 | LCRYPTO_ALIAS(RAND_status); | ||
| 71 | 75 | ||
| 72 | int | 76 | int |
| 73 | RAND_poll(void) | 77 | RAND_poll(void) |
| 74 | { | 78 | { |
| 75 | return 1; | 79 | return 1; |
| 76 | } | 80 | } |
| 81 | LCRYPTO_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 | } |
| 93 | LCRYPTO_ALIAS(RAND_bytes); | ||
| 88 | 94 | ||
| 89 | int | 95 | int |
| 90 | RAND_pseudo_bytes(unsigned char *buf, int num) | 96 | RAND_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 | } |
| 102 | LCRYPTO_ALIAS(RAND_pseudo_bytes); | ||
