diff options
| author | beck <> | 2023-07-07 12:01:32 +0000 |
|---|---|---|
| committer | beck <> | 2023-07-07 12:01:32 +0000 |
| commit | e7aea55ea47e895c51a84147a1cb230cf7a29b33 (patch) | |
| tree | 088d60cfe20bcd912db9923f7699deabc41696db /src/lib/libcrypto/rand/rand_lib.c | |
| parent | 14511626652d6b0fa30a078729000f6bae028842 (diff) | |
| download | openbsd-e7aea55ea47e895c51a84147a1cb230cf7a29b33.tar.gz openbsd-e7aea55ea47e895c51a84147a1cb230cf7a29b33.tar.bz2 openbsd-e7aea55ea47e895c51a84147a1cb230cf7a29b33.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.c | 13 |
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 | } |
| 32 | LCRYPTO_ALIAS(RAND_set_rand_method); | ||
| 32 | 33 | ||
| 33 | const RAND_METHOD * | 34 | const RAND_METHOD * |
| 34 | RAND_get_rand_method(void) | 35 | RAND_get_rand_method(void) |
| 35 | { | 36 | { |
| 36 | return NULL; | 37 | return NULL; |
| 37 | } | 38 | } |
| 39 | LCRYPTO_ALIAS(RAND_get_rand_method); | ||
| 38 | 40 | ||
| 39 | RAND_METHOD * | 41 | RAND_METHOD * |
| 40 | RAND_SSLeay(void) | 42 | RAND_SSLeay(void) |
| 41 | { | 43 | { |
| 42 | return NULL; | 44 | return NULL; |
| 43 | } | 45 | } |
| 46 | LCRYPTO_ALIAS(RAND_SSLeay); | ||
| 44 | 47 | ||
| 45 | #ifndef OPENSSL_NO_ENGINE | 48 | #ifndef OPENSSL_NO_ENGINE |
| 46 | int | 49 | int |
| @@ -48,6 +51,7 @@ RAND_set_rand_engine(ENGINE *engine) | |||
| 48 | { | 51 | { |
| 49 | return 1; | 52 | return 1; |
| 50 | } | 53 | } |
| 54 | LCRYPTO_ALIAS(RAND_set_rand_engine); | ||
| 51 | #endif | 55 | #endif |
| 52 | 56 | ||
| 53 | void | 57 | void |
| @@ -55,30 +59,35 @@ RAND_cleanup(void) | |||
| 55 | { | 59 | { |
| 56 | 60 | ||
| 57 | } | 61 | } |
| 62 | LCRYPTO_ALIAS(RAND_cleanup); | ||
| 58 | 63 | ||
| 59 | void | 64 | void |
| 60 | RAND_seed(const void *buf, int num) | 65 | RAND_seed(const void *buf, int num) |
| 61 | { | 66 | { |
| 62 | 67 | ||
| 63 | } | 68 | } |
| 69 | LCRYPTO_ALIAS(RAND_seed); | ||
| 64 | 70 | ||
| 65 | void | 71 | void |
| 66 | RAND_add(const void *buf, int num, double entropy) | 72 | RAND_add(const void *buf, int num, double entropy) |
| 67 | { | 73 | { |
| 68 | 74 | ||
| 69 | } | 75 | } |
| 76 | LCRYPTO_ALIAS(RAND_add); | ||
| 70 | 77 | ||
| 71 | int | 78 | int |
| 72 | RAND_status(void) | 79 | RAND_status(void) |
| 73 | { | 80 | { |
| 74 | return 1; | 81 | return 1; |
| 75 | } | 82 | } |
| 83 | LCRYPTO_ALIAS(RAND_status); | ||
| 76 | 84 | ||
| 77 | int | 85 | int |
| 78 | RAND_poll(void) | 86 | RAND_poll(void) |
| 79 | { | 87 | { |
| 80 | return 1; | 88 | return 1; |
| 81 | } | 89 | } |
| 90 | LCRYPTO_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 | } |
| 102 | LCRYPTO_ALIAS(RAND_bytes); | ||
| 93 | 103 | ||
| 94 | int | 104 | int |
| 95 | RAND_pseudo_bytes(unsigned char *buf, int num) | 105 | RAND_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 | } |
| 111 | LCRYPTO_ALIAS(RAND_pseudo_bytes); | ||
